Login Page - Create Account

Support Board


Date/Time: Fri, 09 May 2025 00:11:14 +0000



Post From: ACSIL OrderStatusCode == SCT_OSC_OPEN not valid for manual market orders

[2024-10-26 06:57:01]
User321619 - Posts: 26
Additional AutoLoop question:

Do I need to use AutoLoop = 1 to calculate the EMA, because decision to sell will only depend on comparing last bar value and EMA. Previous bars are not used in decision making in the study. AutoLoop question is only for calculating EMA part in the study. Anywhere else we are only dealing with the last bar so keeping AutoLoop = 0 will be efficient as I understand.
What I have learned is keeping AutoLoop = 0 when you do not need calculations on previous bars is efficient. Here I just compare EMA to last bar values to make decision. Do I need AutoLoop = 1 just for calculating EMAs as shown in code?
Date Time Of Last Edit: 2024-10-26 07:06:14