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

[amibroker] Plot Line Colour



PureBytes Links

Trading Reference Links




I can change the colour of a plotted 
line in IB as follows:
 
buy=X>1.5;
sell=X<0.8;
 
<FONT face="Times New Roman" 
size=4>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,
 
<FONT face="Times New Roman" 
size=4>Steve







Yahoo! Groups Sponsor


  ADVERTISEMENT 









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 the Yahoo! Terms of Service.



Attachment:
MWSnap015.jpg

Attachment: Description: "Description: JPEG image"