Login Page - Create Account

Support Board


Date/Time: Sun, 28 Apr 2024 14:27:31 +0000



[Programming Help] - Switching from simulation to live

View Count: 802

[2019-06-11 10:03:40]
User255315 - Posts: 127
Hi SC,
I want to deploy an algo which uses memory, based on a particular date, a contract becomes active (volumes cross a certain threshold value). The algo then starts populating a dynamic array (memory for the algo to trade on consequent days, however, if i add the algo today to the contract chart, i could replay it to get the memory from the day it becomes active, however the trade simulating mode is off during replays and when we turn it on after the replay has reached todays date, the recalculating destroys our memory arrray/ pointers anyway.

Could you please suggest a workaround for this, to kind of bootstrap the memory of past days?


Thanks in advance!
[2019-06-11 17:04:38]
Sierra Chart Engineering - Posts: 104368
however the trade simulating mode is off during replays
You mean that the Trade Simulation Mode is on during replays.

the recalculating destroys our memory arrray/ pointers anyway.
Why does that happen? We do not know. Refer to:
ACSIL Programming Concepts: Dynamic Memory Allocations Within Study Instance
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2019-06-11 17:05:13
[2019-06-12 04:10:20]
User255315 - Posts: 127
1. I would like to accumulate the memory of the active days of the contract (which i think can be done through the replaying), and yes the trade simulation mode is ON by default during replays, but when i turn it OFF (when the replay arrives at current time), there is a full recalculation, and the persistent variable POINTERS of the dynamic arrays are reset, and the memory saved during replay is cleared.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account