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

[amibroker] Re: Plot Line Colour



PureBytes Links

Trading Reference Links

As always, Tomasz. It helps perfectly.

Steve

--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
wrote:
> buy=X>1.5;
> sell=X<0.8;
> 
> Col=IIf(buy,colorBrightGreen,IIf(sell,colorRed,colorblack));
> Col= ValueWhen( buy or sell, col );
> 
> Plot(X,"X",Col,1);
> 
> Hope this helps.
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
>   ----- Original Message ----- 
>   From: Steve Almond 
>   To: Ami 
>   Sent: Wednesday, July 23, 2003 10:02 PM
>   Subject: [amibroker] Plot Line Colour
> 
> 
>   I can change the colour of a plotted line in IB as follows:
> 
>   buy=X>1.5;
>   sell=X<0.8;
> 
>   Col=IIf(buy,colorBrightGreen,IIf(sell,colorRed,colorblack));
> 
>   Plot(X,"X",Col,1);
> 
>   But this only does what it says on the bottle! How do I change 
the colour of the line so that it stays green all the time until a 
sell signal arrives (i.e. not changing every time X slips below 1.5, 
but only when it goes below 0.8) and stays red until the next buy 
signal? See attached picture for current situation.
> 
>   Thanks,
> 
>   Steve
> 
> 
> 
>         Yahoo! Groups Sponsor 
>               ADVERTISEMENT
>              
>        
>        
> 
>   Send BUG REPORTS to bugs@xxxx
>   Send SUGGESTIONS to suggest@xxxx
>   -----------------------------------------
>   Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
>   (Web page: http://groups.yahoo.com/group/amiquote/messages/)
>   --------------------------------------------
>   Check group FAQ at: 
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> 
>   Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy No Snore & Get a Good Night's Sleep. Natural Oral Spray -- $24.95
(1 bottle, 1 month supply, with sweet almond oil, eucalyptus oil & more).
http://www.challengerone.com/t/l.asp?cid=2881&lp=h515.html
http://us.click.yahoo.com/2oMABA/nuYGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/