Trading Articles
Article Categories
Article Tools
Reversal Bar Type
Updated August 2, 2012
Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free and simple.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
(login for full post details)
#1 (permalink )
nnn
Experience: None
Platform: NT
Posts: 11 since Jul 2009
Thanks: 1 given,
1
received
Hi,
First post in futures.io (formerly BMT ) forum. It has to start somewhere
I am looking for a reversal bar type ninjascript but couldn't find it here. Your help is appreciated.
Also, I wish to modify the script so the reversal algorithm won't start until the price levels of the bar equal to or exceed certain tick value . How can I do it?
Thanks!
Kind Regards,
Lis
The following user says Thank You to monolisa for this post:
Best Threads (Most Thanked) in the last 7 days on futures io
(login for full post details)
#3 (permalink )
Market Wizard
Berlin, Europe
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,855 since Mar 2010
Thanks: 4,238 given,
26,728
received
monolisa
Hi,
First post in futures.io (formerly
BMT ) forum. It has to start somewhere
I am looking for a reversal bar type ninjascript but couldn't find it here. Your help is appreciated.
Also, I wish to modify the script so the reversal algorithm won't start until the price levels of the bar equal to or exceed certain
tick value . How can I do it?
Thanks!
Kind Regards,
Lis
Hi Lis,
Welcome to Big Mike's forum!
Depends on the definitions. For example you can define
Reversal Bar Up
Open and close ís located in the upper third of the range , should be larger than the average true range of the last 14 bars.
Reversal Bar Down
Open and close is located in the lower third of the range, range should be larger than the average true range of the last 14 bars.
Then code your indicator. Code suggested (not tested):
Code
protected override void OnBarUpdate()
{
if
(CurrentBar < 14)
return;
//Reversal Bar Up
if (Open[0] > 0.334*Low[0]+ 0.666*High[0] && Close[0] > 0.334*Low[1]+ 0.666*High[0] && Range()[0]>ATR(14)[1])
BarColor = Color.Yellow;
//Reversal down
else if (Open[0] < 0.666*Low[0]+ 0.334*High[0] && Close[0] < 0.666*Low[0]+ 0.334*High[0] && Range()[0]>ATR(14)[1]
BarColor = Color.Orange;
}
Plots reversal bars yellow or orange.
The following 2 users say Thank You to Fat Tails for this post:
(login for full post details)
#4 (permalink )
nnn
Experience: None
Platform: NT
Posts: 11 since Jul 2009
Thanks: 1 given,
1
received
Hi Fat Tails,
Thanks for the codes. Actually what I am looking for is a bar type that create a new bar when price reverses a specific tick amount from the extreme (high/low). It's similar to Point and Figure bar type without the Xs and Os and showing candlestick bar instead.
Would anyone please help me?
Thanks.
Kind Regards,
Lis
(login for full post details)
#5 (permalink )
Market Wizard
Berlin, Europe
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,855 since Mar 2010
Thanks: 4,238 given,
26,728
received
monolisa
Hi Fat Tails,
Thanks for the codes. Actually what I am looking for is a bar type that create a new bar when price reverses a specific tick amount from the extreme (high/low). It's similar to
Point and Figure bar type without the Xs and Os and showing candlestick bar instead.
Would anyone please help me?
Thanks.
Kind Regards,
Lis
Did you try range or Kagi bars?
(login for full post details)
#6 (permalink )
nnn
Experience: None
Platform: NT
Posts: 11 since Jul 2009
Thanks: 1 given,
1
received
Yes, I tried both. I think the bar type I am looking for is like a combination of Range and Kagi - Range has to be at least y price levels before Kagi algorithm comes into play.
(login for full post details)
#7 (permalink )
Market Wizard
Berlin, Europe
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,855 since Mar 2010
Thanks: 4,238 given,
26,728
received
monolisa
Yes, I tried both. I think the bar type I am looking for is like a combination of
Range and Kagi - Range has to be at least y price levels before Kagi algorithm comes into play.
Could you give a more detailed definition?
(login for full post details)
#9 (permalink )
nnn
Experience: None
Platform: NT
Posts: 11 since Jul 2009
Thanks: 1 given,
1
received
Hi Silvester17,
Thanks. It's close to what I need but still lacking the requirement that the reversal algo do not start till the bar is x tick high.
I just wonder where I should put such requirement in the codes.
BTW, if you import the bar type into NT7, does it go to the indicator folder or type folder?
Thanks.
Kind Regards,
Lis
(login for full post details)
#10 (permalink )
Market Wizard
Columbus, OH
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,578 since Aug 2009
Thanks: 5,062 given,
11,355
received
monolisa
Hi Silvester17,
Thanks. It's close to what I need but still lacking the requirement that the reversal algo do not start till the bar is x tick high.
I just wonder where I should put such requirement in the codes.
BTW, if you import the bar type into NT7, does it go to the indicator folder or type folder?
Thanks.
Kind Regards,
Lis
lis,
not sure, but believe it's only working for nt 6.5.
when imported, you'll find the PnF bars under interval settings (where the range , tick, min bars are located). again this is for nt 6.5, not nt 7.
The following user says Thank You to Silvester17 for this post:
(login for full post details)
#11 (permalink )
Market Wizard
Columbus, OH
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,578 since Aug 2009
Thanks: 5,062 given,
11,355
received
monolisa
Hi Silvester17,
Thanks. It's close to what I need but still lacking the requirement that the reversal algo do not start till the bar is x tick high.
I just wonder where I should put such requirement in the codes.
BTW, if you import the bar type into NT7, does it go to the indicator folder or type folder?
Thanks.
Kind Regards,
Lis
lis,
maybe you'll find some answers here.
I believe this is for nt 7.
The following 9 users say Thank You to Silvester17 for this post:
(login for full post details)
#12 (permalink )
nnn
Experience: None
Platform: NT
Posts: 11 since Jul 2009
Thanks: 1 given,
1
received
Great find, Silvester.
Where should I put the file into? NinjaTrader 7/bin/Custom/Indicator or NinjaTrader 7/bin/Custom/Type?
Also, what should I change in the codes to satisfy the range before reversal requirement?
Thanks again.
Kind Regards,
Lis
(login for full post details)
#13 (permalink )
Market Wizard
Columbus, OH
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,578 since Aug 2009
Thanks: 5,062 given,
11,355
received
monolisa
Great find, Silvester.
Where should I put the file into?
NinjaTrader 7/bin/Custom/Indicator or NinjaTrader 7/bin/Custom/Type?
Also, what should I change in the codes to satisfy the
range before reversal requirement?
Thanks again.
Kind Regards,
Lis
if nt 7 works like nt 6.5, you should put it in bin/custom/type folder.
(login for full post details)
#14 (permalink )
nnn
Experience: None
Platform: NT
Posts: 11 since Jul 2009
Thanks: 1 given,
1
received
I installed the file in Type folder. However, Reversal_TickBars doesn't show up in the Period Type dropdown list (see attached picture).
Oddly, in my Type folder, the GomDeltaBarType is there and it's working fine.
Please help.
Thanks.
Kind Regards,
Lis
(login for full post details)
#15 (permalink )
Market Wizard
Columbus, OH
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,578 since Aug 2009
Thanks: 5,062 given,
11,355
received
monolisa
I installed the file in Type folder. However, Reversal_TickBars doesn't show up in the Period Type dropdown list (see attached picture).
Oddly, in my Type folder, the GomDeltaBarType is there and it's working fine.
Please help.
Thanks.
Kind Regards,
Lis
not sure if you have to restart NT. if that doesn't help, compile any indicator and see if you get an error message.
The following user says Thank You to Silvester17 for this post:
(login for full post details)
#16 (permalink )
nnn
Experience: None
Platform: NT
Posts: 11 since Jul 2009
Thanks: 1 given,
1
received
I put the script in the indicator folder and now it's working. Thanks, Silvester.
Regarding codes modification, who/where should I ask?
Thanks.
Kind Regards,
Lis
(login for full post details)
#17 (permalink )
Market Wizard
Columbus, OH
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,578 since Aug 2009
Thanks: 5,062 given,
11,355
received
monolisa
I put the script in the indicator folder and now it's working. Thanks, Silvester.
Regarding codes modification, who/where should I ask?
Thanks.
Kind Regards,
Lis
that's interesting, but glad it's working now.
I'm not using it, so I can't help with any modifications. maybe prtester is able to help. he/she posted it here:
good luck.
(login for full post details)
#18 (permalink )
Magadan Russia
Posts: 79 since Nov 2010
Silvester17
lis,
maybe you'll find some answers here.
I believe this is for nt 7.
Hey Silvester,is there any knid of bartimer for this type of bars?
(login for full post details)
#19 (permalink )
Market Wizard
Columbus, OH
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,578 since Aug 2009
Thanks: 5,062 given,
11,355
received
tst1
Hey Silvester,is there any knid of bartimer for this type of bars?
sorry, not that I know of
Last Updated on August 2, 2012
Right now
Ongoing
Right now
February
Coming soon
March