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

Ninza Renko Strategy

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

    Ninza Renko Strategy

    I want to create strategy with set TP and SL using Ninza Renko bars.

    I dont know how to begin because it involves different bars, then what is provided in NT. Can someone help me to start or point me to how i can reference third party bar type?


    renko pdf reference - https://docs.google.com/viewerng/vie...aderManual.pdf
    renko itself https://ninza.co/product/ninzarenko


    Thank you







    #2
    Hi tkaboris, thanks for posting.

    It's the same way you reference the default bar types. The Open, High, Low, and Close arrays are still available with custom bar types. Try printing out the data from each bar e.g.

    Print(Open[0]);
    Print(High[0]);
    Print(Low[0]);
    Print(Close[0]);

    Kind regards,
    -ChrisL
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      thank you, i meant how to start referencing the third party bar type?
      for example i am looking at copy of regular renko strategy it has these lines.

      if(BarsPeriod.BarsPeriodType != BarsPeriodType.Renko)
      {
      Draw.TextFixed(this, "NinjaScriptInfo", "The RenkoStrategy must be ran on a Renko chart.", TextPosition.BottomRight);
      return;
      }

      How do i switch to ninza renko chart type instead? Below is a reference from ninza renko team

      protected override void OnStateChange() {
      .....
      if (State == State.Configure)
      AddDataSeries(new BarsPeriod() {
      BarsPeriodType = (BarsPeriodType)12345, // ninZaRenko’s ID
      Value = 8, // Brick Size
      Value2 = 4 // Trend Threshold
      });

      Comment


        #4
        Hi tkaboris, thanks for your reply.

        You should be able to do this to detect the bars:

        if(BarsPeriod.BarsPeriodType != ((BarsPeriodType)12345))

        Please let me know if this does not resolve your question.
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by TheMarlin801, 10-13-2020, 01:40 AM
        20 responses
        3,914 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by timmbbo, 07-05-2023, 10:21 PM
        3 responses
        150 views
        0 likes
        Last Post grayfrog  
        Started by Lumbeezl, 01-11-2022, 06:50 PM
        30 responses
        805 views
        1 like
        Last Post grayfrog  
        Started by xiinteractive, 04-09-2024, 08:08 AM
        3 responses
        11 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by Johnny Santiago, 10-11-2019, 09:21 AM
        95 responses
        6,194 views
        0 likes
        Last Post xiinteractive  
        Working...
        X