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
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by mrgreentrading, Today, 08:29 PM
        0 responses
        2 views
        0 likes
        Last Post mrgreentrading  
        Started by rbendson, Today, 08:18 PM
        0 responses
        2 views
        0 likes
        Last Post rbendson  
        Started by TheTechnician86, Yesterday, 05:47 PM
        2 responses
        18 views
        0 likes
        Last Post TheTechnician86  
        Started by bigc0220, 09-18-2018, 09:16 AM
        8 responses
        2,615 views
        0 likes
        Last Post bsteeze
        by bsteeze
         
        Started by bortz, 11-06-2023, 08:04 AM
        54 responses
        2,114 views
        0 likes
        Last Post rene69851  
        Working...
        X