NexusFi: Find Your Edge


Home Menu

 





LBR Three Bar Triangle


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 7 posts (37 thanks)
    2. looks_two aligator with 6 posts (0 thanks)
    3. looks_3 Timot with 4 posts (1 thanks)
    4. looks_4 shodson with 2 posts (4 thanks)
    1. trending_up 19,840 views
    2. thumb_up 42 thanks given
    3. group 11 followers
    1. forum 19 posts
    2. attach_file 3 attachments




 
Search this Thread

LBR Three Bar Triangle

  #1 (permalink)
 
aligator's Avatar
 aligator 
Las Vegas, NV
Legendary Market Wizard
 
Experience: Advanced
Platform: Abacus, Slide Rule, HP-65
Trading: Futures, Stocks, Options
Posts: 3,621 since Aug 2010
Thanks Given: 1,071
Thanks Received: 5,994

What would be the logic for LBR 3-Bar Trianagle for coding into Ninja?

I need to confirm the following:

If
High(0) < High(1) and High(0) < High(2) and
Low(0) > Low(1) and Low(0) > Low(2)
Look for Longs;


The reverse would apply for looking for shorts.

Is this the correct logic?

Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
How to apply profiles
Traders Hideout
NexusFi Journal Challenge - May 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
What is Markets Chat (markets.chat) real-time trading ro …
75 thanks
Spoo-nalysis ES e-mini futures S&P 500
55 thanks
Just another trading journal: PA, Wyckoff & Trends
36 thanks
Bigger Wins or Fewer Losses?
24 thanks
The Program
16 thanks
  #2 (permalink)
 
shodson's Avatar
 shodson 
OC, California, USA
Quantoholic
 
Experience: Advanced
Platform: IB/TWS, NinjaTrader, ToS
Broker: IB, ToS, Kinetick
Trading: stocks, options, futures, VIX
Posts: 1,976 since Jun 2009
Thanks Given: 533
Thanks Received: 3,709


aligator View Post
What would be the logic for LBR 3-Bar Trianagle for coding into Ninja?

I need to confirm the following:

If
High(0) < High(1) and High(0) < High(2) and
Low(0) > Low(1) and Low(0) > Low(2)
Look for Longs;


The reverse would apply for looking for shorts.

Is this the correct logic?

This?

https://www.tsindicators.com/Trading_notes/3_Bar_Triangles.html

While it's not proper Ninjascript syntax it logically looks correct.

It seems this condition doesn't specify when to look for longs, rather, to look for breakouts out of this 3-day range when the ADX(14) < 18.

This reminds me of some of these 3-bar patterns (see attachment)

Attached Thumbnails
LBR Three Bar Triangle-barpatterns.pdf  
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
 
aligator's Avatar
 aligator 
Las Vegas, NV
Legendary Market Wizard
 
Experience: Advanced
Platform: Abacus, Slide Rule, HP-65
Trading: Futures, Stocks, Options
Posts: 3,621 since Aug 2010
Thanks Given: 1,071
Thanks Received: 5,994



shodson View Post
This?

While it's not proper Ninjascript syntax it logically looks correct.

It seems this condition doesn't specify when to look for longs, rather, to look for breakouts out of this 3-day range when the ADX(14) < 18.

Thanks @shodson,

Yes, I understand about proper syntax, I just wanted to write the logic down. Also, I have been to that link before and that is where I got the information. However, the information in that link does not specify conditions for breakout to up and down separately, just a generic description which seemed to me it is only for breakouts to the upside.

This is why I need confirmation for the logic, both up and down breakout triangles.

Thanks.

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #4 (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,103


shodson View Post
This?

https://www.tsindicators.com/Trading_notes/3_Bar_Triangles.html

While it's not proper Ninjascript syntax it logically looks correct.

It seems this condition doesn't specify when to look for longs, rather, to look for breakouts out of this 3-day range when the ADX(14) < 18.

I had a look at the link above. The definition for a triangle reads a high lower than the preceding 2-bar high and a low higher than the preceding 2-bar low.

In my opinion the coding logic would be different:

 
Code
IF ((High[0] < High[1] OR High[0] < High[2]) AND (Low[0] > Low[1] OR Low[0] > Low[2]))



It is not required that High[0] is smaller than both of the two preceding highs and that Low[0] is larger than both of the two preceding lows.

Reply With Quote
Thanked by:
  #5 (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


Fat Tails View Post
I had a look at the link above. The definition for a triangle reads a high lower than the preceding 2-bar high and a low higher than the preceding 2-bar low.

In my opinion the coding logic would be different:

 
Code
IF ((High[0] < High[1] OR High[0] < High[2]) AND (Low[0] > Low[1] OR Low[0] > Low[2]))



It is not required that High[0] is smaller than both of the two preceding highs and that Low[0] is larger than both of the two preceding lows.

if I may add my logic as well

lets use an example:

High[1] = 7
High[2] = 4

now that means the preceding 2-bar high is 7. so if High[0] = (between 1 and 6) it's valid. meaning if High[0] = 5, then i'ts still lower than the preceding 2-bar high, but higher than High[2].

therefore @Fat Tails is absolutely correct imho

Reply With Quote
  #6 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,461 since Jun 2009
Thanks Given: 33,235
Thanks Received: 101,657

What was the definition Linda gave during the last webinar?

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #7 (permalink)
 
aligator's Avatar
 aligator 
Las Vegas, NV
Legendary Market Wizard
 
Experience: Advanced
Platform: Abacus, Slide Rule, HP-65
Trading: Futures, Stocks, Options
Posts: 3,621 since Aug 2010
Thanks Given: 1,071
Thanks Received: 5,994

Here is the definition from the above link.

"3 Bar Triangles are bars when the high is lower than the 2 day high and the low is higher than the 2 day low. Have a
higher percentage of follow through than simple NR7 or 1 bar type of patterns. "

Not sure the H(0) being lower than the HH(2) and L(0) higher than LL(2) would form a triangle for some situations. That is why I wanted to confirm the logic.

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #8 (permalink)
 
COTtrader's Avatar
 COTtrader 
JACKSON, MICHIGAN
Legendary Market Wizard
 
Experience: Intermediate
Platform: TS and Trading View
Broker: TS
Trading: ES Awesome!
Posts: 955 since Jul 2009
Thanks Given: 406
Thanks Received: 648

@aligator,
Are you speaking of the Crabel price patterns such as those found here on mypivots?
E-mini S&P500 September 2013

Ken


aligator View Post
Here is the definition from the above link.
"3 Bar Triangles are bars when the high is lower than the 2 day high and the low is higher than the 2 day low. Have a
higher percentage of follow through than simple NR7 or 1 bar type of patterns. "

Not sure the H(0) being lower than the HH(2) and L(0) higher than LL(2) would form a triangle for some situations. That is why I wanted to confirm the logic.


Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #9 (permalink)
 
aligator's Avatar
 aligator 
Las Vegas, NV
Legendary Market Wizard
 
Experience: Advanced
Platform: Abacus, Slide Rule, HP-65
Trading: Futures, Stocks, Options
Posts: 3,621 since Aug 2010
Thanks Given: 1,071
Thanks Received: 5,994


COTtrader View Post
@aligator,
Are you speaking of the Crabel price patterns such as those found here on mypivots?
E-mini S&P500 September 2013

Ken

No, this pattern was discussed by Linda R. during yesterday's futures.io (formerly BMT) webinar. I do not know the origin of this 3-Bar Triangle pattern.

But my impression was that something like a double inside bar would make a triangle. However, the above definition would not necessarily produce a triangle some times. That is why I was asking for clarification.

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #10 (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,103



Big Mike View Post
What was the definition Linda gave during the last webinar?

Mike

I did not find an explicit definition, but the recorded webinar shows two three bar triangle patterns (go to minute 51:00).

The pattern shown on the chart match the definition from the link https://www.tsindicators.com/Trading_notes/3_Bar_Triangles.html posted by @shodson, and are in line with the code logic that I have posted above. Today's high must be lower than the higher of yesterday's high and the high of the day prior to yesterday. Today's low must be higher than the lower of yesterday's low and the low of the day prior to yesterday.


There are two ways to code this in NinjaTrader

 
Code
// first option

if(High[0] < Math.Max(High[1], High[2] && Low[0] > Math.Min(Low[1], Low[2])
     triangle = true;

// second option

if((High[0] < High[1] || High[0] < High[2]) && (Low[0] > Low[1] || Low[0] > Low[2]))
     triangle = true;

If you have an inside bar, it is always a three bar triangle pattern. But the reverse is not true, as there are three bar triangle patterns that are not inside bars.



aligator View Post
Here is the definition from the above link.

"3 Bar Triangles are bars when the high is lower than the 2 day high and the low is higher than the 2 day low. Have a
higher percentage of follow through than simple NR7 or 1 bar type of patterns. "

Not sure the H(0) being lower than the HH(2) and L(0) higher than LL(2) would form a triangle for some situations. That is why I wanted to confirm the logic.


I have given the logic above. I think there is one element missing. The pattern is stands for a consolidation of three days which may precede a breakout. I would therefore ask for the third day to have a lower range than the preceding day.

If you look at the patterns that have been suggested by Toby Crabel, they are slightly different:

NR or narrow range day: current range must be smaller than the range of the previous day
NR7 or narrow range 7 days: current range must be smaller than the range of each of the 6 preceding days
WS or wide spread day: current range must be larger than the range of the previous day
WS4 or wide spread 4 day: current range must be larger than the range of each of the 6 preceding days
ID or inside day: current high must be smaller than the high or the previous day, current low must be larger than the low of the previous day
IDNR4 or inside narrow range 4 day: a day which is an inside day and a narrow range 4 day
2BNR or two bar narrow range day: The two-bar range of the last day must be smaller than the two bar range of the prior day

The focus of Toby Crabel is more on declining volatility. The three bar triangle pattern by LBR does not specify whether the last bar should have a smaller range than the two preceding bars. It is even possible to build a three bar triangle pattern, where the last bar has a higher range than the two preceding bars.

However, in practice the patterns are often similar. If I look at the two examples shown on the chart in the webinar, then

-> the first triangle is also an IDNR7 (inside day and narrow range 7 day) pattern
-> the second triangle is a NR3 pattern

Reply With Quote




Last Updated on November 12, 2013


© 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