how to not plot a built-in indicator
Is it possible to use a built-in indicator in an EA without having the indicator plot on the chart? If so, how?
For example, if I want to use iATR to calculate stops but I don't want the ATR visible on the chart.
Using iATR in your EA will only refer to the indicator, it will not put the indicator on your chart.
EA's have no hands, no mouse, they can NOT put any indicator on your chart. You (or your default/tester template) put it there.
You might be right about the indicators presence on the chart having something to do with a template. However, the templates don't have hands either and I am unable to reach into the screen to fix it. Never mind, I'll just figure it out myself.
Open a clean chart with no indicators attached
Attach your EA
Does the ATR suddenly appear on the chart?
If so, show the EA's code and somebody will tell you why.
but it does put it there (in a different window of course)
Just to be clear, are you talking about using the EA on a live chart or are you talking about using the Strategy Tester?
Just include
HideTestIndicators(true);in you init.
Just include
in you init.
Is it possible to use a built-in indicator in an EA without having the indicator plot on the chart? If so, how?
For example, if I want to use iATR to calculate stops but I don't want the ATR visible on the chart.