NexusFi: Find Your Edge


Home Menu

 





leave empty space on a plot on the left of screen


Discussion in NinjaTrader

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




 
Search this Thread

leave empty space on a plot on the left of screen

  #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?
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
Trade idea based off three indicators.
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
REcommedations for programming help
Sierra Chart
Increase in trading performance by 75%
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #3 (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


Maybe you can use parts of the SessionPivots indicator here:



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


© 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