Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 17:36:48 +0000



Post From: GDI w/2551 and study updates (manual vs auto looping implications)

[2023-11-11 09:06:23]
User431178 - Posts: 543
I would ignore the answer you got from openAI, though it is correct, it is not relevant.
You are defining a function (DrawToChart) that the program calls when a gui update is required, not "drawing from within a study's function" which is what is described by openAI.
The program determines when a repaint is needed (e.g. new data received, user interaction with gui etc), all you are doing is pointing it to the relevant function to call when doing so.

how do I get a GDI 'update' (from a study) to paint with autoloop = 0 (only 1x and persist for an entire bar's worth of tick updates)
You can't, each time the chart window updates it is redrawn. Autoloop is not relevant either.

So you add this custom study to a non-updating chart (i.e. on Saturday when the market is off) and the numbers keep counting...even though no bars are painting, etc.
Are you sure? My experience is different.