Want to ask how to detect previous Day data issue?
-
Want to ask how to detect Day issue?

i use previous 1 day data which is (Daily high - Daily Low) to get the length, but this suddenly appear like this causing issue that take Sunday dataany method only calculate Monday until Friday data? Meaning that if today is Monday, i must use Friday data (daily),
if today is Friday, i must use Thursday data -
This should do what you want: https://fxdreema.com/shared/mNyiw7Nlc
-
but the block function does not track whether previous day have extra 1 day (Sunday). If on Dec, there will dont have such thing added extra 1 hours of candlestick, the block is not suit to use on Dec.
-
That will go 2 days if Monday, or 1 day for all others
-
what if that Monday, does not have Sunday chart. Need to flexible block that detect if there is Sunday Chart, or dont have Sunday chart. This quite challenging .
-
What do you mean by no Sunday? Do you mean if the particular asset goes from fri to mon, but others fri - sun - mon?
-
Forex Market Trading Hours Adjustment Due to US Daylight Saving Time
In the US, Daylight Saving Time (DST) starts in March and ends in November. However, for forex traders, the key impact period is:From March to September → The US trading session (New York) extends 1 hour longer than usual.
From September to March → The trading session follows the standard time, with no extra hour extension.
so the chart, they adding 1 hour into chart on Sunday, to make it extend 1 hours
-
Yes but we were talking about day difference not DST, DST can make thing difficult but your broker will automatically change your chart, so using server time will automatically adjust for this.
-
Found another alternative way to capture data,
- direct use draw object assign value to variable,
- for each object have prefix name, link to variable (choose object on chart "attribute set", then name).
-
that is better to get Monday until Friday value directly from the display text on chart which work with variable. Able to overcome chart suddenly appear Sun/Sat chart in any time