Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Strategy problem with renko bars

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

    #16
    Originally posted by ghost121 View Post
    Hello !

    I find an issue for the long and the short but not In the same strategy .


    With this :


    if( (twap.TWAPSeriesBullish[0] == true && twap.TWAPSeriesBullish[1] == false) )
    // || (twap.TWAPSeriesBearish[0] == true && twap.TWAPSeriesBearish[1] == false)



    I have not managed to do so yet, but I have not given up hope !

    Stef

    Not clear what you are looking for..... do you have any question?

    Comment


      #17
      Yes , I try to make only one strategy with tis indicator (Vwap) , but I cannot find a solution.


      I need only one trade where the color changes.
      There must be 1 trade only by color change.


      Stef

      Comment


        #18
        Originally posted by ghost121 View Post
        Yes , I try to make only one strategy with tis indicator (Vwap) , but I cannot find a solution.


        I need only one trade where the color changes.
        There must be 1 trade only by color change.


        Stef
        Without further information I cannot help you.

        Comment


          #19
          This vwap strategy works very well in ut minute, hours or volume...

          But the vwap strategy doesn't work very well with renko bars,

          - with renko, this Is a never ending strategy... It is still running after targets without new trade's signal.
          - the strategy takes more entry than i program...

          It will be great if the strategy :

          - could take profit or take loss. With no more entry than i expect.
          - then stop until new trade's signal


          I think the problem is here :

          Code:
          if( (vwap.vwapSeriesBullish[0] == true && vwap.vwapSeriesBullish[1] == false) || (vwap.vwapSeriesBearish[0] == true && vwap.vwapSeriesBearish[1] == false) )
          {
              bSuspendTrading = false;
          }
          When I deleted this one : (vwap.vwapSeriesBearish[0] == true && vwap.vwapSeriesBearish[1] == false)

          I can take a long trade without problem.


          Thank for your help !
          Attached Files
          Last edited by ghost121; 10-08-2015, 09:39 AM.

          Comment


            #20
            I have already explained that strategies usually do not work with Renko bars.

            Especially, you should never perform backtests with the strategy analyzer on Renko bars.

            Besides the code snippet shown below is not sufficient to analyze your problem.

            Comment


              #21
              I use this strategy (vwap)

              and this indicator .

              I know the issue with renko bars, its not a problem with my strategy, because I use another indicator and time filter to take the trade.
              Attached Files

              Comment


                #22
                Originally posted by ghost121 View Post
                I use this strategy (vwap)

                and this indicator .

                I know the issue with renko bars, its not a problem with my strategy, because I use another indicator and time filter to take the trade.
                I do not understand what bSuspendTrading is doing. When the session starts, it is set to false. With the first trend change of the VWAP filter it also set to false. Then it remains false forever. So it is not needed? You would get quite a few long and short entries.

                However, your main problem is related to the use of Renko bars, because you are trying to do what cannot be done. The open price of a Renko candle, which is used in backtest has nothing to do with the real market price when a Renko bar is plotted. Therefore mechanically you will get false results when running a backtest.

                You try to do something that cannot be done. There are numerous threads explaining why you CANNOT BACKTEST RENKO BARS. Simply read them. I am not going to explain it again.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by devatechnologies, 04-14-2024, 02:58 PM
                3 responses
                19 views
                0 likes
                Last Post NinjaTrader_BrandonH  
                Started by tkaboris, Today, 08:01 AM
                0 responses
                2 views
                0 likes
                Last Post tkaboris  
                Started by BarzTrading, Today, 07:25 AM
                1 response
                11 views
                1 like
                Last Post NinjaTrader_Clayton  
                Started by EB Worx, 04-04-2023, 02:34 AM
                7 responses
                161 views
                0 likes
                Last Post VFI26
                by VFI26
                 
                Started by Mizzouman1, Today, 07:35 AM
                1 response
                9 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Working...
                X