Login Page - Create Account

Support Board


Date/Time: Sat, 27 Apr 2024 02:46:30 +0000



[User Discussion] - Custom text overlay by price study development advice

View Count: 1475

[2015-08-11 16:58:33]
Joe Hobart - Posts: 89
Im looking to develop a study that will allow me to translate futures prices into ETF prices. For example, ES trading 2076.50 is SPY 208.30, and every 10 cents is a 1$ of /es.

I need to overlay the price on the chart at a defined interval (5 or 10 cents) based on a calculation of the price at that level. I wanted to see if anyone had a better idea than this. I will just take the cash open price, and calculate 20 levels up and down from there, making 40 levels to be drawn. Using the DRAWING_TEXT i can pepper the current level with my grid. The problem is that text tool doesnt allow forward projection per documentation, so it may work ok for the tradedom, but will look terrible on the chart.

I also considered using 40 subgraphs of type text, which would let me project into the forward space, and should work in the tradedom and chart successfully.

Any thoughts on the better approach or is there a better way you can think of?
imagemockup.jpg / V - Attached On 2015-08-11 16:45:35 UTC - Size: 249.57 KB - 322 views
[2015-08-11 21:22:16]
Joe Hobart - Posts: 89
i ended up using DRAWING_TEXT tools, which seemed to work well in DOM and on a chart. nasty little gotcha around the .BeginDateTime for usage on the DOM vs chart expansion area.

attaching proof of concept code for the community. this thing needs work to function for various instruments, but hopefully will help someone else looking for this graphic approach.
imagefinishedrough.jpg / V - Attached On 2015-08-11 21:21:51 UTC - Size: 355.27 KB - 351 views
attachmentETFBender.cpp - Attached On 2015-08-11 21:22:06 UTC - Size: 2.69 KB - 318 views

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

Login

Login Page - Create Account