The only 100% reliable way is to write custom backtester code and refer to the 
trades list. Otherwise, you don't even know for sure whether the Buy was filled 
or rejected.

Mike

--- In [email protected], "Rob Boyd" <cadc...@...> wrote:
>
> I have tried using   BarsSince (Buy)  but if a second buy signal is 
> encountered, it counts from the new signal. To overcome this I have tried 
> setting a variable which tells me I am currently in a trade but the variable 
> first needs to be initialized. I have tried  
> InTrade = IIf (IsNull (InTrade),0, InTrade);
> // if null then set to zero otherwise keep current value. 
> But this does not work.
> Many thanks
> Rob
>


Reply via email to