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

[amibroker] Applystop help.



PureBytes Links

Trading Reference Links

Hello,

When I load this formula into Indicator builder and click apply...No
arrows or markers appear on the chart....Am I missing something...??? I
am using the lastest beta release....

Original post by Tomasz:

The code below marks trades exited by trailing stop with a red triangle.

Code requires version 4.22 to work.

Buy = Cross( MACD(), 0 );
Sell = Cross( 0, MACD() );

ApplyStop( stopTypeTrailing, stopModePercent, 10, True );

Equity(1); // THIS EVALUATES STOPS

Plot( Close, "Price", colorBlack, styleBar );
PlotShapes( IIf( Buy, 1,
IIf( Sell == 4, 6,
IIf( Sell, 2, 0 ) ) ), IIf( Buy, colorGreen, colorRed ) );

Best regards,
Tomasz Janeczko
amibroker.com

Thank you
Anthony



------------------------ Yahoo! Groups Sponsor ---------------------~-->
New Yahoo! Mail Plus. More flexibility. More control. More power.
Get POP access, more storage, more filters, and more.
http://us.click.yahoo.com/Hcb0iA/P.iFAA/46VHAA/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/