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

[amibroker] equity and applystop



PureBytes Links

Trading Reference Links

Hello,

i want to plot shapes at the when the applystop function stopped my trade.
So i have coded it as described in the amibroker help:
"Using Equity( 1 ) evaluates stops and writes BACK
signals to sell/cover arrays. Equity(1) also removes
all extra signals. "

Unfortunately i only receive shapes when it was a regular exit but not when it was a stop exit.
The build-in arrow appear at the stop bar. Can someone help ?
Here is my sample code:

fast = EMA(C,3); slow = EMA(C,10);
Buy=Cross(fast,slow); Sell=Cross(slow,fast);
Short = 0; Cover = 0;

Equity(1);
PlotShapes(IIf(Sell==1,25,IIf(Sell==2,25,-1e10)),Sellcolor,0,SellPrice,0);
Regards

Thomas
www.tradingbasis.com


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS