Login Page - Create Account

Support Board


Date/Time: Sat, 24 May 2025 10:23:51 +0000



Post From: Programming Help - How to avoid multiple trade entry signals at same price level?

[2023-08-02 06:14:04]
User61168 - Posts: 442
Thanks Tom. In most cases, I would only take one trade per bar as Average position line (APL) is fine. It's the referencing of these average price lines that is compute-heavy as I will have to check 1000s of bars on every tick to see if there is an APL that exists in the past. There is also no array looping capability so all the bar indexes would have to be hard-coded in the formula making it just impossible.

I tried the following approach but does not work and I don't know why.....

Create an color bar alert condition "based on" APL study as input. Use "draw extension lines at color bar value" setting as "extend to end of chart".... this should draw all APL lines from "all" historical bars as subgraph SG2 but I don't see any lines drawn on the chart (after I run replay for a month). I have never used SG2 before so perhaps I am not doing this right.

EDIT- Please ignore my question on extension lines. I ran into this thread Alert when crossing extension line and reference to extension lines are not supported by Sierra Charts (which sucks!)
Date Time Of Last Edit: 2023-08-02 08:34:02