If you test numerous variations of your strategies using different SIM account, you know how annoying it is having to reset each one. It takes several mouse clicks just to rest one. So I made this add-on that resets all of them easily. It has saved me tons of time and headache.
Bar Logic
-When a new bar is formed, price must move "Direction Size" ticks to establish a bar direction.
-Once a direction is established, if price pulls back "Reversal Size" ticks, a new bar is formed.
-The previous bar does not include the final reversal tick. The final reversal tick forms a new bar.
-The opens and closes of bars are actual ticks. No fake opens or closes.
If you prefer the version that requires Reversal Size to be breached, change:
//reversalSize = bars.Instrument.MasterInstrument.Round2TickSize(bars.Period.Value * bars.Instrument.MasterInstrument.TickSize); //This gives you tips of Reversal Size
reversalSize = bars.Instrument.MasterInstrument.Round2TickSize((bars.Period.Value - 1) * bars.Instrument.MasterInstrument.TickSize); //This creates a new bar on Reversal Size
to:
reversalSize = bars.Instrument.MasterInstrument.Round2TickSize(bars.Period.Value * bars.Instrument.MasterInstrument.TickSize); //This gives you tips of Reversal Size
//reversalSize = bars.Instrument.MasterInstrument.Round2TickSize((bars.Period.Value - 1) * bars.Instrument.MasterInstrument.TickSize); //This creates a new bar on Reversal Size
February 22nd, 2013
Size: 1.85 KB
Downloaded: 1178 times
1365
Xav1029
This bar type creates a new bar when price reverses by a pre-defined amount of ticks from the high/low of the bar. As soon as a new bar is created and price moves at least the amount of pre-defined ticks in one direction, the bar again, closes after a reversal of pre-defined ticks.
Updated version of the original indicator posted by Cunparis. Same logic. I found that the colors were not serialized and if you changed any of the bar colors upon saving the template & re-loading, they reverted back to the original default colors. I added serialization to the indicator code so that if you decide to change the default colors, once you save your template, the color changes will be saved also.
June 21st, 2010
Size: 1.78 KB
Downloaded: 998 times
503
Jeff Castille
I personally prefer to have the High and Low prices printed on the chart upon completion of a Yellow Inside bar. The price labels will help my placing a pair of breakout trades.
September 2nd, 2022 11:04 AM cv2low I love this reset, it saves me so much time.
October 14th, 2021 09:20 AM sidlercom Perfect many thx
July 22nd, 2020 01:17 PM bobc635 Great idea!!!!
July 21st, 2020 08:46 PM yogaflyer
July 21st, 2020 11:44 AM Fibstrader I'm new to NT. Used to trade on TS. I downloaded and installed this add-on but how do I find it when I need to reset Sim
accounts? I can't see it in the list of indicators.