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 Super Bardock, 04-16-2025, 11:52 AM
        4 responses
        38 views
        0 likes
        Last Post Super Bardock  
        Started by dmengrosy, Yesterday, 11:11 PM
        0 responses
        3 views
        0 likes
        Last Post dmengrosy  
        Started by Cameronpanek1, Yesterday, 09:43 PM
        0 responses
        14 views
        0 likes
        Last Post Cameronpanek1  
        Started by roykesler16, Yesterday, 09:12 PM
        0 responses
        5 views
        0 likes
        Last Post roykesler16  
        Started by iantriestrading, 04-19-2025, 10:23 AM
        3 responses
        56 views
        0 likes
        Last Post iantriestrading  
        Working...
        X