Hello! I am new to developing on MQL5 and basically coding in general. I watched a step by step tutorial in order to learn how to code a simple MA crossover. The problem is that I am getting several errors in lines 23,25 and 41 and despite the fact that I have been trying to resolve them for a few hours, I just can't do it. I don't yet understand what is the exact issue. I was hoping maybe someone would be able to help me solve it or just explain to me what is it that I'm doing wrong. This is my code:
Files:
Screenshot_2021-08-25_at_17.22.43.png
30 kb
- Experts: Adding password protection to your Indicator / Expert Advisor
- how to solve ',' - open parenthesis expected error in MQL5 ?
- I am have a problem with the coding any help would be great attached is the basic ea
MatiasSol:
Hello! I am new to developing on MQL5 and basically coding in general. I watched a step by step tutorial in order to learn how to code a simple MA crossover. The problem is that I am getting several errors in lines 23,25 and 41 and despite the fact that I have been trying to resolve them for a few hours, I just can't do it. I don't yet understand what is the exact issue. I was hoping maybe someone would be able to help me solve it or just explain to me what is it that I'm doing wrong. This is my code:
Hello! I am new to developing on MQL5 and basically coding in general. I watched a step by step tutorial in order to learn how to code a simple MA crossover. The problem is that I am getting several errors in lines 23,25 and 41 and despite the fact that I have been trying to resolve them for a few hours, I just can't do it. I don't yet understand what is the exact issue. I was hoping maybe someone would be able to help me solve it or just explain to me what is it that I'm doing wrong. This is my code:
Example: a simple Expert Advisor at the intersection of two iMA (Moving Average, MA) indicators.

How to start with MQL5
- 2020.09.17
- www.mql5.com
This thread discusses MQL5 code examples. There will be examples of how to get data from indicators, how to program advisors...
Does this look correct to you?
datetime time = iTime(_Symbol,PERIOD_CURRENT,0); if(timestamp != time){ timestamp = time static int SlowSMA = iMA(_Symbol,PERIOD_CURRENT,100,0,MODE_SMA,PRICE_CLOSE);

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register