Support Board
Date/Time: Tue, 26 Aug 2025 10:31:35 +0000
Post From: Custom Study not plotting correctly
[2025-07-21 20:20:39] |
Knapp-Time - Posts: 3 |
I have a relatively simple ACSIL custom study to calculate the difference of the 200 SMA of the current bar to the value 7 bars previous. I added logging and see that the Delta subgraph is printing values around 3.78 in the log but the plot doesn't look correct - it is trending down when the 200 SMA is trending up. I am attaching the ACSIL code as compiled, screen shot of chart, and message log. Appreciate any help with this. The code seems (to me) to fairly simple. Also, I tried same study on a time based chart instead of the tick chart but got the same result. Screenshot of chart https://www.sierrachart.com/image.php?Image=1753128933940.png Debug Logs 2025-07-21 15:51:34.446 | Chart: NQU25_FUT_CME [CBV][M] 5 Min #3 | Study: Slow MA Delta Trend Strength - Manual Loop | SlowMA: 23321.164062, SlowMA: 23317.419922, Delta: 3.744141 | Number times message added: 1 2025-07-21 15:51:34.681 | Chart: NQU25_FUT_CME [CBV][M] 5 Min #3 | Study: Slow MA Delta Trend Strength - Manual Loop | SlowMA: 23321.160156, SlowMA: 23317.419922, Delta: 3.740234 | Number times message added: 4 2025-07-21 15:51:35.348 | Chart: NQU25_FUT_CME [CBV][M] 5 Min #3 | Study: Slow MA Delta Trend Strength - Manual Loop | SlowMA: 23321.154297, SlowMA: 23317.419922, Delta: 3.734375 2025-07-21 15:51:35.491 | Chart: NQU25_FUT_CME [CBV][M] 5 Min #3 | Study: Slow MA Delta Trend Strength - Manual Loop | SlowMA: 23321.160156, SlowMA: 23317.419922, Delta: 3.740234 | Number times message added: 1 |
![]() |