Hello and thanks for your answer.
I'm searching 2 thinks:
1st with above procedure I want find highest and lowest values of pairs of currency (Using procedure 2 times) for a specific period (for ex. 25000 minutes).
2nd Using the every minute high and low of every one of pairs I want to find the maximum difference of them in the specific period.
The problem seems to be that CopyHigh and CopyLow don't copy the prices to arrays. Can you help me about?
Again Thanks for your help and sorry for my English!!
Do you mean that in MQL4 there are arrays ready that had High and low prices of any pair on any TF?????????????????? That's excellent!!! In MQL5 you must use CopyHigh and CopyLow to make this arrays!!! How can I select the pair, TF and total of Period that I want???
Thanks
double high = 0, low = 0; string Pair = Symbol(); int Periods = 25000; high = iHigh(Pair, PERIOD_M1,iHighest(Pair,PERIOD_M1,MODE_HIGH,Periods)); low = iLow(Pair,PERIOD_M1,iLowest(Pair,PERIOD_M1,MODE_LOW,Periods));
Thank you very much!!! That's exactly what I want!! But I need and the array of them that I will use frame per frame to find the maximum difference between pairs. As I wrote above I will use a loop for it except if you have another way!
Thanks again! You are great!!
Hello and thanks for your answer.
I'm searching 2 thinks:
1st with above procedure I want find highest and lowest values of pairs of currency (Using procedure 2 times) for a specific period (for ex. 25000 minutes).
2nd Using the every minute high and low of every one of pairs I want to find the maximum difference of them in the specific period.
The problem seems to be that CopyHigh and CopyLow don't copy the prices to arrays. Can you help me about?
Again Thanks for your help and sorry for my English!!
I've tested your code as it looked right to me and guess what ? The arrays were correctly re-sized and data was indeed copied into the array but...
only if the array size was 1000 or less. Starting at 1001, the array re-size worked - printed out 1001 - but no data was copied into the array.
It appears that there are some limitations, not sure why.
Try it, set your Periods to 1000, test it and then above 1000 and let us know if it's true.
Hope it helps
- 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 want help about a problem on a High-Low Routine.
I have write the following one that works excellent on MQL5:
But when I use this in a MQL4 EA it return false and close EA with message "Initialization Failed (32767)"!!
Can anybody help me???
Thanks.