[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Need text line code help.



PureBytes Links

Trading Reference Links

I need to change number values to text values and show the text in 
the title line.  



Thanks... Richardf


//Current Code

nextday = IIf(nextdaytotal < 3, 1, IIf(nextdaytotal > 3 AND 
nextdaytotal < 5, 2,3));
Title = Name ( ) + ", " + Date ( ) + " - " + Title + "\n " + "Next 
Day  = " + WriteVal(nextday,1.2);
//*********************************************************

//Need to change to:

//I need to change the numbers above to text and place the text 
results in the title line below replacing
WriteVal(nextday,1.2) to a text result displaying the results from 
nextday as (up,down,flat) ...


nextday = IIf(nextdaytotal < 3, up, IIf(nextdaytotal > 3 AND 
nextdaytotal < 5, down,flat));
Title = Name ( ) + ", " + Date ( ) + " - " + Title + "\n " + "Next 
Day  = " + WriteVal(nextday,1.2);