NexusFi: Find Your Edge


Home Menu

 





Chart text fixed and move with time


Discussion in NinjaTrader

Updated
    1. trending_up 4,198 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 10 posts
    2. attach_file 7 attachments




 
Search this Thread

Chart text fixed and move with time

  #1 (permalink)
 PK2020 
Phoenix AZ USA
 
Experience: Intermediate
Platform: NinjaTrader Think or Swim
Broker: NinjaTrader Brokerage
Trading: ES CL
Posts: 15 since Apr 2020
Thanks Given: 216
Thanks Received: 29

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:	299
Size:	189.9 KB
ID:	302595  
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
use extra computer for optimisation
NinjaTrader
Better Renko Gaps
The Elite Circle
Cheap historycal L1 data for stocks
Stocks and ETFs
Quantum physics & Trading dynamics
The Elite Circle
 
  #2 (permalink)
 PK2020 
Phoenix AZ USA
 
Experience: Intermediate
Platform: NinjaTrader Think or Swim
Broker: NinjaTrader Brokerage
Trading: ES CL
Posts: 15 since Apr 2020
Thanks Given: 216
Thanks Received: 29

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

Started this thread Reply With Quote
  #3 (permalink)
 planetkill 
New York City + NY/United States
 
Posts: 356 since Sep 2018
Thanks Given: 108
Thanks Received: 311


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.

Reply With Quote
  #4 (permalink)
 PK2020 
Phoenix AZ USA
 
Experience: Intermediate
Platform: NinjaTrader Think or Swim
Broker: NinjaTrader Brokerage
Trading: ES CL
Posts: 15 since Apr 2020
Thanks Given: 216
Thanks Received: 29

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
 
Started this thread Reply With Quote
  #5 (permalink)
 planetkill 
New York City + NY/United States
 
Posts: 356 since Sep 2018
Thanks Given: 108
Thanks Received: 311

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
Elite Membership required to download: MovingText.txt
Reply With Quote
  #6 (permalink)
 PK2020 
Phoenix AZ USA
 
Experience: Intermediate
Platform: NinjaTrader Think or Swim
Broker: NinjaTrader Brokerage
Trading: ES CL
Posts: 15 since Apr 2020
Thanks Given: 216
Thanks Received: 29

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

Started this thread Reply With Quote
  #7 (permalink)
 planetkill 
New York City + NY/United States
 
Posts: 356 since Sep 2018
Thanks Given: 108
Thanks Received: 311

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


Reply With Quote
  #8 (permalink)
 PK2020 
Phoenix AZ USA
 
Experience: Intermediate
Platform: NinjaTrader Think or Swim
Broker: NinjaTrader Brokerage
Trading: ES CL
Posts: 15 since Apr 2020
Thanks Given: 216
Thanks Received: 29

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

Started this thread Reply With Quote
  #9 (permalink)
 planetkill 
New York City + NY/United States
 
Posts: 356 since Sep 2018
Thanks Given: 108
Thanks Received: 311

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


Reply With Quote
  #10 (permalink)
 PK2020 
Phoenix AZ USA
 
Experience: Intermediate
Platform: NinjaTrader Think or Swim
Broker: NinjaTrader Brokerage
Trading: ES CL
Posts: 15 since Apr 2020
Thanks Given: 216
Thanks Received: 29


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

Started this thread Reply With Quote




Last Updated on July 10, 2020


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts