NexusFi: Find Your Edge


Home Menu

 





Reversal Bar Type


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Silvester17 with 7 posts (11 thanks)
    2. looks_two monolisa with 7 posts (1 thanks)
    3. looks_3 Fat Tails with 3 posts (2 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 17,750 views
    2. thumb_up 14 thanks given
    3. group 4 followers
    1. forum 18 posts
    2. attach_file 3 attachments




 
Search this Thread

Reversal Bar Type

  #1 (permalink)
 monolisa 
nnn
 
Experience: None
Platform: NT
Posts: 11 since Jul 2009
Thanks Given: 1
Thanks Received: 1

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

Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Increase in trading performance by 75%
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Exit Strategy
NinjaTrader
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
35 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
19 thanks
GFIs1 1 DAX trade per day journal
16 thanks
Spoo-nalysis ES e-mini futures S&P 500
14 thanks
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102



monolisa View Post
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.

Reply With Quote
Thanked by:
  #4 (permalink)
 monolisa 
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

Started this thread Reply With Quote
  #5 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


monolisa View Post
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?

Reply With Quote
  #6 (permalink)
 monolisa 
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.

Started this thread Reply With Quote
  #7 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


monolisa View Post
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?

Reply With Quote
  #8 (permalink)
 
Silvester17's Avatar
 Silvester17 
Columbus, OH
Market Wizard
 
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,603 since Aug 2009
Thanks Given: 5,139
Thanks Received: 11,527

hi lis,

I think you're looking for this:

Quick and Dirty Ninja [AUTOLINK]PnF[/AUTOLINK] Bars, version 2|Move the Markets

the creator is richard from move the markets.

Attached Thumbnails
Click image for larger version

Name:	ES 09-10  8_27_2010 (PnF 5 Ticks).jpg
Views:	1030
Size:	82.2 KB
ID:	19229  
Reply With Quote
  #9 (permalink)
 monolisa 
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 NT7, does it go to the indicator folder or type folder?

Thanks.

Kind Regards,
Lis

Started this thread Reply With Quote
  #10 (permalink)
 
Silvester17's Avatar
 Silvester17 
Columbus, OH
Market Wizard
 
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,603 since Aug 2009
Thanks Given: 5,139
Thanks Received: 11,527



monolisa View Post
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.

Reply With Quote
Thanked by:




Last Updated on August 2, 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