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,144 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 2 attachments




 
Search this Thread

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

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

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?
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Deepmoney LLM
Elite Quantitative GenAI/LLM
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
36 thanks
NexusFi site changelog and issues/problem reporting
25 thanks
GFIs1 1 DAX trade per day journal
19 thanks
The Program
18 thanks
  #2 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

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
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,171
Thanks Received: 6,018



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
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


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: 780 since Apr 2016
Thanks Given: 22
Thanks Received: 1,018

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
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

@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


© 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