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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        117 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        166 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        85 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        130 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        88 views
        0 likes
        Last Post PaulMohn  
        Working...
        X