Hi I am looking to stop all automated trading when a condition is met.
The condition typically only occurs once and then reverts back to the original state so I'm having trouble keeping trading stopped.
Condition1 = AvgTrueRange(1) >= 0.015;
Refers to one bar back.
How would I set this condition to continue being true after it has occured? Allowing for the creation of a statement to stop all trading for the day.
|