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

[amibroker] Re: Need text line code help.



PureBytes Links

Trading Reference Links

Thanks,  that worked really great!

RichardF.


--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxx> 
wrote:
>
> nextday = WriteIf(nextdaytotal < 3, "up", WriteIf(nextdaytotal > 3 
AND 
> 
> nextdaytotal < 5, "down","flat"));
> 
> Title = Name ( ) + ", " + Date ( ) + " - " + "\n " + "Next_Day = " 
+ nextday;
> 
>   ----- Original Message ----- 
>   From: rlfoxworth2006 
>   To: amibroker@xxxxxxxxxxxxxxx 
>   Sent: Friday, September 22, 2006 5:37 PM
>   Subject: [amibroker] Need text line code help.
> 
> 
>   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);
> 
> 
> 
>    
> 
> 
> --------------------------------------------------------------------
--------
> 
>     avast! Antivirus: Inbound message clean. 
> 
>     Virus Database (VPS): 0638-1, 09/22/2006
>     Tested on: 9/22/2006 8:13:08 PM
>     avast! - copyright (c) 1988-2006 ALWIL Software.
>