Support Board
Date/Time: Sat, 19 Apr 2025 08:55:41 +0000
Post From: HOW TO REFERENCE A PREVIOUS SUBGRAPH?
[2025-04-01 13:46:21] |
JohnR - User831573 - Posts: 330 |
Another possible solution would be to use persistent variables. In there you can keep Persistent Vars for prior VAH_Prior, VAL_Prior, POC_Prior and variables for current profile VAH_Curr, VAL_Curr, POC_Curr. On each tick look for new profile start (bar #, date/time, whatever). If not new profile, save to the Curr vars. Once a new profile start is found, Move "Curr" vars to "Prior" vars, before updating the "Curr "vars. To do this you would have to code to look for the switch to the new profile start bar. When start new profile bar > old profile start bar # or something like this. Hope this helps. JohnR |