Hi guys
Happy easter to you all![](https://resources.faireconomy.media/images/emojis/64/1f60a.png?v=15.1)
Any skilled EA programmers out there that can help with a small query?
In my EA I am trying to find out what the price was yesterday at 20:00. Then compare against the price this morning (Between 10am-12:00 midday).
Whilst my code seems to be working (Although a little rough, new to programming) it wont go back further than 17th March. I suspect this is a problem with iBarShift possibly?
Also I am struggling to find out what the high was for the morning period (Between 10am and 12midday).
Any ideas?
Rich
Happy easter to you all
![](https://resources.faireconomy.media/images/emojis/64/1f60a.png?v=15.1)
Any skilled EA programmers out there that can help with a small query?
In my EA I am trying to find out what the price was yesterday at 20:00. Then compare against the price this morning (Between 10am-12:00 midday).
Inserted Code
datetime yestdatetime = StrToTime(StringConcatenate(Year(),".",Month(),".", (Day() -1), ", 20:00")); offset=iBarShift(NULL,PERIOD_M5,yestdatetime,false); YesterdayClosePrice=iClose(NULL,PERIOD_M5,offset); CurrentPrice=iClose("WS30",PERIOD_M5,1);
Also I am struggling to find out what the high was for the morning period (Between 10am and 12midday).
Any ideas?
Rich