Trendline Intersection

Questions about MultiCharts and user contributed studies.
User avatar
furytrader
Posts: 353
Joined: 30 Jul 2010
Location: Chicago, IL
Has thanked: 154 times
Been thanked: 215 times

Trendline Intersection

Postby furytrader » 22 Feb 2012

Does anyone know whether there's an easy way to see whether two trendlines overlap using EasyLanguage? And if so, at what bar number and price they overlap?

User avatar
TJ
Posts: 6609
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 971 times
Been thanked: 1912 times

Re: Trendline Intersection

Postby TJ » 22 Feb 2012

furytrader wrote:Does anyone know whether there's an easy way to see whether two trendlines overlap using EasyLanguage? And if so, at what bar number and price they overlap?

in the future? or in previous bars?


you can create a loop... either project into the future, or look back in previous bars,
then use TL_GetValue to compare the price of the 2 trendlines.
These users thanked the author TJ for the post:
furytrader


Return to “MultiCharts”