// Your decision today to trigger a buy tomorrow
Trigger = ...

// Your buy today based on yestereday's trigger
LimitPrice = 0.99 * Ref(Close, -1);
Buy = Ref(Trigger, -1) && Low <= LimitPrice;
BuyPrice = min(Open, LimitPrice);

Mike

--- In [email protected], "Paolo Cavatore" <pcavat...@...> wrote:
>
> I'm sure this question has already been done but I couldn't find any answer.
> 
> How can I code a buy limit order for tomorrow at a limit price lower than 1% 
> of today close?
> 
> Many thanks for any help,
> 
> paolo
>


Reply via email to