Dark Theme
Light Theme
Welcome to NexusFi: the best trading community on the planet, with over 200,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- discounts are available after registering.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
August 26th, 2010, 01:15 PM
nnn
Experience: None
Platform: NT
Posts: 11 since Jul 2009
Thanks Given: 1
Thanks Received: 1
Hi,
First post in NexusFi (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
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
August 26th, 2010, 06:51 PM
Berlin, Europe
Legendary Market Wizard
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,117
monolisa
Hi,
First post in NexusFi (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.
August 27th, 2010, 12:39 AM
nnn
Experience: None
Platform: NT
Posts: 11 since Jul 2009
Thanks Given: 1
Thanks Received: 1
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
August 27th, 2010, 01:47 AM
Berlin, Europe
Legendary Market Wizard
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,117
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?
August 27th, 2010, 03:25 AM
nnn
Experience: None
Platform: NT
Posts: 11 since Jul 2009
Thanks Given: 1
Thanks Received: 1
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.
August 27th, 2010, 06:17 AM
Berlin, Europe
Legendary Market Wizard
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,117
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?
August 27th, 2010, 07:43 AM
Columbus, OH
Legendary Market Wizard
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,603 since Aug 2009
Thanks Given: 5,139
Thanks Received: 11,531
August 27th, 2010, 09:04 AM
nnn
Experience: None
Platform: NT
Posts: 11 since Jul 2009
Thanks Given: 1
Thanks Received: 1
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 , does it go to the indicator folder or type folder?
Thanks.
Kind Regards,
Lis
August 27th, 2010, 09:16 AM
Columbus, OH
Legendary Market Wizard
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,603 since Aug 2009
Thanks Given: 5,139
Thanks Received: 11,531
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.
Last Updated on August 2, 2012