Skip to main content

Plot Purchase Price for Amibroker (AFL)

limit about 16 years ago Amibroker (AFL)

  • Rating:
    2 / 5 (Votes 3)
  • Tags:
    amibroker

Simple effective plot of Stock Purchase Price on Graph….for long term investor.
Input price in Parameter Section

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("Title");
SetChartBkColor(ParamColor("Outer panel color ",colorBlack)); // color of outer border 
SetChartBkGradientFill( ParamColor("Inner panel color upper half",colorBlack),
	ParamColor("Inner panel color lower half",colorBlack), //color of inner panel
   ParamColor("titleblock",colorBlack ));
Title = EncodeColor(colorYellow)+ "Stock with Purchase Price" + " - " +  Name() + EncodeColor(colorYellow);  
Plot( C, "", IIf(Close > Open, colorGreen, colorRed), styleCandle);
Line1=Param("PurchPrice",0,0,500,1);
Plot(Line1,"0", ParamColor( "Purch_Price_Line_Color", colorYellow),styleDots ); 
GraphXSpace=Param("GraphXSpace",20,0,100,1);	
_SECTION_END();

0 comments

Leave Comment

Please login here to leave a comment.