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

[amibroker] plz correct this stoploss formula


  • Date: Mon, 07 Dec 2009 19:36:56 +0530
  • From: rink <boyrinku@xxxxxxxxxxx>
  • Subject: [amibroker] plz correct this stoploss formula

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/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___