You could also do this for an up day:
if Current_Bar_High>Last_Bar_High AND Current_Bar_Low>Last_Bar_Low then UpTrend++
if High_Of_Day is within 9 Bars from Close_Of_Day AND ((UpTrend*100)/Total_Number_Of_Bars)>45 then
{
printf ("Congrats you have a Trend Day UP!");
Trend_Day_Up=True
Trend_Day_Up_Count++
}
if Current_Bar_High>Last_Bar_High AND Current_Bar_Low>Last_Bar_Low then UpTrend++
if High_Of_Day is within 9 Bars from Close_Of_Day AND ((UpTrend*100)/Total_Number_Of_Bars)>45 then
{
printf ("Congrats you have a Trend Day UP!");
Trend_Day_Up=True
Trend_Day_Up_Count++
}
