Hi everyone,
I post here as a last resort as this problem is driving me mad! Hope someone can help...
Im trying to recall the High and Low of a specific time, say 01:00 - 08:00, and use them as variables to trade with. I know the answer lies somewhere in ibarshift, but i cant figure it out and google hasnt been my friend on this one...
Heres what i have so far:
As you can probably tell i am not a coder, so im sure i have an elementary misunderstanding of this function, any advice would be appreciated.
I post here as a last resort as this problem is driving me mad! Hope someone can help...
Im trying to recall the High and Low of a specific time, say 01:00 - 08:00, and use them as variables to trade with. I know the answer lies somewhere in ibarshift, but i cant figure it out and google hasnt been my friend on this one...
Heres what i have so far:
Inserted Code
double PeriodStart = Hour() == 01 && Minute() == 00; double PeriodEnd = Hour() == 08 && Minute() == 00; int StartBar = iBarShift(NULL,0,PeriodStart); int EndBar = iBarShift(NULL,0,PeriodEnd); int barHighest = iHighest(NULL,0, MODE_HIGH,StartBar-EndBar,EndBar); int barLowest = iLowest(NULL,0, MODE_LOW,StartBar-EndBar,EndBar); double PeriodHigh = iHigh(NULL,barHighest,0); double PeriodLow = iLow(NULL,barLowest,0);
As you can probably tell i am not a coder, so im sure i have an elementary misunderstanding of this function, any advice would be appreciated.
Long live dynamic range