int iHigh20H1 = iHighest(NULL,PERIOD_M15,MODE_HIGH,20,1); double highestPrice = iHigh(NULL,PERIOD_M15, iHigh20H1); Print("iHigh20H1 = ",iHigh20H1," highestPrice = ",highestPrice);
Right, this is fine, but only see it with 4 digits, you should get with 5 digits.
Bellagio:
Right, this is fine, but only see it with 4 digits, you should get with 5 digits.
Read the documentation about Print()
Right, this is fine, but only see it with 4 digits, you should get with 5 digits.
deVries and RaptorUK, it already works, thanks all
- Bellagio:
Right, this is fine, but only see it with 4 digits, you should get with 5 digits.Print("iHigh20H1 = ",PriceToStr()," highestPrice = ",PriceToStr(highestPrice)); ////////////////////////////////////////////////////////// string PriceToStr(double p){ return( DoubleToStr(p, Digits) ); } string DeltaToPips(double d){ if (d > 0) string sign = "+"; else sign = ""; double pips = d / pips2dbl; return (sign + DoubleToStr(pips, Digits.pips)); }
int iHigh20H1 = iHighest(NULL,PERIOD_M15,MODE_HIGH,20,1);
Why is your variable name 20H1 when it runs on the M15if (DayOfWeek()==5)Friday=TRUE;
is Friday ever set to false? Simplifybool Friday DayOfWeek()==5;
datetime now = TimeCurrent(); // Or Time[0] int DOW = TimeDayOfWeek(now); // https://www.mql5.com/en/forum/127483 reports // DayOfWeek() always returns 5 (tester)
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
I added this part of code, but does not work, all the others if it works, OK.
int iHigh20H1 = iHighest(NULL,PERIOD_M15,MODE_HIGH,20,1);
double highestPrice = iHigh(NULL,PERIOD_M15, iHigh20H1);
if (highestPrice < Bid)
int iLow20H1 = iLowest(NULL,PERIOD_M15,MODE_LOW,20,1);
double lowestPrice = iLow(NULL,PERIOD_M15, iLow20H1);
if (lowestPrice > Ask)
Anyone can help me? tkn