Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

this strategy works incorrect on EdsRenko

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

    this strategy works incorrect on EdsRenko

    this strategy works incorrect on EdsRenko.... Help !

    #region Variables
    // Wizard generated variables
    private int profit = 4; // Default setting for Profit
    private int stop = 4; // Default setting for Stop
    private double Variable0 = 15.0;
    // User defined variables (add any user defined variables below)
    #endregion

    /// <summary>
    /// This method is used to configure the strategy and is called once before any strategy method is called.
    /// </summary>
    protected override void Initialize()
    {
    SetProfitTarget("", CalculationMode.Ticks, Profit);
    SetStopLoss("", CalculationMode.Ticks, Stop, false);

    CalculateOnBarClose = true;
    }

    protected override void OnBarUpdate()
    {
    if (CrossAbove(Stochastics(7, 14, 3).K, Stochastics(7, 14, 3).D, 1)
    && Stochastics(7, 14, 3).D[0] <= Variable0
    && Stochastics(7, 14, 3).K[0] <= Variable0
    && Historical == false)
    {
    EnterLongLimit(DefaultQuantity, GetCurrentBid(), "");
    }

    if (CrossBelow(Stochastics(7, 14, 3).K, Stochastics(7, 14, 3).D, 1)
    && Stochastics(7, 14, 3).D[0] >= 85.0
    && Stochastics(7, 14, 3).K[0] >= 85.0
    && Historical == false)
    {
    EnterShortLimit(DefaultQuantity, GetCurrentAsk(), "");
    }
    }

    #2
    What's EdsRenko?
    RayNinjaTrader Customer Service

    Comment


      #4
      Accumulator, EdsRenko is a 3rd party bar type. Unfortunately we are unable to support 3rd party NinjaScripts. If there is a similar situation in which your strategy doesn't work with a built-in bar type, please let us know. Thank you for understanding.
      AustinNinjaTrader Customer Service

      Comment


        #5
        after reboot it`s ok now

        thanks

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CortexZenUSA, Today, 12:53 AM
        0 responses
        1 view
        0 likes
        Last Post CortexZenUSA  
        Started by CortexZenUSA, Today, 12:46 AM
        0 responses
        1 view
        0 likes
        Last Post CortexZenUSA  
        Started by usazencortex, Today, 12:43 AM
        0 responses
        5 views
        0 likes
        Last Post usazencortex  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        168 responses
        2,266 views
        0 likes
        Last Post sidlercom80  
        Started by Barry Milan, Yesterday, 10:35 PM
        3 responses
        13 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X