Apologies I might not have been clear in my wording. I am trying to perform a price test on historic prices as a set time of day to base the decision to open on.
In words I am trying to achieve the following:
I want the price at 4pm 5 days ago to compare to the price at 4pm yesterday. If this is positive I will open a position at the today at 11am .
I have tried the below but is it not working as expected on 1 hour charts
IF (dclose (5) <= dclose(1)) AND (hour=16 and minute = 0000) THEN
C1= 1
endif
IF (C1=1 AND time = 080000 AND not daysForbiddenEntry) THEN
BUY 1 PERPOINT AT MARKET
ENDIF
I am sure it must be simple, just new to this and trying to get some basic testing done.
Man thanks for any input in advance.