Shift 1 day from a timestanp
-
I want to find the D1 candle before the one that the trade was opened on so I thought the best way was to loop the open trades and take their open date and back shift by 1 day but the result is a large string of numbers?
-
Or maybe I can just find the ID of the candle that is 1 day before the trade that was opened as I want to find out info on that candle such as high/low and other things to help me do things in the future.
-
Not the best way, but... https://fxdreema.com/shared/mTLwrzGPd