I am using the ToTime as i want to display different color text for 5 seconds after an update from another indicator... The issue is that the color changes for an extended period of time, maybe 1 or two minutes.... when my code only specifies an additional 5 seconds (i thought)
So i started mucking around the the Print function and have found that ToTime doesnt record seconds, only minutes despite the fact it clearly has the digits included for the seconds in the format HHMMSS...... The output always has 00 for the seconds portion irrespective of the seconds when it was captured.....
How can i get my condition to only last for 5 seconds?
Thanks for any help.
if (GeoKingV1(false,false,false, Dev).LastTimeAlerted()+000005 > ToTime(Time[0]))
{
graphics.DrawString("| GeoKing Multi v1 - Dev = "+Dev,textfontHeader, textbrushOn,new Point(bounds.Left+(0+LeftShift),bounds.Bottom-(140+BottomShift)));
}
else
{
graphics.DrawString("| GeoKing Multi v1 - Dev = "+Dev,textfontHeader, textbrushGreen,new Point(bounds.Left+(0+LeftShift),bounds.Bottom-(140+BottomShift)));
}
Comment