PureBytes Links
Trading Reference Links
|
I don't think you can do this with daily bars because stop orders are
always "next bar" orders. You need minute bars or ticks.
-Alex
> Hi all,
> I have a small problem coding the following in easy language:
>
> I want to go long today if this condition is met:
>
> (1) check if open of today is more than 1% below yesterdays low,
> (2) if this is true, than buy "TODAY's" BAR at yesterdays low
> stop.
>
> When I code the following in easy language:
>
> if open < ( 0.99*(low[1]) ) then BUY at l[1] stop;
>
> Tradestation buys at the open of the following day, i.e. not on
> the day with the gap, but the following day.
>
> What could be the possible solution, any help would be
> appreciated.
>
> Thank you,
> Regards,
> Dhiraj kothari.
|