NexusFi: Find Your Edge


Home Menu

 





Need help to create an up/down arrow in panel 1(price/candle area)


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
 
alex123's Avatar
 alex123 
Toronto
 
Experience: Intermediate
Platform: ninjatrader
Posts: 266 since Aug 2009
Thanks Given: 165
Thanks Received: 133

Hi, guys:

Is it possible that some one help me or give me an idea, how to create an up/down arrow or dot when all the my indicator's criteria combined together? For example:

1. _ECO2new_paintbars_sharkypkd_2 zero1>5
2. Obvdiver>0
3. _Zeller_sharkfin_paintbars (close, 34) is green

when all above criteria combines together, the ninjatrader show me an up green arrow below the price candle bar?

I am not a programmer, really need to help, cause I can not catch the breakout using my eyes, sometimes I still need my indicators to confirm.

if any one can help me out, that will be great.


Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Topstep Acquires The Futures Desk -- Prop Firm Consolida …
Funded Trading Evaluation Firms
Iran Update May 8: Still Reviewing MOU, Demands Reparati …
Traders Hideout
The May 31 Binary: 60% Trump Declares Iran Ops Over, Onl …
Prediction Markets & Event Contracts
February NFP Preview -- Why This Mornings Jobs Number Co …
Traders Hideout
Kharg Island at 6%, Regime Fall at 1.5% -- The Black Swa …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
23 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
7 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
  #2 (permalink)
 
Mauro_60's Avatar
 Mauro_60 
Torino
 
Experience: Beginner
Platform: NinjaTrader
Broker: mirus
Trading: currency futures
Posts: 47 since Aug 2009
Thanks Given: 25
Thanks Received: 36

Hello, I too am not a programmer but I think I can give an idea for the construction of your indicator

 
Code
#region Variables
private Color             barColorUp_ST            = Color.Blue;
private Color             barColorDown_ST        = Color.Red;

private BoolSeries       condizione1;
    #endregion

 protected override void Initialize()
        {
condizione1 = new BoolSeries(this);
}

 protected override void OnBarUpdate()
        {
           
    
                        
            
             if(CurrentBar > 1)
            {    follow code indicator......

               ..............
               ..............

 condizione1.Set(_ECO2new_paintbars_sharkypkd_2 zero1[0] >5 && Obvdiver[0]>0 && ect ect for all condition);

//*******************************************************************

if(condizione1[0])
                    
                    {
                    
                       DrawArrowDown("ShortS"+CurrentBar.ToString(), 0, High[0] + Mult*TickSize, barColorDown_ST);
                     
                                                                    
                }  else if(!condizione1[0])    
                    {
                   
                     RemoveDrawObject("ShortS" + CurrentBar);
                   
                }                        
}
repeat the same process for the long condition
}

  #region Properties

[XmlIgnore()]
        [Description("Color of up bars.")]
        [Category("Visual")]
        [Gui.Design.DisplayNameAttribute("01. Up color_ST")]
        public Color BarColorUp_ST
        {
            get { return barColorUp_ST; }
            set { barColorUp_ST = value; }
        }

        /// <summary>
        /// </summary>
        [Browsable(false)]
        public string barColorUp_STSerialize
        {
            get { return NinjaTrader.Gui.Design.SerializableColor.ToString(barColorUp_ST); }
            set { barColorUp_ST = NinjaTrader.Gui.Design.SerializableColor.FromString(value); }
        }
        
        /// <summary>
        /// </summary>
        [XmlIgnore()]
        [Description("Color of down bars.")]
        [Category("Visual")]
        [Gui.Design.DisplayNameAttribute("02. Down color_ST")]
        public Color BarColorDown_ST
        {
            get { return barColorDown_ST; }
            set { barColorDown_ST = value; }
        }
        
        /// <summary>
        /// </summary>
        [Browsable(false)]
        public string barColorDown_STSerialize
        {
            get { return NinjaTrader.Gui.Design.SerializableColor.ToString(barColorDown_ST); }
            set { barColorDown_ST = NinjaTrader.Gui.Design.SerializableColor.FromString(value); }
        }



Obviously, this code is not complete, the indicators and the actual conditions should be included. I also ask for help when I can,but I try there the same, at times I succeed a lot of others no.

Regards


Reply With Quote
Thanked by:
  #3 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 Vendor: www.innovative-trading-solutions-online.com 
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: ES
Posts: 687 since Jun 2009
Thanks Given: 765
Thanks Received: 789



alex123 View Post
Hi, guys:

Is it possible that some one help me or give me an idea, how to create an up/down arrow or dot when all the my indicator's criteria combined together? For example:

1. _ECO2new_paintbars_sharkypkd_2 zero1>5
2. Obvdiver>0
3. _Zeller_sharkfin_paintbars (close, 34) is green

when all above criteria combines together, the ninjatrader show me an up green arrow below the price candle bar?

I am not a programmer, really need to help, cause I can not catch the breakout using my eyes, sometimes I still need my indicators to confirm.

if any one can help me out, that will be great.

alex123,

You need to create an indicator that calls the other three indicator outputs as inputs and simply compare them to determine if an arrow should be displayed.

I would build a strategy doing the comparison first. Then look at the constructed code to create the new indicator.

RJay


Reply With Quote
Thanked by:
  #4 (permalink)
 
alex123's Avatar
 alex123 
Toronto
 
Experience: Intermediate
Platform: ninjatrader
Posts: 266 since Aug 2009
Thanks Given: 165
Thanks Received: 133

Thank you very much Mauro 60 and Rjay, I will try your idea, see if it works.


Visit my NexusFi Trade Journal Started this thread Reply With Quote




Last Updated on September 28, 2009


© 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