Reply To: Exit Criteria for Back Tester

Optuma Forums Optuma Scripting Exit Criteria for Back Tester Reply To: Exit Criteria for Back Tester

  • Topics: 4
  • Replies: 137
  • Posts: 141


One thing you can try is wrapping the VTS in a Highest High function. That would give you the ability to control how quickly the line goes down. In the following example i used a 20 bar highest high function (red), which you can see extends the lines high value when the VTS line (green) begins to drop away.


You can adjust how long this effect lasts by increasing / decreasing the Highest Highs look back period.

The script i used for the show bar arrows in this example is:



Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.