Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 690
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
A few indicators and the necessary mathematical work on them might solve this problem
The standard MA has a switch from cloz to max, min, etc., but I can't find the code file in the folder.
iMA
But, there are no parameters where you can influence the parameter that is in the figure.
The smoothing method is passed without problems
And here if
requires an array "[' - array required"
But, there are no parameters where you can influence the parameter that is in the figure.
The smoothing method is passed without problems
And here if
requires an array "'[' - array required''.
It doesn't require anything, everything is optimised - both method and price. Why do you need a loop with an array? Pass the enumeration from the EA to the indicator and everything will be fine.
It doesn't require anything, everything is optimized - both method and price. Why do you need a loop with an array? Pass the enumeration from the Expert Advisor to the indicator and everything will be fine.
Holy crap, I'm a little confused. I don't need the MA. I need to get the price in the indicator calculation cycle to calculate the indicator. Here is the Close[i] - Close[i+5],
How to pass it to the indicator instead of Close[i] be for example Low[i] , weighted average prices and medians are not so important - they can be calculated.
I.e. optimize by maxima, minima and closing.
Holy crap, I'm a little confused. I don't need the MA. I need to get the price in the indicator calculation cycle to calculate the indicator. Here is the Close[i] - Close[i+5],
How to pass it to the indicator instead of Close[i] be for example Low[i] , weighted average prices and medians are not so important - they can be calculated.
In other words, we can optimize them by maxima, minima and closing.
Then we have to create an array and master CopyClose, CopyOpen, CopyHigh, CopyLow - to copy the appropriate price in the array.
or learn how to work with classes and other novelties of the new language, Indicator.mqh as an example will do
Then we have to create an array and master CopyClose, CopyOpen, CopyHigh, CopyLow - to copy the appropriate price to the array.
Or master classes and other novelties of the new language, the Indicator.mqh inluder will do as an example
I see, I'll think about it, there are examples in MQL5. In the meantime, I'll change it manually.
If anyone needs it, I've figured out how to draw an indicator by price type without any complicated constructions:
If anyone needs it, I've worked out how to do a price-type indicator rendering without complicated constructions:
Little mistake: 0=Close, 1=Open, the rest is correct.