Login Page - Create Account

Support Board


Date/Time: Wed, 15 Jan 2025 10:11:36 +0000



Post From: study is called in an endless manner

[2017-06-06 20:55:29]
jizzary - Posts: 177
i have an EMPTY study

it is being called every interval as

  sc.UpdateAlways = 1;


out of SetDefaults block it does nothing excpet the following print

  logMsg.Format("[Study Body Called %d]", sc.Index);
  sc.AddMessageToLog(logMsg, LOG_WIN_CLOSE);
  return;


the regular print at the log window on the go looks as follows (pls notice the numeric value of sc.Index)
as expected after scanning the historical bars it shows few times the real time bars
where sc.Index stays the same until the bar is closed

Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 0] | 2017-06-06 16:13:42
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 1] | 2017-06-06 16:13:42
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2] | 2017-06-06 16:13:42
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 3] | 2017-06-06 16:13:42
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 4] | 2017-06-06 16:13:42
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 5] | 2017-06-06 16:13:42
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 6] | 2017-06-06 16:13:42

.
.
.
.
.
.

Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:32
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:33
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:33
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:34
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:34
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:35
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:35
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:36
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:36
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:37
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:37
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:38
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:38


so far so good

now ... pls go to Trade menu and do as follows:

1. Open Trade Window For Chart

then

2. switch to simulation mode (Trade Simulation Mode On menu entry)

the print at the log window will now roll and become zero which means that my study has been restarted

Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:36
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:37
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:37
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:38
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:38
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 0] | 2017-06-06 16:14:39
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 1] | 2017-06-06 16:14:39
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2] | 2017-06-06 16:14:39
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 3] | 2017-06-06 16:14:39
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 4] | 2017-06-06 16:14:39
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 5] | 2017-06-06 16:14:39
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 6] | 2017-06-06 16:14:39
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 7] | 2017-06-06 16:14:39
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 8] | 2017-06-06 16:14:39
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 9] | 2017-06-06 16:14:39
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 10] | 2017-06-06 16:14:39
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 11] | 2017-06-06 16:14:39
.
.
.
.
.
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:46
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:46
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:47
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:47
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:48
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:48
Chart: F.US.CLEN17/F.US.CLEN17 [C] Renko 13t #3 | Study: FUTURES | [Study Body Called 2353] | 2017-06-06 16:14:49


after we will agree that this is YOUR bug
i will explain what MAY BE the reason for endless restart of the study function


in case you still think the problem is w/ my code i'm open to study and recheck my code
and you have to keep in mind that there is actually no code - it is an empty study
Date Time Of Last Edit: 2017-06-06 21:06:41