Login Page - Create Account

Support Board


Date/Time: Sun, 26 Jan 2025 07:58:36 +0000



Post From: Coding Help Needed - Automatically Plot Vertical Lines

[2017-09-26 18:21:05]
MichaelPPTF - Posts: 69
Hi support team,

I am very new to SC indicator programming and I would like to know if the following can be done:

1. Symbol specific
I would like these lines to be plotted on a specific symbol. For example, I would like to see these lines (levels) on CL but when I switch the symbol to ES, they should disappear.

2. Only accounts for specific decimal places
Let's say I would like to have a vertical line on every other 0.15 level on CL, like 49.15/ 48.15/ 50.15 and so on, but only pertains to what the current level is (when CL is at 50, display three levels within $2 range, 51.15/ 50.15/ 49.15).

3. Control the appearance of the lines
Some line should be red and dashed, and some should be yellow and solid, etc.

Can these be done with a custom indicator? Where should I start?

Thank you very much.