buyStop = CrossAbove( myRSI(param1,param2,param3,param4).rsi, myRSI(param1,param2,param3,param4).rsilower, 1); shortStop = CrossBelow( myRSI(param1,param2,param3,param4).rsi, myRSI(param1,param2,param3,param4).rsiupper,1);
if rsi[0]>100) { param1 += 1; goto recalculatebar; }
OnBarUpdate { recalculatebar: ..
- Ensure the indicator passes the reset param1 value back to the strategy
- Ensure the Strategy Optimizer never saw the bad parameter value
- Make sure the indicator display will show the reset param1 value, since for a given chart the new param1 value is used over all bars.
Thus, I need to dynamically reset a param value inside an indicator's OBU and have everything recognize the param value was changed, and not have the strategy optimizer ever see the "bad" param value for the current iteration during the genetic optimizer training.
Comment