What am I doing wrong?
double ltSlope = (Math.Atan(Slope(LinReg(80),8,0)/TickSize) * 180/Math.PI);
//Eval if slope is greater than 25 degrees
if (ltSlope>25)
{
DrawTextFixed("TrendSlope", "ST Trend:Strong Up \nSmall Slope:" + stSlope + "\nLarge Slope:" + ltSlope, TextPosition.TopRight, Color.White, textFont,Color.Black, Color.Green, 5 );
}
//Eval if slope is less than 25 degrees
if (ltSlope<-25)
{
DrawTextFixed("TrendSlope", "ST Trend:Strong Down \nSmall Slope:" + stSlope + "\nLarge Slope:" + ltSlope, TextPosition.TopRight, Color.White, textFont,Color.Black, Color.Red, 5 );
}
Comment