Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

orders placed according to color of bars

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

    orders placed according to color of bars

    Is it possible to have long/short orders to be placed according
    to the color of the price bars on a chart? Or does one have
    to code every single thing into a strategy as to how the price
    bars have been given their color?

    #2
    Hello,


    There is not function to place order per the color of the bar, sorry.
    DenNinjaTrader Customer Service

    Comment


      #3
      Thanks Ben. I am thinking about a strategy
      using Renko bars. Would I have to code the
      parameters of a Renko bar, that is, within the strategy?
      If you know of this being done I'd appreciate the
      link.
      Last edited by stephenszpak; 06-14-2009, 11:51 AM.

      Comment


        #4
        Hello,

        You can code this within the strategy or create an indicator that a plot that is accessable to your strategy.

        I recommend searching the forum with the search feature and/or looking in the file sharing section of the forum.
        DenNinjaTrader Customer Service

        Comment


          #5
          Ben

          Ok, just to make sure about this. If I format the data series
          to Renko and create a 4 tick chart, will a Ninja Strategy accept
          the closing prices created by the Renko as valid,that is, just as valid
          as if it were a standard bar chart? You said somewhere that Renko
          is not a supported capability of NT.
          (Sorry, I'm positive this is a simple question, but I just don't know.)


          I just found this on page 484 of the manual.


          {
          // Add a 5 minute Bars object - BarsInProgress index = 1
          Add(PeriodType.Minute, 5);
          // Add a 100 tick Bars object for the ES 12-06 contract - BarsInProgress
          index = 2
          Add("ES 12-06", PeriodType.Tick, 100);
          // Charts a 20 period simple moving average to the chart
          Add(SMA(20));
          }

          {
          Maybe something like this would be what we're talking about:
          // to get 100 Renko bars
          Add("ES 12-06", PeriodType.Renko, 100);
          // to make the Renko a 4 tick
          Add (PeriodType.Renko,4);
          // to add a 3 SMA to that
          Add(SMA(3));
          }
          Last edited by stephenszpak; 06-15-2009, 12:14 AM.

          Comment


            #6
            Stephen,

            It has been my experience that only chart types that are reconised by intellisense can be added in this manner. Renko is not one of them.

            RJay
            RJay
            NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

            Comment


              #7
              Unfortunately Renko bars are a 3rd party addon and we do not know if you can use them or not.

              You could try just going PeriodType.Renko and see if that works. Otherwise unfortunately you would need to contact the vendor to see if they know.
              Josh P.NinjaTrader Customer Service

              Comment


                #8
                Originally posted by rt6176 View Post
                Stephen,

                It has been my experience that only chart types that are reconised by intellisense can be added in this manner. Renko is not one of them.

                RJay
                So a strategy using Renko bars is impossible?!
                It doesn't seem to recognize Renko as you stated.

                Any suggestions at this point would be appreciated (by anyone).
                The Renko code was made by a NT person. I'll try to search who
                did it. Maybe they have an idea.


                Did the search. I think it was roonius. His program:

                'Renko bars' is what I downloaded (I think) a number of days ago.

                I found/opened his program using notepad. (I can post it if necessary.)
                Should it be installed within a strategy in its entirety to create a Renko
                strategy of some sort.



                Thanks,

                - Stephen
                Last edited by stephenszpak; 06-20-2009, 09:49 PM.

                Comment


                  #9
                  Stephen, is this a MultiTimeFrame / Instrument strategy you want to code up? If not you can simply run your existing strategy on the Renko bars type, there's no explicit coding to the Renko bars type needed then.

                  Comment


                    #10
                    Originally posted by NinjaTrader_Bertrand View Post
                    Stephen, is this a MultiTimeFrame / Instrument strategy you want to code up? If not you can simply run your existing strategy on the Renko bars type, there's no explicit coding to the Renko bars type needed then.
                    Ok...ah, it seems I was given conflicting info. At the moment it
                    would simply be Renko bars as a single time frame strategy.


                    Well to update, I just did this:

                    protected override void OnBarUpdate()
                    {

                    Add("ES 12-06", PeriodType.Renko, 100);

                    Add (PeriodType.Renko,4);

                    Add(SMA(3));
                    }

                    This is NOT what I want in the end, however the 'Strategy was successfully generated'.
                    There still is hope.
                    Last edited by stephenszpak; 06-21-2009, 12:39 AM.

                    Comment


                      #11
                      Stephen, for a single timeframe strategy running on Renko bars, just create your chart using the Renko bars type and run your strategy on it (for a quick demo, just use the SampleMACrossOver). You would not have to Add() the Renko bars for this to be working in a strategy using just one Renko chart.

                      Comment


                        #12
                        This is what I got. Nothing to see really, but it does work.
                        I checked the strategy's code. It doesn't specify much of
                        anything, so you were right, it doesn't matter.
                        Attached Files

                        Comment


                          #13
                          Originally posted by NinjaTrader_Bertrand View Post
                          Stephen, is this a MultiTimeFrame / Instrument strategy you want to code up? If not you can simply run your existing strategy on the Renko bars type, there's no explicit coding to the Renko bars type needed then.

                          If I wished to develop a strategy using a short term and long term Renko
                          bar tick, like 3 tick and 7 tick, would this be possible?

                          I looked at the Renko code that actually displays the basic Renko chart and I must
                          say it is extremely complex and long as far as I'm concerned. Would I have to use
                          this code (I can post if necessary) within a two tick (7 tick and 3 tick) strategy,
                          or is there a much simpler way?

                          Comment


                            #14
                            Stephen, as stated earlier this is a custom barstype and you would need to contact the original author to check if and how it workds in multi series environments, if you want to got with a supported one, you can check the Range bars out and Add() them via Add(PeriodType.Range, 4).

                            Comment


                              #15
                              Originally posted by NinjaTrader_Bertrand View Post
                              Stephen, as stated earlier this is a custom barstype and you would need to contact the original author to check if and how it workds in multi series environments, if you want to got with a supported one, you can check the Range bars out and Add() them via Add(PeriodType.Range, 4).
                              I believe roonius wrote the program that creates Renko bars within NT.
                              I contacted him. Maybe it wasn't him or maybe he is occupied. No response
                              as yet.

                              Maybe I can do something with the Add() stuff. Lost my train of thought
                              on this as the days have past. From what you said it seems possible though.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              639 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              366 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              107 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              569 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              572 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X