NexusFi: Find Your Edge


Home Menu

 





IntSeries and Data Box


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one vantojo with 6 posts (0 thanks)
    2. looks_two Tasker_182 with 6 posts (1 thanks)
    3. looks_3 Fat Tails with 4 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 4,258 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 16 posts
    2. attach_file 4 attachments




 
Search this Thread

IntSeries and Data Box

  #11 (permalink)
 vantojo 
Vilcabamba, Ecuador
 
Experience: Intermediate
Platform: Ninja
Trading: NQ, UB
Posts: 204 since Jul 2012

Seems I didn't state the original problem correctly...it has been a couple of weeks since I tested this

the problem is that a plot against the Y axis, hidden or not, needs to be in terms of the Y axis...

if you have two plots in the same panel they need to use the same unit of measure on the Y axis

================

more thinking....

perhaps there will be a way to do this with indicator options such as...Scale Justification....

I guess I need to look deeper, if I find a solution I'll post it here

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Futures True Range Report
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
NexusFi Journal Challenge - April 2024
Feedback and Announcements
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
38 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
GFIs1 1 DAX trade per day journal
19 thanks
The Program
18 thanks
  #12 (permalink)
 
Tasker_182's Avatar
 Tasker_182 
Cedar Rapids, iowa
Legendary Market Wizard
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Ninjatrader - Continuum
Posts: 716 since Aug 2009
Thanks Given: 476
Thanks Received: 1,401


vantojo View Post
Seems I didn't state the original problem correctly...it has been a couple of weeks since I tested this

the problem is that a plot against the Y axis, hidden or not, needs to be in terms of the Y axis...

if you have two plots in the same panel they need to use the same unit of measure on the Y axis

================

more thinking....

perhaps there will be a way to do this with indicator options such as...Scale Justification....

I guess I need to look deeper, if I find a solution I'll post it here

Sorry, I guess I still can't fathom what the problem is. If scaling is an issue then use the left scale.

Be yourself; everyone else is already taken. Oscar Wilde
Reply With Quote
  #13 (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,102



Tasker_182 View Post
So just make the plots transparent. I just tested that with an EMA plotted on a chart. I turned it transparent and I could still see the values in the databox.

@Tasker_182: The problem is that you cannot see the values in the databox, once you have set the EMA to transparent. Could you please show me the exact settings that you used?

Reply With Quote
  #14 (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,102


vantojo View Post
the 4 integer values are the slopes of 4 moving averages

I have the code to calculate the slope and it is working well

however having these values plot on panel 1 makes no sense at all and would mess up the chart because the slopes have nothing to do with price (Y axis)

what I want to do is know the slope at different points (bars) by having them in the Data Box

I don't want to see the slopes all the time, just for research and studies....


@vantojo: A slope cannot be shown as an integer value. By nature it is a double value.

What about adding a data table that shows the slopes of 4 moving averages for the last bar on the chart?

While you trade you are not interested in the slopes of any moving average 3 hours ago, but you would be mostly interested in the slopes for the current bar.

If you study a historical chart, you can move the bar for which you wish to see the moving average slopes to the right edge of the chart. A data box could be toggled on and off.

Below is a sample chart with such a box.


Reply With Quote
  #15 (permalink)
 
Tasker_182's Avatar
 Tasker_182 
Cedar Rapids, iowa
Legendary Market Wizard
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Ninjatrader - Continuum
Posts: 716 since Aug 2009
Thanks Given: 476
Thanks Received: 1,401


Fat Tails View Post
@Tasker_182: The problem is that you cannot see the values in the databox, once you have set the EMA to transparent. Could you please show me the exact settings that you used?

I actually used your visualEMA (on a Unirenko chart) and set both rising/falling PlotStyles to transparent.


Be yourself; everyone else is already taken. Oscar Wilde
Reply With Quote
Thanked by:
  #16 (permalink)
 
Tasker_182's Avatar
 Tasker_182 
Cedar Rapids, iowa
Legendary Market Wizard
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Ninjatrader - Continuum
Posts: 716 since Aug 2009
Thanks Given: 476
Thanks Received: 1,401

@vantojo

Perhaps this indicator would be of some use to you.


Be yourself; everyone else is already taken. Oscar Wilde
Reply With Quote
  #17 (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,102


Tasker_182 View Post
I actually used your visualEMA (on a Unirenko chart) and set both rising/falling PlotStyles to transparent.

Then you contributed to solving the original problem as exposed by @vantojo!

Interesting, as I did not know it before.

This is the solution to produce an invisible plot (or 4 of them) which shows up in the Data Box:


-> create a new indicator with a plot
-> add the line "AutoScale = false;" in the Initilialize() section
-> the plot may use any color, for example "Color.Orange", but you may not use Color.Transparent
-> add the indicator formula in OnBarUpdate()
-> add the following two lines in the end of OnBarUpdate()

 
Code
if(CurrentBar > BarsRequired)
      PlotColors[0][0];

NinjaTrader is preset to use BarsRequired = 20, which means that the indicator will not be plotted for the first 20 bars. However, the fact that the plot color is different from Color.Transparent for the first 20 bars is sufficient to make the indicator appear in the data box. Then you may set all further plot values to Color.Transparent for the remainder of the chart.

The result is an invisible plot which appears in the data box. Problem solved.

Attached is a sample indicator with a plot that remains invisible but will show in the data box.


Attached Files
Elite Membership required to download: MagicEMA.zip
Reply With Quote




Last Updated on April 15, 2014


© 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