Login Page - Create Account

Support Board


Date/Time: Sat, 30 Nov 2024 07:27:31 +0000



Post From: ACSIL study in real-time vs slow market replay

[2022-12-08 16:05:36]
User907967 - Posts: 54
Hi support team, I have played with a code that transforms DRAWING_RECTANGLE_EXT_HIGHLIGHT drawings into DRAWING_RECTANGLEHIGHLIGHT s_UseTool items, when the latest price cuts across the entire height of an item. When I am satisfied that sc.High[sc.Index] > Tool.BeginValue (and equally to the lower side), I am setting EndDateTime to become sc.Index and convert from the former to the latter s_UseTool type.

Here are some of the definitions of the study:
sc.AutoLoop = 1;
sc.UpdateAlways = 1;

When I use replay mode, everything works well. When I load the study in real-time, occasionally, it processes the change at the next candle. The example below is brilliant because I have three shapes, and the price crosses across all of them. The first and third transition well, yet the second one transitions at the next candle.

Thoughts?
imageScreenshot 2022-12-08 154546.png / V - Attached On 2022-12-08 16:03:51 UTC - Size: 79.73 KB - 149 views
imageScreenshot 2022-12-08 154734.png / V - Attached On 2022-12-08 16:03:55 UTC - Size: 86.84 KB - 214 views