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

[amibroker] Re: Help with buy sell signals



PureBytes Links

Trading Reference Links

--- In amibroker@xxxxxxxxxxxxxxx, "don" <donmac63@xxxx> wrote:
> New User learning AFL
> 
that's better to get separate buy && sell shapes
PlotShapes(IIf( buy, shapeUpArrow,shapeNone),colorGreen,0,L,-20); 
PlotShapes(IIf( sell, shapeDownArrow, shapeNone),colorRed,H,C,-20);



> centerline in the following code.
> Can someone please assist.
> thanks in advance
> 
> /*MA Diff 20 by Larry Lovrencic*/
> 
> Modified
> 
> T = Param("KMA Period", 18, 2, 150, 1); /*Time Period for MA*/
> 
> KMA=((C-EMA(C,T))/EMA(C,T))*100;
> 
> 
> Buy = KMA > 0;
> 
> Sell = KMA < 0;
> 
> Cover = KMA > 0;
> 
> Short = KMA < 0;
> 
> Buy = ExRem( Buy, Sell );
> 
> Sell = ExRem( Sell, Buy );
> 
> Cover = ExRem( Cover, Short );
> 
> Short = ExRem( Short, Cover );
> 
> shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
> 
> PlotShapes( shape, IIf( Buy, colorBrightGreen , colorRed ),0, IIf( 
Buy ,
> Low, High )) ;
> 
> Graph0=KMA;
> 
> Graph0Style=2+4;
> 
> Graph0BarColor=IIf(KMA>0,5,4);
> 
> GraphXSpace=5;
> 
> Title=Name()+" "+Date()+" The Close is"+WriteIf(KMA>0," above"," 
below")+"
> KMA of " +WriteVal ((T),format=1) +" Bars by
> "+WriteVal(abs(KMA),format=1.2)+"%";
> 
> 
> Regards
> 
> Don McKay


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/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/