Chart text fixed and move with time - futures io
futures io futures trading



Chart text fixed and move with time


Discussion in NinjaTrader

Updated by planetkill
    1. trending_up 732 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 10 replies
    2. attach_file 7 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Chart text fixed and move with time

(login for full post details)
  #1 (permalink)
Phoenix AZ USA
 
Experience: Intermediate
Platform: NinjaTrader Think or Swim
Trading: ES CL
 
Posts: 11 since Apr 2020
Thanks: 107 given, 18 received

Hi Folks,
I already checked with the NT8 support Team and was told that NT8 cannot incorporate a chart mod I am looking for. Therefore, I am hoping that somebody on the future.io can help. What I'd like seems simple (never is), but it is way above my capability to code/write scripts or the like. So, here it is:

On my ES/MES or any other instrument chart, I have placed several text blocks. These help me remember things and quickly
identify certain items on the chart. These are helpful to me, at least now that I am still learning the chart (VWAP as discussed brilliantly by Jonnyboy). These text blocks/cells are strategically placed on the chart at various locations, denoting certain information.
The problem is that, as the timeline increasingly moves forward, the text blocks remain stationary and eventually go left off the screen. It is a major pain to select each one individually and move it forward to its proper place on the chart at the current time.
If they would stay fixed and track with the time, that would be great. Alternatively, if I could at least select them as a group and move them forward on the chart and then make minor adjustments by moving them to their proper place, that would make things somewhat easier.

I have attached a pic of the chart in order to show what I mean. By the way, I tried attaching some of them to the actual SD band, but to no avail. I am not at all sure that this is possible, but, if you members cannot come up with a solution, I will know it cannot be done!!

Happy 4th to all.

Thanks a million.
PK2020 aka Meatball
ES 09-20 (987 Tick) 2020_06_29 (1_48_21 PM) chart

Attached Thumbnails
Click image for larger version

Name:	ES 09-20 (987 Tick) 2020_06_29 (1_48_21 PM) chart.png
Views:	14
Size:	189.9 KB
ID:	302595  
Reply With Quote

Can you help answer these questions
from other members on futures io?
T​​​​​​radestation datafeed (real time and historical) to NT8
NinjaTrader
IB Bracker Order
Platforms and Indicators
help to convert from thinkscript to ninjascript
NinjaTrader
Best Order flow DOM on MAC
Platforms and Indicators
Stacked Imbalances.
Sierra Chart
 
 
(login for full post details)
  #2 (permalink)
Phoenix AZ USA
 
Experience: Intermediate
Platform: NinjaTrader Think or Swim
Trading: ES CL
 
Posts: 11 since Apr 2020
Thanks: 107 given, 18 received

Evening,

I'll post my own reply.
I'm still trying to tie the text cells as seen above to the active chart which would help me quickly ascertain where elements of the VWAP (and other helpful elements) are in any given moment. The moving chart moves fast with volatile ticks and gets crowded as well.
I probably think what I'd like is not really possible, but I wanted to let you, able members, take a peek to confirm or refute
this chart style mod possibility and/or offer some options, such as a text cell placed somewhere helping me keep things straight.

Anyway, any input is greatly appreciated.

Ciao PK

Reply With Quote
 
(login for full post details)
  #3 (permalink)
New York City + NY/United States
 
 
Posts: 225 since Sep 2018
Thanks: 85 given, 182 received


I think you can easily do it in NT8.

Try to double click on the text boxes to get the names of the object. Then create a very simple indicator that on update redraws the your text box objects at some offset from the current bar.

Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #4 (permalink)
Phoenix AZ USA
 
Experience: Intermediate
Platform: NinjaTrader Think or Swim
Trading: ES CL
 
Posts: 11 since Apr 2020
Thanks: 107 given, 18 received

Hi, planetkill,

Thanks for responding. Now, for me, the trick will be to try what you said since I am not really
conversant with what you suggest. I really do not know how to create an indicator.
Perhaps either you or some member can guide me a bit. I've come to rely
on this text cell array to help me keep things clear on my chart. I was just about to let the
idea fall by the wayside but maybe there is still hope.

Again, thanks for responding.






Ciao, PK

Attached Images
 
Reply With Quote
 
(login for full post details)
  #5 (permalink)
New York City + NY/United States
 
 
Posts: 225 since Sep 2018
Thanks: 85 given, 182 received

Sure, I will try to help you. But I am a beginner at Ninjascript and mostly hack together pieces of code from google.
Also, in general NT support is more helpful when they are asked specific questions. For example, your initial question is a little confusing, so NT support probably just copy pasted their default reply of this functionality is not available, and you can work with a 3rd party or something like that.
Instead, ask NT forum support very specific questions, such as "how do I redraw a textbox in ninjascript x bars away from the current price". They will often times reply with sample code.

What I've done is modified my custom tick and time counters, which were already modifications of another indicator, so this code might be messy, I don't know.

Here are the steps:

1. From NT control panel, select New dropdown --> NinjaScript Editor
2. Right click on indicators on the right side, and New Indicator
3. Click generate on the wizard, do not need to go through the steps
4. Delete all of the code and replace with the code I've attached in the text file
5. Right click anywhere in the code and select Compile
6. If no errors, also control+s
7. Go back to your chart and add your new "MovingText" indicator

Most important part is this line:
Draw.Text(this, "Text", false, textbox, 5, Close[0], 10, ChartControl.Properties.AxisPen.Brush, TextFont, TextAlignment.Left, Brushes.Transparent, Brushes.Transparent, 0);

The 5 is supposed to be x axis offset, and the number 10 is supposed to be the y axis offset.
Play around with the parameters and see if you can get the text boxes where you need them.





PK2020 View Post
Hi, planetkill,

Thanks for responding. Now, for me, the trick will be to try what you said since I am not really
conversant with what you suggest. I really do not know how to create an indicator.
Perhaps either you or some member can guide me a bit. I've come to rely
on this text cell array to help me keep things clear on my chart. I was just about to let the
idea fall by the wayside but maybe there is still hope.

Again, thanks for responding.






Ciao, PK


Attached Files
Register to download File Type: txt MovingText.txt (3.5 KB, 3 views)
Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #6 (permalink)
Phoenix AZ USA
 
Experience: Intermediate
Platform: NinjaTrader Think or Swim
Trading: ES CL
 
Posts: 11 since Apr 2020
Thanks: 107 given, 18 received

planetkill,

Thanks for your reply. I appreciate all the info you provided. I'm not sure I have the confidence to go into NT script stuff. I'll try to muster the courage to try it.

In any case, I'm thinking what I am asking is pretty complicated to do. To be clear, if you look at my chart, I've placed quite a few different text boxes on a live, moving chart in order to help me quickly identify the various elements of the Vwap indicator. And I want all those text boxes to move along together with the advancing chart so they do not go left off the chart as time advances. It is a pain to keep moving them back to their original position. I do not have the knowledge to do NT scriptwriting, but, again, it seems
that this is a complicated thing I am asking.

So, if you haven't seen the chart I originally attached, I am attaching a screenshot so you can see what I am asking.
I can see that you are a busy guy so I do not expect you to devote a lot of time to this. Perhaps others will have comments regarding
this question.

Thanks again. :thank_you:
PK



ES 09-20 (987 Tick) 2020_06_29 (1_48_21 PM) chart

Reply With Quote
 
(login for full post details)
  #7 (permalink)
New York City + NY/United States
 
 
Posts: 225 since Sep 2018
Thanks: 85 given, 182 received

I saw the charts, but I can't identify what's your text box, and what's part of the vwap indicator you're using.

Another thing that can be done is indicators will sometimes expose their data points in the data box, and this can be used in your custom indicators. Perhaps you can anchor your text directly to the vwap, instead of as an offset redraw like from my initial proposal.
PK2020 View Post
planetkill,

Thanks for your reply. I appreciate all the info you provided. I'm not sure I have the confidence to go into NT script stuff. I'll try to muster the courage to try it.

In any case, I'm thinking what I am asking is pretty complicated to do. To be clear, if you look at my chart, I've placed quite a few different text boxes on a live, moving chart in order to help me quickly identify the various elements of the Vwap indicator. And I want all those text boxes to move along together with the advancing chart so they do not go left off the chart as time advances. It is a pain to keep moving them back to their original position. I do not have the knowledge to do NT scriptwriting, but, again, it seems
that this is a complicated thing I am asking.

So, if you haven't seen the chart I originally attached, I am attaching a screenshot so you can see what I am asking.
I can see that you are a busy guy so I do not expect you to devote a lot of time to this. Perhaps others will have comments regarding
this question.

Thanks again. :thank_you:
PK



ES 09-20 (987 Tick) 2020_06_29 (1_48_21 PM) chart


Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #8 (permalink)
Phoenix AZ USA
 
Experience: Intermediate
Platform: NinjaTrader Think or Swim
Trading: ES CL
 
Posts: 11 since Apr 2020
Thanks: 107 given, 18 received

planetkill,

Thanks again.

All the text boxes (25 of them!) are made from the drawing tool and manually dragged to their respective positions most sitting
on top of the stock lifetime edition of NT8 "Order Flow VWAP." As such, as the VWAP timeline increases, these text boxes are left behind
and I have to constantly reposition them back to their proper positions on the VWAP.
I hope this better explains the issue.

I just looked at the data box and, perhaps, these text boxes can be linked/attached to the appropriate
elements listed in the data box since all the different elements of the text boxes are in the data box.
If and how that could be accomplished way above my measly paygrade.

Ciao, PK

Reply With Quote
 
(login for full post details)
  #9 (permalink)
New York City + NY/United States
 
 
Posts: 225 since Sep 2018
Thanks: 85 given, 182 received

I understand now. It looks like you're in luck, because NT was nice enough to expose the data points for the VWAP and Std Dev bands. This means they can be used in your own custom ninjascript indicator. So you should be able to redraw your text boxes at the location of these data points, and with whatever offset you need.

This is as far as I want to help here because I too am new to ninjascript, and it would probably take me at least 1 hour to code it correctly.
If it helps, I knew absolutely nothing about ninjascript last month. And now I have the confidence to modify indicators, and ask the right questions to get what I need. If I can do it in a week, so can you!

But you should now have enough information to ask more targeted questions on the NT support forum, and they will help you figure it out.
They won't do it for you, but they will give you all the pieces. You just need to put them together.

And if you don't have the confidence to put the pieces together yourself, there is an endless supply of NT programmers that would do it, probably for a pretty low price because of how easy I think it is for anyone that knows what they're doing (not me). I'd say $50 is reasonable.






PK2020 View Post
planetkill,

Thanks again.

All the text boxes (25 of them!) are made from the drawing tool and manually dragged to their respective positions most sitting
on top of the stock lifetime edition of NT8 "Order Flow VWAP." As such, as the VWAP timeline increases, these text boxes are left behind
and I have to constantly reposition them back to their proper positions on the VWAP.
I hope this better explains the issue.

I just looked at the data box and, perhaps, these text boxes can be linked/attached to the appropriate
elements listed in the data box since all the different elements of the text boxes are in the data box.
If and how that could be accomplished way above my measly paygrade.

Ciao, PK


Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #10 (permalink)
Phoenix AZ USA
 
Experience: Intermediate
Platform: NinjaTrader Think or Swim
Trading: ES CL
 
Posts: 11 since Apr 2020
Thanks: 107 given, 18 received


planetkill,

Infinite thanks to you for the time you provided reference
to this issue. With your input, I am happy to know that this seems to be doable.
I will revisit NT Support and see what they say. If they provide the building blocks for me to attempt to develop this on my own, that'll be great. However, I am thinking that if the price is not too high for someone to program this, I would gladly pay to have it done.
Right now, I'm so tied up with the trading and many other things, that it is worth it to me to pay for someone's expertise to do it.

So, whatever happens, I sincerely want to thank you for taking up your time. You were very helpful.
In fact, you are the only person who responded to the thread, but I understand, since this thread is
a bit inconspicuous.
Good health and good trading to you.

Ciao, PK
thankyou

Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > Chart text fixed and move with time


July 10, 2020


Upcoming Webinars and Events
     



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts