Try something like this (untested): Cond1 = Ref(Signal1, -1); Cond2 = Ref(Signal2, -1); ShortLimit = Ref(Close, -1);
ShortPrice = Max(ShortLimit, Open); Short = Cond1 AND Cond2 AND High >= ShortLimit; Your trade delays for shorting would have to be set to zero. Mike --- In [email protected], "ronspieker" <tip...@...> wrote: > > For example, you get a trade signal the previous day (EOD data) and you are > looking to sell short if the price moves above yesterday's close. > > Cond1= Ref(signal1,-1); > Cond2=Ref(signal2,-1); > Selllimit=Ref(C,-1); Want to sell short for a move above yesterday's close > Sellprice=Min(Selllimit,H); > Short = Cond1 and Cond2 and Cross(H(?), Selllimit); > > However, using the H seems incorrect since we don't know the high yet and > also I am really just looking just looking for a trigger for any move above > yesterday's close. I would appreciate a simple example of how to code this, > if possible, with EOD data. > > Thanks >
