bug in Highest() & Lowest() need work around
valLowest=iLow("USDJPY",PERIOD_H1,iLowest("USDJPY",PERIOD_H1,MODE_LOW,12,0));
valHighest=iHigh("USDJPY",PERIOD_H1,iHighest("USDJPY",PERIOD_H1,MODE_HIGH,12,0));
feel the difference
valLowest=iLow("USDJPY",PERIOD_H1,iLowest("USDJPY",PERIOD_H1,MODE_LOW,12,0));
valHighest=iHigh("USDJPY",PERIOD_H1,iHighest("USDJPY",PERIOD_H1,MODE_HIGH,12,0));
feel the difference
You agree to website policy and terms of use
valLowest=Low[iLowest("USDJPY",PERIOD_H1,MODE_LOW,12,0)]; valHighest=High[iHighest("USDJPY",PERIOD_H1,MODE_HIGH,12,0)]; Print(pair," valLowest: ",valLowest," valHighest: ",valHighest);Is there another way to code this to get the information? I know that I could use this but I want to be able to lookback by X-hours.
valLowest=MarketInfo("USDJPY",MODE_LOW); valHighest=MarketInfo("USDJPY",MODE_HIGH);