Login Page - Create Account

Support Board


Date/Time: Thu, 18 Apr 2024 03:53:06 +0000



[Programming Help] - Automatic Moving Vertical Line

View Count: 2605

[2019-03-08 05:25:48]
HAB-User115006 - Posts: 38
I want to display a vertical line either on an existing indicator or the entire 5 min chart(like a verticl drawing tool)
This vertical line will display at the last CLOSED bar and not the current bar that is still being built and has not yet closed
After the current bar closes this vertical line will advance 1 bar

Any suggestions on how I may be able to configure existing tools/studies to achieve the above?

Thanks
[2019-03-14 20:37:42]
HAB-User115006 - Posts: 38
Any input on the previous question?

Thanks
[2019-03-14 21:43:37]
Sawtooth - Posts: 3973
Try this:
Add the Spreadsheet Study study:
- Set the Chart Region to 1
- Give it a name in the Spreadsheet Name field.
- On the Subgraphs tab, set the Draw Style of SG1 to Background and the Width to 2
- Press OK and OK
On the spreadsheet:
Put this formula in cell K3:
=ROW()=4

You can minimize the spreadsheet.
[2019-03-14 23:06:01]
HAB-User115006 - Posts: 38
tomgilb: I dont use spreadsheets, I am using ACSIL, any leads on that?
[2019-03-14 23:44:56]
HAB-User115006 - Posts: 38
Ackin: Thanks so much it works !!!, I used the 64 bit version, I want to modify the color RGB(0,128,0) with as a DOT line style, could you please post the source? I can make the changes nd send you the source back... OR or would really appreciate a version with Study Inputs if you have it...
Date Time Of Last Edit: 2019-03-14 23:45:28
[2019-03-15 00:11:21]
HAB-User115006 - Posts: 38
Ackin: Beautiful, Thanks !!!
[2019-03-15 17:47:01]
Sierra Chart Engineering - Posts: 104368
If you are using ACSIL, this is quite simple. Use a Subgraph Draw Style of Background and then just simply set that Subgraph Data at the sc.ArraySize - 2 index to 1. As new bars are added you will have to clear this 1 value at prior bars.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2019-03-15 17:48:09
[2019-03-18 04:26:31]
HAB-User115006 - Posts: 38
Ackin: The study works great but I am seeing these messages in the Message Log, I think on every tick, do you know what this is? Is there anything in your source code that needs changes? I have attached a screen shot

Thanks
imageScreen Shot 2019-03-17 at 9.18.55 PM.png / V - Attached On 2019-03-18 04:22:50 UTC - Size: 98.77 KB - 613 views
Attachment Deleted.
[2019-03-19 14:08:11]
HAB-User115006 - Posts: 38
Ackin: Ok, great, please let me know or send the function, I think you are writing to the log every sec/tick, definately using up a lot of CPU on my PC
Thanks
[2019-03-20 07:36:36]
HAB-User115006 - Posts: 38
All good, Thanks

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

Login

Login Page - Create Account