NexusFi: Find Your Edge


Home Menu

 





Looking for typical way to create a 'DataBox' on Price Panel


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one forrestang with 8 posts (1 thanks)
    2. looks_two Fat Tails with 3 posts (5 thanks)
    3. looks_3 Big Mike with 2 posts (1 thanks)
    4. looks_4 lolu with 1 posts (0 thanks)
      Best Posters
    1. looks_one Fat Tails with 1.7 thanks per post
    2. looks_two cory with 1 thanks per post
    3. looks_3 Big Mike with 0.5 thanks per post
    4. looks_4 forrestang with 0.1 thanks per post
    1. trending_up 6,886 views
    2. thumb_up 8 thanks given
    3. group 4 followers
    1. forum 15 posts
    2. attach_file 4 attachments




 
Search this Thread

Looking for typical way to create a 'DataBox' on Price Panel

  #11 (permalink)
 
lolu's Avatar
 lolu 
Lagos, Nigeria
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader, SierraChart
Trading: Euro Currency & Oil
Frequency: Daily
Duration: Hours
Posts: 2,552 since Jun 2009
Thanks Given: 1,049
Thanks Received: 1,678


forrestang View Post
And about that crash....

You don't seem to connect your machines to a backup power supply (UPS) .... your machines don't seem to have power protection; Right ?

In my part of the world, I have as my power protection equipment -----> Stabilizer/Surge Protector and Inverter/Charger System (a more efficient kinda UPS); and I don't use my machines if these protection equipment are defective.

Lolu

Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
MC PL editor upgrade
MultiCharts
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
 
  #12 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103


forrestang View Post
I'm creating an indicator, that so far just needs to display various information on the price panel.

If I had maybe 3-4 variables I would like to output to the screen, what would be a good way to do this? I would like to use a function that would somehow keep it together, so that when resizing bars or scrunching the chart together, all of the values do not get too close to each other, or loose their spacing.

If anyone knows of an indicator that has done this (I can't think of any), that might get me started as well.

Might look something like this pic.

Forrest


Did not reed this meesage before. When you want to display a data box it gets interesting, when you define what you want to display.

Static Display: Only the information of the last bars of the chart is used to fill the data box.

Dynamic Display: The information displayed is retrieved from the last par painted on your chart. This means that when you scroll the chart back hoizontally, the information displayed changes in line with the data displayed.

To see the difference, please have a look at the following static and dynamic indicators:


Examples

Static: NinjaTrader default Regression Channel indicator. It calculates the values from the last bar processed by OnBarUpDate().
Dynamic: Regression Channel V2 (download section). It calculates the regression channel from the last values displayed on the chart.

Static: Percentage indicator on RelativeVolume V14 indicator.
Dynamic: VolatilityBands V37. The values displayed in the upper left corner are in line with the sessions and bars displayed on the chart. The indicator has a custom plot, all calculations performed are stored in DataSeries objects and then retrieved by accessing the values for the bars shown on the chart.

Reply With Quote
Thanked by:
  #13 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


@Fat Tails

If I wanted to create a Data Box, that will always remain in a fixed position on the chart, AND have control over the color/font of text via some condition I have, is this possible?

-----EDIT----
Looks like it needs custom databox and override of plot function. I will have to figure this out.

Started this thread Reply With Quote
  #14 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090

text box tip

Reply With Quote
Thanked by:
  #15 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


cory View Post
text box tip

Thanks Cory.

I've got the text box by itself working. I've used that before.

Two problems with that though:
1.) I have a text box with several variables in it. And I would like to be able to control the colors of each variable individually.

2.) If I create several text boxes, it will probably not maintain that nice spacing. So that if a user decides to rescale his chart, or blow it up fullscreen, the variables will overlap, or seperate, looking kinda sloppy.

I edited my post above, in that I will probably just have to learn how to create a custom data box and over ride the plot function (thats what someone suggested on the NT forum).

Started this thread Reply With Quote
  #16 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103


forrestang View Post
@ Fat Tails

If I wanted to create a Data Box, that will always remain in a fixed position on the chart, AND have control over the color/font of text via some condition I have, is this possible?

-----EDIT----
Looks like it needs custom databox and override of plot function. I will have to figure this out.

Correct. THe easiest way is to code an indicator with a custom plot. An example for such an indicator is the SessioVolatilityBands. It plots a small data box in the upper left corner of the chart. The data box can also be displayed in the upper right corner of the chart. Of course it is possible to plot a stand-alone data box with a different text font and different colors somewhere else on the chart.

Reply With Quote
Thanked by:




Last Updated on September 7, 2011


© 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