NexusFi: Find Your Edge


Home Menu

 





leave empty space on a plot on the left of screen


Discussion in NinjaTrader

Updated
    1. trending_up 3,419 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 SARdynamite 
Belgium
 
Experience: Advanced
Platform: SaxoTrader
Broker: SaxoBank
Trading: ESTX
Posts: 289 since Dec 2009
Thanks Given: 243
Thanks Received: 110

Hello,

I'm building a sort of pivot indicator with plots as lines.

I'd like to leave an open space on the left of my screen on the left of the levels plotted as lines. It should be left empty wherever you browse through historical data.

I tried this code (interesting part in bold). But can't make it work. Can you help me ? Thank you

 
Code
if (CurrentBar<1) return;
            AAA.Set(1);
 for (int i=CurrentBar-ChartControl.FirstBarPainted;i>CurrentBar-ChartControl.FirstBarPainted-7;i--) PlotColors[0][i] = Color.Empty; 
        }
        #region Properties
        [Browsable(false)]
        [XmlIgnore()]
        public DataSeries AAA
        {
            get { return Values[0]; }
        }

I need that because I have labels on the left of my levels and I don't want to offset them vertically because when you zoom out labels + levels become a mess.

I just need a trick to solve this problem, whatever it might be.

Thanks for your help


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Irans Answer Due Today: Peace Surges to 33.5%, Invasion …
Prediction Markets & Event Contracts
Hormuz Surges From 14% to 26.5% Intraday as Irans Answer …
Prediction Markets & Event Contracts
The June 15 Resolution Trap: Irans Agreed Text Still Pri …
Prediction Markets & Event Contracts
Penalties in Budapest, Peace Deadline in Tehran: Arsenal …
Prediction Markets & Event Contracts
Peace Deal Forward Curve: May 22%, June 51%, December 81 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 thanks
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,117


Maybe you can use parts of the SessionPivots indicator here:

https://nexusfi.com/free_downloads/ninjatrader-7/indicators/371-download.html?view

It has a modified plot override method, which allows to select the width of the pivot lines and plot labels to the right or to the left of those lines.


Reply With Quote
Thanked by:
  #4 (permalink)
 SARdynamite 
Belgium
 
Experience: Advanced
Platform: SaxoTrader
Broker: SaxoBank
Trading: ESTX
Posts: 289 since Dec 2009
Thanks Given: 243
Thanks Received: 110

Thank you mate ! I will sure have a look at your indicator.
Cheers


Started this thread Reply With Quote




Last Updated on July 12, 2010


© 2026 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 - Downloads - Top
no new posts