I encounter a problem with timeframe used for ichimoku.
I have create a function “ICHIMOKU-FUNCTION” and I call it with the instruction CALL. For information; this function return the trend (1, -1 or 0) depending on the position of the price versus the kumo.
If I execute the here below code from time frame 4 hours (calling the function under 4 h timeframe), I get no issue (result is the right one).
If I execute the here below code from time frame 1 hours (calling the function under 4 h timeframe), I get no issue (at least something close to expected result).
If I execute it from the time frame 15 min or 5 min or 1 min (calling the function under 4 h timeframe), I do NOT get the right result at all.
Any idea where it could come from ? (I am not so used with prorealcode so perhaps I miss something basic)
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.