const string IndicatorName="indicator";
Is the indicator called "indicator"
Don't get indicator values in OnInit, get them in OnTick.
Topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I have moved your topic to the MQL4 and Metatrader 4 section.
Is the indicator called "indicator"
Don't get indicator values in OnInit, get them in OnTick.
Topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I have moved your topic to the MQL4 and Metatrader 4 section.
Sorry about the mistake.
I first wrote it in OnTick but I read somewhere that tells try it on Oninit. indicator name is indicator, I renamed it.
When I try to print or comment it, I can't even compile the file.
Your code | Documentation |
---|---|
double value = iCustom( Symbol(), Period(), Comment1, IndicatorName, Comment2, ⋮ | double iCustom( string symbol, // symbol int timeframe, // timeframe string name, // path/name of the custom indicator compiled program ... // custom indicator input parameters (if necessary) ⋮ |
I doubt the name of your indicator is "========================"
Your code | Documentation |
---|---|
I doubt the name of your indicator is "========================"
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I'm newbie on the coding expert advisor and try to do some thoughts.
I have a problem at the start of my first project. I want to use the data of an indicator that have been coded before and just prepare statements for orders. However I can't get and data and could't find and solution.
I'm sharing the code.