in my example I am capturing the DateTime detail of a specific bar into a variable. myBarTime
private Series<DateTime> myBarTime; myBarTime[0] = Time[0]
if (Time[0].Hour > myBarTime[0].Hour + 5)
{
Do Something
}
I was expecting to be able to add 5 to that and it should return 11
However when I print out the hour value of myBarTime I get 65
clearly the + is not adding the numbers but rather concatenating them.
Can you explain how I achieve my desired result which should have myBarTime.Hour[0] +5 to = 11
Kind regards
Duncan

Comment