Reply To: First Signal

Optuma Forums Optuma Scripting First Signal Reply To: First Signal

#67923
Kim
  • Topics: 18
  • Replies: 26
  • Posts: 44

Hi,

I’ve been having a similar problem that I haven’t been able to solve using NOREPEAT.

In the image below, each yellow line represents my entry signal. In the bottom panel, the green areas represent my exit signal. I’m looking to add a time exit so that if there isn’t an exit signal within 20 bars of the entry I exit the trade. I’ve tried to do this (represented by the dotted blue line) using the same code used to produce the entry signal plus:

As you can see, the time exit only shows when there are no entry signals for, in this case, 22 bars.

Ideally I’d like to be able to add the time exit to the Back Tester as an “OR”, but if that’s not possible just showing the time signal on a chart 22 bars after each entry signal would be great!

Many thanks

TimeSinceSignal

  • This reply was modified 1 month ago by Kim.

Pin It on Pinterest