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
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
The following 10 users say Thank You to roonius for this 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 */
/// This method is used to configure the indicator and is called once before any bar data is loaded.
protected override void Initialize()
CalculateOnBarClose = false;
Overlay = true;
PriceTypeSupported = false;
textFont2 = new Font("Arial Narrow", 8); // FONT
/// Called on each bar update event (incoming tick)
protected override void OnBarUpdate()
if ( CurrentBar < 4 ) return;
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 .......
The following user says Thank You to zikonc for this post: