Login Page - Create Account

Support Board


Date/Time: Mon, 17 Jun 2024 19:26:16 +0000



Drawing tool options

View Count: 399

[2021-11-11 14:31:12]
Profile Trader - Posts: 168
Currently I have a study build where I am drawing a line with text on a SC chart based on a price level input. This line continues until an endpoint is assigned. Often times I would like to move that line but Link it per say to the first line level. An example would be. a line for 2 hours on a chart at 4600 in the ES then move that line to 4595. IS there a way to have the line at 4600 for two hours then have a vertical line down 5 points and a line going forward at 4595 so u can reference its the same line just moved lower 5 points? I have not found a drawing tool I could program too do that.. maybe I am missing something??

Thanks,

Doug
[2021-11-11 15:48:11]
John - SC Support - Posts: 32406
The drawing tools themselves do not have any support for timers, but you state that you are creating the lines using a custom study, so you could use any method you like to check the time and determine when to draw the new line.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2021-11-11 16:05:17]
Profile Trader - Posts: 168
John,
Thanks for ur input, I might not have expressed the end result clearly. The time frame is not a factor here so timers per say is not what I am looking for.

Lets say a large block of orders come in at 4600 so ur study starts to draw a line at 4600. then that order gets moved to 4595 62 mins later.(as an example) I want my study to draw a line for 62 mins at 4600 and then vertical line down 5 points then horizontal line again at 4595 until my study says the size there has been deleted.
Right now I have one line for 62 mins then another line starting again at 4595. I would like to be able to draw a continuous line it that makes sense?

Thanks,

Doug
[2021-11-11 17:18:03]
John - SC Support - Posts: 32406
It sounds like you should use a Subgraph instead of a drawing tool. That way you define the value of the line at each bar. Where you do not want the line drawn you set the value of those indices to 0. Refer to the following:
Working with ACSIL Arrays and Understanding Looping: Overview of sc.BaseData[][]sc.Subgraph[].Data[]sc.Subgraph[].Arrays[][]
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account