I’ve ran into a problem concerning the Constant Date and time and specific the Hour. When i try to create a simple formula it does not return the correct info. For example:
IF (Hour[1] = 15) THEN
signal = 1
ELSE
signal = 0
ENDIF
RETURN signal
This returns nothing but when i change 15 to 16 it returns a signal at 15:00. It is getting weirder when i fill in 22:00 then it returns a signal at 21:00 and 22:00. Did anyone ran into this problem as well and where you able to fix it?
ps i added some screenshots of the results.
Code is read at Close. To get the Hour of when the candle begins, you should use OPENHOUR instead.
Thanks for the quick solution. This helped me a lot.
Hello MrFriday. I see that this is your first topic – welcome to the forums.
When putting code in your posts it is preferred that you insert it using the ‘Insert PRT Code’ button to make it more readable for others. I have tidied up your post for you but if you could use the ‘Insert PRT Code’ button in future posts it would be much appreciated 🙂