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
- [amibroker] How do I reference back to my current trade buy ... Rob Boyd
