Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to activate a automated trading strategy.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to activate a automated trading strategy.

    I have built an automated strategy and it does not work. Request some assistance.


    {
    Add(RSI(14, 3));
    Add(RSI(14, 3));
    CalculateOnBarClose = true;
    }
    ///<summary>
    /// Called on each bar update event (incoming tick)
    ///</summary>
    protectedoverridevoid OnBarUpdate()
    {
    // Condition set 1
    if (CrossAbove(RSI(14, 3).Avg, 50, 1))
    {
    Alert("MyAlert0", Priority.High, "", "", (int) (Variable1), Color.Fuchsia, Color.Lime);
    }
    // Condition set 2
    if (CrossBelow(RSI(14, 3).Avg, 50, 1))
    {
    Alert("MyAlert2", Priority.High, "", "", 0, Color.White, Color.Black);
    }
    }
    #region Properties
    [Description("")]
    [Category("Parameters")]
    publicint MyInput0
    {
    get { return myInput0; }
    set { myInput0 = Math.Max(1, value); }
    }
    #endregion
    }
    }
    #region Wizard settings, neither change nor remove

    #2
    Alerts will only trigger in real time and it will show up in the Alerts window of NinjaTrader.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Automated trader active only once

      Thanks for your reply. I have checked the alert window and found it to work for only once. When conition is met again (RSI 50 crossover) it does not alert again. Pls help.

      Cheers.

      Comment


        #4
        Please check your 'rearm' settings of the Alert - http://www.ninjatrader-support.com/H...eV6/Alert.html

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        78 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        40 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        63 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X