Trading Sessions Indicator Lag + Disappearing Issue

Post Reply
boycoffee
Posts: 18
Joined: Sun Oct 08, 2023 12:11 am

Trading Sessions Indicator Lag + Disappearing Issue

Post by boycoffee »

Hi!

Experiencing noticeable lag playing candles forward when using the Trading Sessions Indicator even when it is set to 1 day. The higher the No. of days the more the lag increases. Same in both TV view and Meta view.

Alongside this it disappears when you try to edit it. You can make it reappear again by either re adding it or by adding another indicator then deleting it.

Made a video that demonstrates these things
https://youtu.be/YqQNKPIZBUQ

Thanks and keep up the good work.
NakedMarkets
Posts: 251
Joined: Tue Feb 22, 2022 11:06 am

Re: Trading Sessions Indicator Lag + Disappearing Issue

Post by NakedMarkets »

Hi !

First, thanks a lot for your video explaining the issue.
In fact, the trading sessions indicator has been updated previously to fix this particular issue :
viewtopic.php?t=718

However, we decided to update it once again in order to improve the latency and display the rectangles in a better way, like under tradingview.
You can download this new version here and put it in your "Indicators" folder :
https://github.com/NakedMarkets/Indicat ... ssions.dll

This version of the indicator will be the default one from now,

Thanks
boycoffee
Posts: 18
Joined: Sun Oct 08, 2023 12:11 am

Re: Trading Sessions Indicator Lag + Disappearing Issue

Post by boycoffee »

Awesome will give it a shot and let you guys know how it goes!
boycoffee
Posts: 18
Joined: Sun Oct 08, 2023 12:11 am

Re: Trading Sessions Indicator Lag + Disappearing Issue

Post by boycoffee »

Hi,

Just tested the new sessions.dll you guys sent.
Good news is the disappearing issue is fixed. Unfortunately the lag issues still persists as seen in the video I sent with no observable improvement.

Thanks
boycoffee
Posts: 18
Joined: Sun Oct 08, 2023 12:11 am

Re: Trading Sessions Indicator Lag + Disappearing Issue

Post by boycoffee »

Also a thing I noticed was that the opacity settings in the indicator don't work, nothing changes when they're adjusted. Compare this this to the regular shapes which work fine.
NakedMarkets
Posts: 251
Joined: Tue Feb 22, 2022 11:06 am

Re: Trading Sessions Indicator Lag + Disappearing Issue

Post by NakedMarkets »

Hi,

For the lag, we could optimize the functions used by the indicator (highest() and lowest()) to gain performance for the next release.
However, the indicator will still need to calculate the coordinates of the rectangle to display and as other indicators, the backtest forward process is slightly slower with an indicator attached.
We will see what we can do for the speed.

About the opacity settings, yes, it's normal. As we can see in the source code of this indicator here, the opacity is forced to be 100 (on 255) in order to avoid displaying opaque rectangle. However, you can change the color and choose lighter ones to have less opacity.
It could be changed to let the user select the opacity but the default one could not be opaque, otherwise the bars will no longer be visible.
Post Reply