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 Haiasi, 04-25-2024, 06:53 PM
        2 responses
        17 views
        0 likes
        Last Post Massinisa  
        Started by Creamers, Today, 05:32 AM
        0 responses
        5 views
        0 likes
        Last Post Creamers  
        Started by Segwin, 05-07-2018, 02:15 PM
        12 responses
        1,786 views
        0 likes
        Last Post Leafcutter  
        Started by poplagelu, Today, 05:00 AM
        0 responses
        3 views
        0 likes
        Last Post poplagelu  
        Started by fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,407 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Working...
        X