NexusFi: Find Your Edge


Home Menu

 





Renko bars not working in NT7


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one aslan with 16 posts (40 thanks)
    2. looks_two zikonc with 14 posts (1 thanks)
    3. looks_3 RJay with 11 posts (7 thanks)
    4. looks_4 Todd with 8 posts (0 thanks)
      Best Posters
    1. looks_one roonius with 3.3 thanks per post
    2. looks_two gregid with 3.1 thanks per post
    3. looks_3 aslan with 2.5 thanks per post
    4. looks_4 RJay with 0.6 thanks per post
    1. trending_up 45,492 views
    2. thumb_up 89 thanks given
    3. group 21 followers
    1. forum 109 posts
    2. attach_file 24 attachments




 
Search this Thread

Renko bars not working in NT7

  #41 (permalink)
 zikonc 
san ramon
 
Experience: Beginner
Platform: ninja
Broker: zen
Trading: es, 6e
Posts: 136 since Oct 2009
Thanks Given: 98
Thanks Received: 76

Thanks Mike .... I can relate to SBSrenko bars more than Renko/WickedRenko ...... I like to see continuity in the price movement and Renko always confused me when it forms a red bar after green bar with red(open) at green(open) instead at green(close)

when you say it is known issue, are you referring to NT7 or the bar file ...... it must be NT7 since I do not remember having this issue with NT6.5

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
How to apply profiles
Traders Hideout
ZombieSqueeze
Platforms and Indicators
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Tao te Trade: way of the WLD
24 thanks
Just another trading journal: PA, Wyckoff & Trends
23 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #42 (permalink)
 Zoethecus 
United States of America
 
Experience: Advanced
Platform: NT
Posts: 1,145 since Aug 2009

Who among you believes that ANY bar type makes the difference between consistent profits or losses?

Reply With Quote
  #43 (permalink)
 zikonc 
san ramon
 
Experience: Beginner
Platform: ninja
Broker: zen
Trading: es, 6e
Posts: 136 since Oct 2009
Thanks Given: 98
Thanks Received: 76


I have more luck with price-based bars than say time or volume based bars

Reply With Quote
  #44 (permalink)
 Zoethecus 
United States of America
 
Experience: Advanced
Platform: NT
Posts: 1,145 since Aug 2009


zikonc View Post
I have more luck with price-based bars than say time or volume based bars

Luck is the operative word.

Good _uck!

Reply With Quote
  #45 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 683 since Jun 2009
Thanks Given: 758
Thanks Received: 787


zikonc View Post
I was wondering if anyone else is experiencing a problem with SBSrenko NT7 bar accuracy ...... basically, around the session start or finish I get a random bar with either wrong body size or tail size ....... I am reffering to the SBSrenko bars posted in the message #12 in this thread ..... if anyone is willing to share a solution to this problem I'd greatly appreciate it ..... thanks

zikonc,

Apply the fix in post 35 to any chart type that you don't want to see the new bar at midnight issue.

I have altered the code in all custom chart types that I use.

RJay

Reply With Quote
Thanked by:
  #46 (permalink)
 zikonc 
san ramon
 
Experience: Beginner
Platform: ninja
Broker: zen
Trading: es, 6e
Posts: 136 since Oct 2009
Thanks Given: 98
Thanks Received: 76


RJay View Post
zikonc,

Apply the fix in post 35 to any chart type that you don't want to see the new bar at midnight issue.

I have altered the code in all custom chart types that I use.

RJay

Thanks RJay,

I am using the file posted by gregid at the beginning of this thread ...... his file only has "if (bars.Count < 2)" statement so I had nothing to modify ....... I did make a modification per #35 on range charts .... Mike mentioned that SBSRenko (I guess in NT7) has been known to have this issue so I am stuck with what has been done so far by others until new versions comes along ......

Reply With Quote
  #47 (permalink)
 
roonius's Avatar
 roonius   is a Vendor
 
Posts: 131 since Jun 2009
Thanks Given: 20
Thanks Received: 295


zikonc View Post
Thanks RJay,

I am using the file posted by gregid at the beginning of this thread ...... his file only has "if (bars.Count < 2)" statement so I had nothing to modify ....... I did make a modification per #35 on range charts .... Mike mentioned that SBSRenko (I guess in NT7) has been known to have this issue so I am stuck with what has been done so far by others until new versions comes along ......

Attached you will find my own conversion of SbSRenko to NT7. (I will not bother with MedianRenko anymore)
There is a numeric value which can be set at (1==reset at session break) (any other value = not to reset).

NT7 introduced cashing of bars for performance improvements, so keep in mind that "not reseting" at session break can cause unexpected results. Feel free to post any issues.

P.S. Fix in post #35 is very sensitive and I personally would not recommend using it on other bar types. It might have other underlying issues. As always - use at your own risk

Attached Files
Elite Membership required to download: SbSRenko NT7.zip
Reply With Quote
  #48 (permalink)
 zikonc 
san ramon
 
Experience: Beginner
Platform: ninja
Broker: zen
Trading: es, 6e
Posts: 136 since Oct 2009
Thanks Given: 98
Thanks Received: 76

Thanks roonius .... I think somthing has to be messed up on my end since I am still getting the same type of errors ...... I tried your SbSrenko conversion with and without the fix from post #35, with different session templates, with reload of historical data (I deleted the records from Historical Data Manager and forced the reload) .... and I think that's it ...... I am using this little script to check for any discrepancies ...... hmmm, maybe NT7 support still has few outstanding things to work on? ......

public class bartest : Indicator
{
/* Variables */

private System.Drawing.Font textFont2;
private int barRange = 0;
private int margin = 0;

/* END Variables */

/// <summary>
/// This method is used to configure the indicator and is called once before any bar data is loaded.
/// </summary>
protected override void Initialize()
{
CalculateOnBarClose = false;
Overlay = true;
PriceTypeSupported = false;

textFont2 = new Font("Arial Narrow", 8); // FONT


}

/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
if ( CurrentBar < 4 ) return;

barRange = (int) Math.Abs(Math.Round((Open[0] - Close[0]) / Bars.Instrument.MasterInstrument.TickSize));
margin = (Bars.Period.Value);

DrawText
(
"tick#"+CurrentBar, AutoScale,
barRange.ToString(), 0, High[0]+3*TickSize, 0, Color.Black
, textFont2, StringAlignment.Center, Color.Transparent, Color.Transparent, 0
);


if (barRange != margin && barRange != 2*margin)
BackColorAll = Color.LightBlue;

else
BackColorAll = Color.Empty;
}

#region Properties


#endregion
}

Reply With Quote
  #49 (permalink)
 
roonius's Avatar
 roonius   is a Vendor
 
Posts: 131 since Jun 2009
Thanks Given: 20
Thanks Received: 295


zikonc View Post
Thanks roonius .... I think somthing has to be messed up on my end since I am still getting the same type of errors ...... I tried your SbSrenko conversion with and without the fix from post #35, with different session templates, with reload of historical data (I deleted the records from Historical Data Manager and forced the reload) .... and I think that's it ...... I am using this little script to check for any discrepancies ...... hmmm, maybe NT7 support still has few outstanding things to work on? ......

public class bartest : Indicator
{
/* Variables */

private System.Drawing.Font textFont2;
private int barRange = 0;
private int margin = 0;

/* END Variables */

/// <summary>
/// This method is used to configure the indicator and is called once before any bar data is loaded.
/// </summary>
protected override void Initialize()
{
CalculateOnBarClose = false;
Overlay = true;
PriceTypeSupported = false;

textFont2 = new Font("Arial Narrow", 8); // FONT


}

/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
if ( CurrentBar < 4 ) return;

barRange = (int) Math.Abs(Math.Round((Open[0] - Close[0]) / Bars.Instrument.MasterInstrument.TickSize));
margin = (Bars.Period.Value);

DrawText
(
"tick#"+CurrentBar, AutoScale,
barRange.ToString(), 0, High[0]+3*TickSize, 0, Color.Black
, textFont2, StringAlignment.Center, Color.Transparent, Color.Transparent, 0
);


if (barRange != margin && barRange != 2*margin)
BackColorAll = Color.LightBlue;

else
BackColorAll = Color.Empty;
}

#region Properties


#endregion
}

1. I am not following what errors you are getting
2. My conversion should not need fix in post #35

Reply With Quote
  #50 (permalink)
 zikonc 
san ramon
 
Experience: Beginner
Platform: ninja
Broker: zen
Trading: es, 6e
Posts: 136 since Oct 2009
Thanks Given: 98
Thanks Received: 76


First, HUGE thanks ....... it works !!!!

Second, I removed and reinstalled NT7 and then installled your SbSrenko file .... it is only then I noticed that I was using a previous version from greg ....... I know I deleted his file and recompiled but apparently I always had his version come up instead of yours ...... the reason I say that is becasue in your version you have value 1=YES for session reset and I only noticed this option once I reloaded everything from scratch .......


Reply With Quote
Thanked by:




Last Updated on January 23, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts