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 2,494 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread

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

  #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?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #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
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 683 since Jun 2009
Thanks Given: 758
Thanks Received: 787



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


© 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