it's CTrade trade; , not Ctrade.
you also get a wrong parameters count for buy and sell orders. check the official documentation to solve those errors.
btw, the videos are great if you are new in mql5. The rest is just using the official documentation to transform your ideas into code.
it's CTrade trade; , not Ctrade.
you also get a wrong parameters count for buy and sell orders. check the official documentation to solve those errors.
btw, the videos are great if you are new in mql5. The rest is just using the official documentation to transform your ideas into code.
aha, good catch. It compiles without errors now, thank you!
Well, here is a snapshot of it running so far: ***
My question is: why does it only trade the first crossover since the start of the program? None of the other crossovers are being acted upon.
- blue line: Jan 1 (start date)
- blue circle: first executed trade
- RED INDICATOR: 20 MA
- YELLOW INDICATOR: 50 MA
hello. can some please help. i am using *** to code my experts/indicators. i have build an indicator and its working/showing on my charts. now i have completed the experts advisor and i am trying to run it on tester but it give me the code 1 error and it autometical removes it from the chart.
The forum does not allow discussion of third-party products. You need to contact the author of the product and ask him questions.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I am trying to follow the code this person is providing in his example (Code pasted below)
I am not sure why certain parts of this code are indented, but I've copied the essential parts of his example (non-commented lines) word for word, yet I seem to be getting strange errors, please refer to pic:
https://imgur.com/tczlAgP
These errors just don't make sense. For example the second error says a semicolon is expected on line 3:
A semicolon is present, I am confused.
This video is definitely not the best place to start learning MQL5. Nevertheless I wanted to ask what I was doing wrong to get these strange errors.