hi dear Friends
I wrote a function to find Fibo Ratio for Price in Range of previous Candles 120 and use these functions for some Share in UK , US Market
but it show false result.
please help me to solve my errors
iHighest and iLowest return the index of the bar not the high or low price, hence the int declaration
https://www.mql5.com/en/docs/series
- www.mql5.com
iHighest and iLowest return the index of the bar not the high or low price, hence the int declaration
https://www.mql5.com/en/docs/series
oh my god.
alright. you are right.
thank you dear Paul
god bless you
iHighest and iLowest return the index of the bar not the high or low price, hence the int declaration
https://www.mql5.com/en/docs/series
how can get highest and lowest using ilowest and highest ?
-
Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page)?
General rules and best pratices of the Forum. - General - MQL5 programming forum?
Next time post in the correct place. The moderators will likely move this thread there soon. -
Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum 2019.05.06
Messages Editor - Trader98: how can get highest and lowest using ilowest and highest ?
How did you get the time? Perhaps you should read the manual. Predefined Variables - MQL4 Reference
How To Ask Questions The Smart Way. 2004
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
how can get highest and lowest using ilowest and highest ?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
hi dear Friends
I wrote a function to find Fibo Ratio for Price in Range of previous Candles 120 and use these functions for some Share in UK , US Market
but it show false result.
please help me to solve my errors
int fibHigh = iHighest(NULL,0,MODE_HIGH,120,2);
int fibLow = iLowest(NULL,0,MODE_LOW,120,2);
////
datetime highTime = Time[fibHigh];
datetime lowTime = Time[fibLow];
double kp=MathAbs(vAsk/(fibHigh-fibLow+0.0001));
Print(symbolName," "," Highest :",DoubleToString( fibHigh,5)," Lowest ",DoubleToString( fibLow,5)," Price : ",DoubleToStr(vAsk ,2), " Kp = ",DoubleToStr(kp,2));
output windows Result
2020.11.30 ........ UK100 Highest :2.00000 Lowest 92.00000 Price : 6392.10 Kp = 71.02
but UK100 lowest and highest value should be more than 6000 .
thank you for help .