NexusFi: Find Your Edge


Home Menu

 





What heuristic would you use to determine which side of an outside bar broke first?


Discussion in NinjaTrader

Updated
    1. trending_up 1,595 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 2 attachments




 
Search this Thread
  #1 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,580 since Oct 2009
Thanks Given: 4,266
Thanks Received: 6,199

I am trying to determine the best heuristic rules to know if an outside bar (engulfing bar) has broken the previous bar high or low first on past historical series. Can you help?

This:


or that:


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Orban at 29pct as Hungary Votes Tomorrow -- McIlroy Surg …
Prediction Markets & Event Contracts
Wood Mackenzie Drops $200 Oil Forecast -- Airspace Expir …
Prediction Markets & Event Contracts
After $87M Settles NO: Irans Nuclear Redline Sets Up the …
Prediction Markets & Event Contracts
Al Arabiya: US-Iran Draft Deal Within Hours Contains Hor …
Prediction Markets & Event Contracts
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #2 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,060

Just spit-balling, but would the bar's direction work(open-close relationship)?

I did a complicated zz indicator a while back for NT7, and that was the logic I used, I believe I had several relationships for dealing w/outside bars.

You mentioned heuristic, so I tend to think that you expect it to only be an approximation, as you'd never REALLY have a way of knowing unless you saw the bars that made up that bar?

But could logic such as...

 
Code
if(Close > Open && outside bar)
  //then Low came first


Reply With Quote
  #3 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,580 since Oct 2009
Thanks Given: 4,266
Thanks Received: 6,199



forrestang View Post
Just spit-balling, but would the bar's direction work(open-close relationship)?

I did a complicated zz indicator a while back for NT7, and that was the logic I used, I believe I had several relationships for dealing w/outside bars.

You mentioned heuristic, so I tend to think that you expect it to only be an approximation, as you'd never REALLY have a way of knowing unless you saw the bars that made up that bar?

But could logic such as...

 
Code
if(Close > Open && outside bar)
  //then Low came first

I think this is one good way to do it on past historical bars. I also thought that if the bar that preceeds the outside bar has its close > 50% of its range then i might assume the next bar would continue higher first, i.e, the outside bar high would come first even if the outside closes up.

Also, if there is the case where the outside bar close and open are equal?


Started this thread Reply With Quote
  #4 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,060


trendisyourfriend View Post
I think this is one good way to do it on past historical bars. I also thought that if the bar that preceeds the outside bar has its close > 50% of its range then i might assume the next bar would continue higher first, i.e, the outside bar high would come first even if the outside closes down.

Also, if there is the case where the outside bar close and open are equal?

That's actually a good idea.

I never thought of that with the ZZ I made, but I did use the relationship of the bars prior to the outside bar. I.e., weather price was heading up or down.

But I think using a % of the close is very logical for this type of thing.


Reply With Quote
Thanked by:
  #5 (permalink)
 SpeculatorSeth   is a Vendor
 
Posts: 781 since Apr 2016
Thanks Given: 22
Thanks Received: 1,026

In this case I would just add a smaller data series underneath.


Reply With Quote
Thanked by:
  #6 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,060

@trendisyourfriend

As per an earlier request...

I actually had a catastrophic HDD failure where I keep all my trading files, so I dunno if I can find my older indicators just yet? I'm still sorting that out.

However, I did upload a version of this zz I built for NT7 in the downloads section. Find one of my indies, click the question mark next to my name to show all MY indies, and It is likely the only ZZ I put on this site.

If I remember it is the ZZ that starts over every session, and doesn't plot continuously. But I'm sure the logic is the same. I haven't looked at it in a while, but if you do grab it, and need help figuring it out, lemme know... it's actually quite bloated if I remember? I built it so it would render quickly.

Also, with this thread, are you wanting to build a zz, or do something else? In looking for ideas, it might be easier for us to all brainstorm up ideas if we knew what you are trying to accomplish.


Reply With Quote




Last Updated on February 10, 2021


© 2026 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 - Downloads - Top
no new posts