The yintercept is giving me very small numbers. Can you check my math here? I'm not understanding how the below gives me the yintercept.
double trendSlope = (channel.TrendEndAnchor.Price - channel.TrendStartAnchor.Price) / (Bars.GetBar(channel.TrendEndAnchor.Time) - Bars.GetBar(channel.TrendStartAnchor.Time));
double yintercept = trendSlope * ((CurrentBar-1) - Bars.GetBar(channel.TrendStartAnchor.Time));
Output:
Tag: Trend channel 15 Start Price: 3674.75832167832 End Price 3671.35916083916 Start Bars Ago: 3607 End Bars Ago: 3611 Slope: -0.849790209790285 yintercept: -1.69958041958057

Comment