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 DJ888, Yesterday, 10:57 PM
        0 responses
        6 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        158 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Yesterday, 09:29 PM
        0 responses
        7 views
        0 likes
        Last Post Belfortbucks  
        Started by zstheorist, Yesterday, 07:52 PM
        0 responses
        7 views
        0 likes
        Last Post zstheorist  
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        151 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Working...
        X