Australian (ASX) Stock Market Forum

Add MultiText Column

Joined
17 June 2019
Posts
19
Reactions
0
Hi all,
In the below I am trying to get "up" or "dn" ...see the column has dn, but I can't get the up to work...any ideas? Up = above 1 and down = below one in the column to the left of the missing up signals. TIA.
Filter = 1; // all bars

x = ROC (C, 30);
y = ROC (C, 70);
z = ROC (C, 100);

today = x + y + z;
today1 = Remap(today, -100, 100, 0, 2);

TextList = "up\ndn";
TextSelector = 1 * (today1<1) + 2 * (today1>1);
AddMultiTextColumn(TextSelector, TextList, "direction" );

upload_2019-8-9_15-3-44.png
 
Hi all,
In the below I am trying to get "up" or "dn" ...see the column has dn, but I can't get the up to work...any ideas? Up = above 1 and down = below one in the column to the left of the missing up signals. TIA.
Filter = 1; // all bars

x = ROC (C, 30);
y = ROC (C, 70);
z = ROC (C, 100);

today = x + y + z;
today1 = Remap(today, -100, 100, 0, 2);

TextList = "up\ndn";
TextSelector = 1 * (today1<1) + 2 * (today1>1);
AddMultiTextColumn(TextSelector, TextList, "direction" );

View attachment 96693

Solved it! missin \n in text list...should be \nup\ndn
 
I think you found a work around, but I believe that it should be

TextSelector = (today1<1) + 1 * (today1>1);
 
Top