NexusFi: Find Your Edge


Home Menu

 





Trendlines not matching from Higher Timeframe to lower Timeframe?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one bluemele with 7 posts (2 thanks)
    2. looks_two Fat Tails with 4 posts (4 thanks)
    3. looks_3 Big Mike with 4 posts (1 thanks)
    4. looks_4 NinjaTrader with 3 posts (3 thanks)
      Best Posters
    1. looks_one Fat Tails with 1 thanks per post
    2. looks_two NinjaTrader with 1 thanks per post
    3. looks_3 trendisyourfriend with 1 thanks per post
    4. looks_4 bluemele with 0.3 thanks per post
    1. trending_up 11,699 views
    2. thumb_up 12 thanks given
    3. group 4 followers
    1. forum 26 posts
    2. attach_file 7 attachments




 
Search this Thread

Trendlines not matching from Higher Timeframe to lower Timeframe?

  #11 (permalink)
 
NinjaTrader's Avatar
 NinjaTrader  NinjaTrader is an official Site Sponsor
Site Sponsor

Web: NinjaTrader
AMA: Ask Me Anything
Webinars: NinjaTrader Webinars
Elite offer: Click here
 
Posts: 1,713 since May 2010
Thanks Given: 203
Thanks Received: 2,686


Big Mike View Post
I will admit right off the top that I have not thought this through. But why not use price? Price seems to be the one true constant, not time.

Mike

Price is used. To graph a point in 2D you need X and Y. X is time and Y is price.

Follow me on Twitter Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
Exit Strategy
NinjaTrader
MC PL editor upgrade
MultiCharts
ZombieSqueeze
Platforms and Indicators
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
24 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #12 (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,442 since Jun 2009
Thanks Given: 33,215
Thanks Received: 101,603


NinjaTrader View Post
Price is used. To graph a point in 2D you need X and Y. X is time and Y is price.

LOL. OK, like I said... had not thought about it much



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
  #13 (permalink)
 
bluemele's Avatar
 bluemele 
Honolulu, Hawaii
 
Experience: Intermediate
Platform: NinjaTrader
Broker: ATC/TT, AMP/Zen-Fire, AMP/CQG
Trading: TF
Posts: 2,543 since Jun 2010
Thanks Given: 3,803
Thanks Received: 2,842



Big Mike View Post
I will admit right off the top that I have not thought this through. But why not use price? Price seems to be the one true constant, not time.

Mike

If you are using 'tick' charts and not 'time' charts, then it should not matter. Price is price right?

Doesn't matter which bar it is on. The reason this confuses me is because I never had this issue on TradeStation and to me this 'SHOULD' not be happening in Ninja, but again, maybe I don't get what you are saying.

An anchor point based on a tick bar on a Low, connecting to a tick bar of another low should matter as that PRICE is the same across any charts.

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #14 (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,442 since Jun 2009
Thanks Given: 33,215
Thanks Received: 101,603

I believe the point was that price could be used for the x or y, but not both axis. So if you use it for y you need time for x.

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
  #15 (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


Big Mike View Post
I believe the point was that price could be used for the x or y, but not both axis. So if you use it for y you need time for x.

Mike


LOL, I love this thread. Price is not the problem, price is always Y. The point is the resolution of the chart and how it affects the x ordinates of the anchor points. If you have a high resolution chart - let us say a 1-Tick chart, the trendline will be correctly drawn.

If you have a low resolution chart - such as a 60 min chart - the anchor point of the trendline will use that high or low of the 60 min bar, but the exact time of that low is somewhere hidden by that 60 min bar.

As an example see the charts below. I draw a trendline on a 60 min chart by using F3 and selecting the points A and B as anchor points. On the 60 minute chart the first low A has a time stamop of 5:30 PM CET. Now if I change the resolution of the chart from 60 min to 1 min, the anchor point will remain at 5:30 PM CET. However the actual already occured at 4:41 PM and not at 5:30 PM. This information was not available on the 60 minute chart.

And now my trendline anchor point is 49 bars away from the real connection point for the trendline.

The Problem

If you draw a trend line on a high resolution - small bar period - chart and convert this to a lower resolution - high bar period - chart, the connection points will be less than one bar off.

However, if you are the lazy guy who draws trend lines on a daily chart and then changes to a higher resolution, you will find that the connection points are ways off.

How to deal with the problem

(1) Start with a low resolution chart and draw an inaccurate trendline (chart 1)
(2) Change the resolution of that chart to create a trend line which is off.
(3) Now edit the trendline and enter manually the correct start time, end time and the highs and lows.

Or get yourself a multi-timeframe indicator which detects the highs and lows by using a high resolution secondary bar series and then automatically trace the trendlines based on that algorithm.

Attached Thumbnails
Click image for larger version

Name:	ES 12-11 (60 Min)  28_09_2011 Trendlines 1.jpg
Views:	311
Size:	80.2 KB
ID:	50402   Click image for larger version

Name:	ES 12-11 (1 Min)  26_09_2011 Trendlines 2.jpg
Views:	306
Size:	73.7 KB
ID:	50403   Click image for larger version

Name:	ES Trendlines 3.JPG
Views:	301
Size:	105.8 KB
ID:	50404  
Reply With Quote
Thanked by:
  #16 (permalink)
 
bluemele's Avatar
 bluemele 
Honolulu, Hawaii
 
Experience: Intermediate
Platform: NinjaTrader
Broker: ATC/TT, AMP/Zen-Fire, AMP/CQG
Trading: TF
Posts: 2,543 since Jun 2010
Thanks Given: 3,803
Thanks Received: 2,842

@Fat Tails,

Thanks for your feedback and I guess I still don't get it and will have to wrap my brain around it a little longer. To me, price is price and I guess what you are saying is that the trendline is both x, y of time, price and not just price.

I wonder if there is a way to create an indicator that will put trendlines only off of price as I didn't get your MTF concept. : )

Thank you for the feedback.

(P.S. I am very lazy)

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


bluemele View Post
@ Fat Tails,

Thanks for your feedback and I guess I still don't get it and will have to wrap my brain around it a little longer. To me, price is price and I guess what you are saying is that the trendline is both x, y of time, price and not just price.

I wonder if there is a way to create an indicator that will put trendlines only off of price as I didn't get your MTF concept. : )

Thank you for the feedback.

(P.S. I am very lazy)

No, that is not what I am saying. Price is indeed price, and there is no change between the chart.

The anchor points of the ray get a time stamp. These time-stamps depend on the chart selected. Let me try a very simple example again.

(1) ES makes a low at 10:05 AM. You want to attach the trendline to this low.
(2) On a 60 minute chart you attach your trendline to the 11:00 AM bar, so your trendline anchor point gets a time stamp of 11:00 AM
(3) On a 30 minute chart you attach your trendline to the lowest point of the 10:30 AM bar, so you anchor point gets a timestamp of 10:30 AM

All anchor points have the same y value for price, but different x values for time.

If you transpose the trnedline (2) to a 1-minute chart, you will see the trendline start at 11:00 AM, although the low has been made at 10:05 AM. The trendline will start with the correct price, but 55 minutes later.

If you transpose the trendline(3) to a 1-minute chart, you will see the trendline start at 10:30 AM, although the low has been made at 10:05 AM. The trendline will start with the correct price, but 25 minutes later.


Reply With Quote
Thanked by:
  #18 (permalink)
 
bluemele's Avatar
 bluemele 
Honolulu, Hawaii
 
Experience: Intermediate
Platform: NinjaTrader
Broker: ATC/TT, AMP/Zen-Fire, AMP/CQG
Trading: TF
Posts: 2,543 since Jun 2010
Thanks Given: 3,803
Thanks Received: 2,842


Fat Tails View Post
No, that is not what I am saying. Price is indeed price, and there is no change between the chart.

The anchor points of the ray get a time stamp. These time-stamps depend on the chart selected. Let me try a very simple example again.

(1) ES makes a low at 10:05 AM. You want to attach the trendline to this low.
(2) On a 60 minute chart you attach your trendline to the 11:00 AM bar, so your trendline anchor point gets a time stamp of 11:00 AM
(3) On a 30 minute chart you attach your trendline to the lowest point of the 10:30 AM bar, so you anchor point gets a timestamp of 10:30 AM

All anchor points have the same y value for price, but different x values for time.

If you transpose the trnedline (2) to a 1-minute chart, you will see the trendline start at 11:00 AM, although the low has been made at 10:05 AM. The trendline will start with the correct price, but 55 minutes later.

If you transpose the trendline(3) to a 1-minute chart, you will see the trendline start at 10:30 AM, although the low has been made at 10:05 AM. The trendline will start with the correct price, but 25 minutes later.


Ok, I get it, now.

Is there a way to trick the trendline when attached to two anchor points to only be attached to the 'y' value? To me, why would a trendline want to be tracked on a time bases? I think that is the issue. Maybe I am still not getting it. haha....

Thanks for the detailed explanation and when I think about what I just typed then it doesn't make sense as it needs coordinates to attach itself obviously which require (x,y). From a mathematical standpoint it makes sense, but so does so much in life. From a usability standpoint, it is worthless.

I spend a lot of time rolling back through many days on a 144 tick chart trying to find that darn pivot! Takes about 2 minutes to run back, re-attach and work it. Then, I find it actually is paying attention to the longer term (atleast other traders are...) which is interesting.

Anyways, again, thanks for your support and guidance. You are a real asset.

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


bluemele View Post
Ok, I get it, now.

Is there a way to trick the trendline when attached to two anchor points to only be attached to the 'y' value? To me, why would a trendline want to be tracked on a time bases? I think that is the issue. Maybe I am still not getting it. haha....

Thanks for the detailed explanation and when I think about what I just typed then it doesn't make sense as it needs coordinates to attach itself obviously which require (x,y). From a mathematical standpoint it makes sense, but so does so much in life. From a usability standpoint, it is worthless.

I spend a lot of time rolling back through many days on a 144 tick chart trying to find that darn pivot! Takes about 2 minutes to run back, re-attach and work it. Then, I find it actually is paying attention to the longer term (atleast other traders are...) which is interesting.

Anyways, again, thanks for your support and guidance. You are a real asset.

Haha,

A trendline requires two anchor points and so you need to find x and y for each of these anchor points.

Your way of doing it: You go to a higher timeframe chart and draw the line. You select two anchor points. NinjaTrader remembers them via the price and the time stamp of the bar.

Another way of doing it: Progress from drawing your trendline manually to define the rules, how you draw them. If you have rules, you can apply these to any chart, allowing you draw the trendlines programmatically, and then you do not any longer rely on that offending time-stamp.

So you have the choice. Either draw manually and suffer from the time stamps required to catch your artistic drawings, or setup a rule and let NinjaTrader draw the trendline on its own.

Reply With Quote
Thanked by:
  #20 (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,175
Thanks Received: 6,020



bluemele View Post
...From a usability standpoint, it is worthless.
...

I agree with you, as an ex programmer i can tell you they implemented a very basic algo to draw a trendline. I'd have gone a step further so that when you draw a trendline on a 60 minutes chart and you switch to a high resolution chart as would say Fat Tails then the line should update itself automatically. Programtically speaking, this is very easy to do. For the user these little details count.

Reply With Quote




Last Updated on October 8, 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