Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Not able to build on Renko. Please help.

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

    Not able to build on Renko. Please help.

    I am running a 1 tick Renko chart. When I build a strategy based on buy on fast stochasticks or any other method nothing happens. I am simply executing a long if D crosses above 10 and exiting a long if D crosses below 90. Or buy if Close is > the Close 1 bar ago. Any ideas?
    Last edited by relogical; 06-19-2012, 08:49 AM.

    #2
    relogical,

    Welcome to the forum!

    Do you have an example of your strategy you could post here? Who is your data provider? What instrument are you using?

    I look forward to helping you resolve your issue.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      I am using instrument FAS with Ameritrade. Chart looks good and working. I am using the same strategy that I use with candlesticks but it does not work with Renko. Strategy is simple:

      Enter long if Stochastics Fast D crosses above 10 and exit long if D crosses below 90. Nothing is plotted on the chart and history performance shows 0.

      Comment


        #4
        relogical,

        TD Ameritrade doesn't offer historical tick data so this would explain your results. Renko charts are built from Tick data. You could try a supplementary data feed such as kinetick.

        Adam P.NinjaTrader Customer Service

        Comment


          #5
          Does IB offer that? Also, because I am not receiving tick data this will effect live testing as well?

          Comment


            #6
            relogical,

            IB also only offers minute historical or higher, so no historical tick data.

            You will be able to get real-time tick data in TD Ameritrade or IB, and you can record it by going to Tools > Options > Data > Save Chart Data as Historical.

            Here is a list of data providers and what they offer.

            Adam P.NinjaTrader Customer Service

            Comment


              #7
              So if I am able to get real time tick data now why then is my strategy not executing? I am a bit confused. Thank you

              Comment


                #8
                relogical,

                Real time data is streaming in, however you would be unable to request historical data from the servers at tick resolution.

                I believe we have a misunderstanding here. Are you running your strategy real-time or backtesting it? Do your renko charts build up after awhile or not at all?
                Adam P.NinjaTrader Customer Service

                Comment


                  #9
                  Yes real time. Chart is moving and bars are building but strategy does not execute anything on the chart even thought visually I can tell where the buy and sell should be..

                  Comment


                    #10
                    relogical,

                    I am happy to assist you.

                    Could you post your code? It would be helpful so I could identify the reason for this.

                    Also, please note you need to set "Enabled" to "True" in the strategy properties, or have it checked in the "Strategies" tab and colored green, for it to work.
                    Adam P.NinjaTrader Customer Service

                    Comment


                      #11
                      The strategy is enabled and green

                      Code:
                              /// <summary>
                              /// This method is used to configure the strategy and is called once before any strategy method is called.
                              /// </summary>
                              protected override void Initialize()
                              {
                      
                                  CalculateOnBarClose = true;
                              }
                      
                              /// <summary>
                              /// Called on each bar update event (incoming tick)
                              /// </summary>
                              protected override void OnBarUpdate()
                              {
                                  // Condition set 1
                                  if (CrossAbove(StochasticsFast(3, 14).D, 2, 1)
                                      && ToTime(Time[0]) > ToTime(8, 30, 0)
                                      && ToTime(Time[0]) < ToTime(14, 59, 0)
                                      && Bollinger(2, 14).Lower[0] > KeltnerChannel(1.5, 10).Lower[0]
                                      && Bollinger(2, 14).Upper[0] < KeltnerChannel(1.5, 10).Upper[0])
                                  {
                                      EnterLong(DefaultQuantity, "");
                                  }
                      
                                  // Condition set 2
                                  if (CrossBelow(StochasticsFast(3, 14).D, 98, 1)
                                      && ToTime(Time[0]) > ToTime(8, 30, 0)
                                      && ToTime(Time[0]) < ToTime(14, 59, 0))
                                  {
                                      ExitLong("", "");
                                  }
                      
                      
                      
                              }
                      
                              #region Properties
                              [Description("Profit Target")]
                              [GridCategory("Parameters")]
                              public int ProfitTarget
                              {
                                  get { return profitTarget; }
                                  set { profitTarget = Math.Max(1, value); }
                              }
                      
                              [Description("Stop Loss")]
                              [GridCategory("Parameters")]
                              public int StopLoss
                              {
                                  get { return stopLoss; }
                                  set { stopLoss = Math.Max(1, value); }
                              }
                              #endregion
                          }
                      }

                      Comment


                        #12
                        relogical,

                        I am not seeing anything wrong with that at first glance here. If you try running this on a minute chart does it work?

                        Are there any error messages in your log tab? You may have an index out of bounds.

                        You may also want to consider adding the following.

                        If ( CurrentBar < 10 ) return;
                        Adam P.NinjaTrader Customer Service

                        Comment


                          #13
                          Yes tried it on regualr candlestick and that works. Anything on Renko no go. When I look at Performance in Rela-Time it shows 74 trades but does not plot anything on the chart. But it has been showing this since for the last 2 hour but judging by the chart it should be showing a lot more trades.

                          Comment


                            #14
                            relogical,

                            Please right click your renko chart > go to "DataSeries" > Scroll down. What is "Plot Executions" set to?
                            Adam P.NinjaTrader Customer Service

                            Comment


                              #15
                              it's set to TextandMarker

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by wzgy0920, 04-20-2024, 06:09 PM
                              2 responses
                              26 views
                              0 likes
                              Last Post wzgy0920  
                              Started by wzgy0920, 02-22-2024, 01:11 AM
                              5 responses
                              32 views
                              0 likes
                              Last Post wzgy0920  
                              Started by wzgy0920, Yesterday, 09:53 PM
                              2 responses
                              49 views
                              0 likes
                              Last Post wzgy0920  
                              Started by Kensonprib, 04-28-2021, 10:11 AM
                              5 responses
                              191 views
                              0 likes
                              Last Post Hasadafa  
                              Started by GussJ, 03-04-2020, 03:11 PM
                              11 responses
                              3,230 views
                              0 likes
                              Last Post xiinteractive  
                              Working...
                              X