I want to write a code that uses the high and low of the daily bar BUT only the high/low during specific market open hours (as opposed to the high/low between 00:00-23:59 like it does now)
The way I do it now is using a 30 min time frame, something like this
1
2
3
4
IFtime>=OpenMarketANDtime<=CloseMarketTHEN
maxprice=MAX(maxprice,high)
minprice=MIN(minprice,low)
ENDIF
BUT…I would like to be able to view this information and use it on a daily chart and not a 30 min chart.
I tried using time frames to gather high/low on a 30 minute chart and then do other calculation on the Daily chart but I get a message it is not installed on my system (10.3) yet.
Any advice would be appreciated.
MTF is already installed for demo accounts but IG needs to be addressed to have it installed for real accounts, just send them an email or make a phone call. It is still being beta tested to find out bugs, eventually.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue