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 [email protected], Radek Simcik <radek.sim...@...> 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
>


Reply via email to