Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 440
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
it works for me - it tracks mouse movement
I mean surolling).Good day to all. There is a need to analyse information from a senior timeframe.
The system has a condition to build a channel. It's finding the maximum and minimum prices for a certain number of bars. I implemented it using the following method:
But this approach leads to analysis of bars from the current working timeframe M5. I need bar1 and bar2 parameters to be taken from M15
How to implement this?
I have a feeling the problem is somewhere in here.
Who's to say what?
I have a feeling the problem is somewhere in here.
Who's to say what?
Well, yeah, specify the right timeframe.
Right, specify the correct timeframe
So I said...
TimeFrameRZ = PERIOD_M15
It's an external variable.I declare an array and fill in the elements.
Why do I get a declaration without type error on the second line?
I declare an array and fill in the elements.
Why do I get a declaration without type error on the second line?
Write code in void OnTick() and everything will work.
Or writearray[0]=0.1; in void OnTick()
I declare an array and fill in the elements.
Why do I get a declaration without type error on the second line?
Are you declaring the array in the area of global variables?
Then declare it at once with values (since you fill them yourself in the code, so they are predefined), for example:
... Or fill the array with values in OnInit() or in the function, where it will be filled.
Please advise how to output the values of the ZigZag indicator into the EA? The others are printed by iMA, iStochastic, iWPR ... How do I manually calculate ZigZag?
Decided to use? The ZigZag indicator values are zero everywhere. Only in the tops the zigzag value is equal to the price at the top.
You have to go through the bars in a loop. See example