Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 02:34:02 +0000



Post From: Calculating Price Change Since Last Alert

[2024-01-18 17:07:53]
pjk0225 - Posts: 34
I need to press Ctrl+Ins on the price chart to populate my alert studies on the spreadsheet. In fact, I'm running a replay right now and the studies I have (Color Background when true, simple alerts) do not display on the chart or in the study summary window - I put the coloring studies in chart region 1 but the chart remains blank besides the price bars, and the study summary window displays 0 for their columns. If I press ctrl+ins or add the Periodic Chart Recalculation study, they magically appear.

For comparison, I'm also running different "Color Background simple alert" studies based on simpler rules like "color background if RSI > 50" and these show up in real-time without issue. The study summary window display their colors appropriately. However, my other, perhaps more complicated studies act as if nothing is happening.

To add more context, because this is a pressing issue for me, the studies that do not appear in real-time reference a number of different indicators simultaneously. I've judiciously gone through each one of those to ensure "Evaluate on bar close" is checked because I want the coloring to occur immediately when the next bar is opened. However, even with the Periodic recalculation study added and set to "1 second", the colors show up 1 bar too late.

Here is a snippet of one of the "Color background" indicators that does not display properly unless forced:

OR(
and(ID20.SG1, ID135.SG1, ID133.SG1, ID160.SG1, ID150.SG1),
and(ID20.SG1, ID135.SG1, ID11.SG1, ID160.SG1, ID131.SG1),
and(ID20.SG1, ID135.SG1, ID26.SG1, ID17.SG1, ID51.SG1),
and(ID20.SG1, ID135.SG1, ID26.SG1, ID59.SG1, ID17.SG1),
and(ID20.SG1, ID135.SG1, ID11.SG1, ID150.SG1, ID145.SG1)
)

The studies themselves calculate back 200,000 bars but I only have one day's worth of data on the screen, so less than 1000 in my replay.