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 Vikuno1, 11-28-2023, 11:42 PM
        15 responses
        357 views
        1 like
        Last Post PaulMohn  
        Started by PaulMohn, Yesterday, 02:06 AM
        3 responses
        12 views
        0 likes
        Last Post PaulMohn  
        Started by gertrudeabrams, Today, 12:33 AM
        0 responses
        3 views
        0 likes
        Last Post gertrudeabrams  
        Started by NJA_MC, 01-03-2021, 10:34 PM
        11 responses
        150 views
        0 likes
        Last Post wzgy0920  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        173 responses
        2,367 views
        0 likes
        Last Post jeronymite  
        Working...
        X