by rogueking » Fri Apr 12, 2019 3:49 am
So the user sets two variables
1. The minimum number of hours / minutes for trigger the strategy to start watching open trades.
2. The close value that will trigger the close trade action.
So if I want the strategy to start monitoring a trade that has been open for longer than six hours, I set the trigger time to 6Hrs. When a trade has been open for 6 hours, the strategy then starts monitoring its pip value waiting for the close value.
If I set the close value to -20 pips, then the strategy will wait until the open trade has been open for more than 6 hours and has reached -20 pips and then close the trade.
It's basically a simple retracement computation for a stop-loss / bad trade exit that I want to test.