- Possible to get old comment of a chart?
- How do I learn to create graphical objects? MQL4.
- Can an EA open trades from alert/plots generated by an Indicator?
Ok.. You can get the value of an indicator like CCI or Stochasitc for any bar on the chart and use that value in your trading code.
Ok.. You can get the value of an indicator like CCI or Stochasitc for any bar on the chart and use that value in your trading code.
thank you. I was looking at some code an was curious if this was correct?
iMA(NULL,0,SlowMA,0,MODE_EMA,PRICE_CLOSE,2);
This means that the time frame is taken direct from the chart on which it is place?
But what happens if you are changing charts to look at the trend?
Does time EA restart or does nothing? would it be better to set the Timframe As a External declared in the beginning? like some like this;
extern int ShortEma = 10;
extern int EMAsTimeFrame = 1;
iMA(Symbol(),EMAsTimeFrame,ShortEma,0,MODE_EMA,PRICE_CLOSE,0);
Open another chart to "look at the trend".
Or, specify the time frame in the EA, as you said.
But, if an EA is running on a chart, I would not be messing with that chart.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use