Support Board
Date/Time: Sat, 24 May 2025 12:47:09 +0000
Post From: Experiencing slow calculations speed when getting data from another chart study
[2023-08-03 16:29:14] |
LoupyTrader - Posts: 8 |
Problem solved using manual looping. I will split the algo in two parts : calculations that needs to be done for every bar and looking for trades separately only when the latest bar is updated. To be honest I wasn't 100% aware of manual looping would work with that. You may want to have the value in a variable remain persistent between calls to your study function. For example, when using Automatic-Looping (the default and recommended method of looping) your study function is called for every bar in the chart. If you want to have a variable retain its value between calls into your study function, then you need to use persistent variables.
ACSIL Interface Members - Functions: Persistent Variable Functions The documentation kind of misled me into thinking that would be the only way to achieve what I want to do. Date Time Of Last Edit: 2023-08-03 16:29:52
|