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

Re: [amibroker] Plot Line Colour



PureBytes Links

Trading Reference Links





buy=X>1.5;
sell=X<0.8;
 
<FONT face="Times New Roman" 
size=4>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 Janeczkoamibroker.com
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  <A title=steve2@xxxxxxxxxxxxxxxxxxxx 
  href="">Steve Almond 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">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;
   
  <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
  Send 
  BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







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.