Announcement

Collapse
No announcement yet.

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

    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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        20 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        119 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        63 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        41 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        45 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X