I’ve been having difficulty getting Exit scripts to behave as intended for Entry scripts that generate a lot of signals.
The reason for this is that TIMESINCESIGNAL, PRICEATSIGNAL and all the other “SIGNAL” tools use the last signal which is typically not the entry signal picked up during the back test.
I’m wondering if you could add a constant like “BACKTESTENTRY” which is the signal held by the back tester during its processing of the data. This way, something like TIMESINCESIGNAL(BACKTESTENTRY) would always get the right signal.
FYI, this is also a problem with the non-trailing stop (Trailing=False), which uses the last signal not the original entry.
I’ve been managing around this via spreadsheets for the last few months, but I get so many exceptions it’s becoming difficult to be certain I’m getting the correct information - I’m good at Excel but by no means an expert.
The Back Tester “knows” the original entry as it is displayed correctly in the “Trade List” tab. What I’m looking for is access to that entry via scripting.
I’ve attached a PDF that shows the problem; hopefully it’s something you can look at including soon.