Hey, thanks for taking the time to read my question,
I don’t have any problems compiling the entire EA, but I noticed my EA was showing up as an indicator in the MetaTrader environment and not as an EA.
Could this be because my Buy and Sell orders are incorrect?
Thanks in advance!
Have a great rest of your Sunday,
Do you have OnTick() or OnCalculate() in your code?
I have OnTick() like this:
//+------------------------------------------------------------------+ //| Expert tick function | //+------------------------------------------------------------------+ void OnTick() { //--- }
So it doesn’t have anything in it.
OnCalculate() is in a script which is included in the main file (so the file with the trade.Buy), this does have quite a few things in it.
OnCalculate() is in a script which is included in the main file (so the file with the trade.Buy), this does have quite a few things in it.
I don't know what that means and why you are talking about a script and main file.
If you have OnCalculate() in an EA, it should not be there. Indicators use it, not EAs.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hey, thanks for taking the time to read my question,
I don’t have any problems compiling the entire EA, but I noticed my EA was showing up as an indicator in the MetaTrader environment and not as an EA.
Could this be because my Buy and Sell orders are incorrect?
Thanks in advance!
Have a great rest of your Sunday,