Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 05:11:39 +0000



Post From: High and Low for 'Number Of Trades Per Bar'

[2023-03-17 18:37:24]
4LifeNeo - Posts: 36
Nice, John! Thanks for the tips. However, a new issue showed up when I tried that :)

The problem is with the extension lines. It's a bit complicated, but I'll try to explain.

First, I am able to get the values for the high and the low for each bar using the way you described above (using 2 Spreadsheet formulas, one for high and one for low) and they plot the high and the low nicely on this "Number Of Trades Per Bar" chart now. However, the new issue is that when I use them in combination with the "Color Bar Based On Alert Condition".

Color Bar Based on Alert Condition

In the "Output When Condition True", I set it to "Study Subgraph Reference" and use the Study for the "high" for example as the referenced study. In the "Draw Extention Lines at Color Bar Value", I set it to "Extend to Future Intersection". This works fine with the time-based chart along with the "Period OHLC-Variable Period" as a reference for high and low, but the extension lines won't stop when using the Spreadsheet Formula on the "Number Of Trades Per Bar" chart.

Anyways, just wanted to let you know in case you want to test. I need to get back to focusing on trading instead. At least I got their values from the procedure you gave me. I'll do further testing when I have time. Thank you again and have a nice day.