Puzzled by NumToStr function result

@matthewyeu,

I was not talking about your code issue but was specifically talking about adding code tags to forum posts if posting code as explained in Tomasz's thread.

For that you do not need an programming experience but just have to watch his GIF animation there.

Have you?

How much more easy and simple can it get? C'mon it is year 2020(!) and you want to say that you use forum editors for the first time in your life? It is difficult to believe that.


Anyway... as for your code issue of your thread.

All you have to do is this:

ticker12 = Foreign("Ticker12", "H");
ticker13 = Foreign("Ticker13", "H");

condition = ROC(C,1)>0;
j1=IIf(condition,12,13);
j1_ticker = IIf(condition,ticker12,ticker13);

Filter = 1;
AddColumn(j1,"j1",1.0);
AddColumn(j1_ticker,"j1_ticker",1.2);

As response to