PureBytes Links
Trading Reference Links
|
Hi
i tried to create a stoploss formula but there is something wrong
please correct it
buy=cross macd, sell =cross signal
initail stoploss is 2% but when prices up 4% stoploss move to breakeven
buyprice
Buy = Cross( MACD(), Signal() );
Sell =
Cross( Signal(), MACD() );
rink=(ApplyStop( 0, 1, 0, 1, volatile = False, ReEntryDelay = 0
));
rin=(ApplyStop( 0, 1, 2, 1, volatile = False, ReEntryDelay = 0
));
Hy=ValueWhen(Buy,C,1);
hhhh=HighestSince( Buy,H,1);
IIf((Hhhh> (1.04*Hy)),rink,rin);
__._,_.___
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
__,_._,___
|
|