Low and High - page 4

 
Take your time, you'll find your way ;-)
 
fxcourt:
Take your time, you'll find your way ;-)

:)

 

Hello!

I have a problem (as usually). :)

How can I get Low and High for Sunday?

I try like this on H4 chart:


if ( (DayOfWeek()==1) && (Hour()==0) ) // is it Monday?
{
TopRange=High[iHighest(NULL,0,MODE_HIGH,1,1)]; // one bar back form monday 0:00
LowRange=Low[iLowest(NULL,0,MODE_LOW,1,1)];

}


I use H4 chart and from sunday 20:00 to monday 0:00 is only one bar.

 
01005379:

Hello!

I have a problem (as usually). :)

How can I get Low and High for Sunday?

I try like this on H4 chart:


if ( (DayOfWeek()==1) && (Hour()==0) ) // is it Monday?
{
TopRange=High[iHighest(NULL,0,MODE_HIGH,1,1)]; // one bar back form monday 0:00
LowRange=Low[iLowest(NULL,0,MODE_LOW,1,1)];

}


I use H4 chart and from sunday 20:00 to monday 0:00 is only one bar.

This should work, but it doesn't. Anyone?

 
Does it give you anything or wrong values?
 
Thanks, I fixed problem. Problem was somewhere else.
 

Maybe you try to get the High and low value of a daily chart trough the iHigh ang iLow function:

double Highvalue;
double Lowvalue;

Highvalue  =iHigh(NULL,PERIOD_D1,DayOfWeek());
Lowvalue   =iLow(NULL,PERIOD_D1,DayOfWeek());

By the way...if you have a code, try to use the "SRC"-Button in the top of the "Add your comment" Box...makes it better to look at ;)

EP

 
Was too late....:D
 
ErrorProgrammer:
Was too late....:D

Thanks anyway! ;)

 
ErrorProgrammer:

By the way...if you have a code, try to use the "SRC"-Button in the top of the "Add your comment" Box...makes it better to look at ;)

EP

Comment(" :) ");


Like this?