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

Re: [amibroker] Just want to draw a vertical line?!



PureBytes Links

Trading Reference Links

do you mean something like this, you can adjust the placement of the line with the parameter values.
//Vertical Line

//User inputs

bars= Param("Bars since last day ",90,0,300,1);

//Vertical line

Line1=Cum(1)==LastValue(Cum(1))-bars;

Plot(Line1,"Line is ( "+WriteVal(bars,1)+" ) bars back",colorRed,styleHistogram|styleOwnScale);

Plot(C,"close",colorBlack,styleCandle);



Anthony

  ----- Original Message ----- 
  From: foginthehills 
  To: amibroker@xxxxxxxxxxxxxxx 
  Sent: Tuesday, November 21, 2006 11:53 PM
  Subject: [amibroker] Just want to draw a vertical line?!


  Hi there,

  I am pretty new to Amibroker and learning to script in AFL.

  In a weekly view, I want to use AFL to automatically draw a "straight 
  up" vertical line on my chart, exactly six months before today.

  I want a clear indicator of where the six month point is - for trend 
  examination.

  How could I draw this line from AFL?

  thank you...!



   


----------------------------------------------------------------------------

    avast! Antivirus: Inbound message clean. 

    Virus Database (VPS): 0649-2, 11/20/2006
    Tested on: 11/22/2006 12:23:35 AM
    avast! - copyright (c) 1988-2006 ALWIL Software.
     

Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.13/546 - Release Date: 11/22/2006