Unset indicator minimum & maximum fixed scale ( ie revert IndicatorSetDouble(INDICATOR_MINIMUM,x) )

 

Hi


The functions to set a fix minimum & maximum scale for an indicator are:


IndicatorSetDouble(INDICATOR_MINIMUM,xxxx);
IndicatorSetDouble(INDICATOR_MAXIMUM,xxxx);


but how to revert this and return to automatic scaling ? ie: equivalent to uncheck the boxes on the UI:


 
Philippe Pauleau: but how to revert this and return to automatic scaling ?
  1. IIRC, the answer is you can't in code.
  2. Add two extra buffers, filled with your minimum and maximums. Set them back to EMPTY_VALUE when you don't.