if
// All Variables Reset
(BarsSinceExitExecution(0, "", 0) == 0)
{
EvalHold = false;
Bar1Long = false;
Bar2Long = false;
Bar1Short = false;
Bar2Short = false;
}
I suspect I've written the Bars Since Exit Execution incorrectly. These orders appear to be being ignored.
Variables which were set to true prior to condition entry can stay that way through the trade and are then supposed to reset to false immediately upon trade completion...
Lets say a long just successfully completed...
if
// All Variables Reset
(BarsSinceExitExecution(0, "Long", 0) == 0)
{
EvalHold = false;
Bar1Long = false;
Bar2Long = false;
Bar1Short = false;
Bar2Short = false;
}
I want variables to reset to false immediately so to properly wait for 2 variable conditions to become true AFTER the trade completed. What's happening is the conditions for variable one and 2 appear to be using evaluations from inside the active trade and if met are immediately firing on next bar after trade completion. The reset logic employed here appears to be ignored...
Que Pasa??
Comment