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

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



PureBytes Links

Trading Reference Links

Hi,

anybody would have any idea how I can code this in AB?

Enter on close on trigger day and exit next day either on close or intraday stopTypeLoss?

thank you,

Radek


--- In amibroker@xxxxxxxxxxxxxxx, Radek Simcik <radek.simcik@xxx> wrote:
>
> 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/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/