Setting a Price for the day
-
Dear All
I need some help please if you do not mind
I want every day, at a certain time, to have the price of that time to be set a as the DAY OPENING PRICE
Example, at server time 00:01, if the candle open price at that time is 1.1234, the value 1.234 be set as the DAY OPENING PRICE for that day
And then to have trades opening and closing around the price of 1.1234
If Moving Average crosses 1.1234 from below, open BUY trade
If Moving Averages crosses 1.1234 from above, open SELL trade
Kindly see what I tried to come up with. Unfortunately it is not working and not opening trades at the cross
https://fxdreema.com/shared/KUIoQ4VRc
I tried to set the price as a FLAG, and then CHECK FLAG for each rule
Will appreciate any advise/assistance on how to go about this please
Thanks a lot and regards
-
@zomba4rex Your 2 time filters are doing the same thing so 1 is pointless, a candle open will never be 0, it will be a a price level something like 1.6135 and there is no way of pre guessing this, you need to save the price into a variable, candle time == time now is the open of a candle.
-