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

[amibroker] enter on today close, intraday exit on stop?



PureBytes Links

Trading Reference Links



Hi,

I want to enter on today close and exit either intraday on max loss stop or next day after entry on close. I cannot get it work.... if anybody have an idea ...

I followed Scenario 2 (http://amibroker.net/guide/afl/afl_view.php?name=applystop):
you trade on today's close and want to exit intraday on stop price

Correct settings:
ActivateStopsImmediately turned OFF
ExitAtStop = 1
Trade delays set to zero
Trade price set to close

The code I use is below. 0.1% max loss stop gives me 0 hits, all trades are exited on n-bar stop.
==============================

BuyPrice = Close;
SellPrice = Close;


SetTradeDelays( 0, 1, 1, 1  );
ApplyStop(stopTypeLoss,stopModePercent,.1,1);             
ApplyStop(stopTypeNBar ,stopModeBars,1 );                     
SetOption ("ActivateStopsImmediately", False);


Thank you,

Radek



__._,_.___


**** 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

__,_._,___