trying to make an indicator that plots out times of day as entered as a variable. Converting a variable into a time period so that deductions can be made is a little confusing. Is there an easy method for this. The below gives a time of 159000 which doesnt exist.
Thanks Raef
privateint d1Buy1 = 160000; // Default setting for D1Buy1
if( ToTime(Time[0]) == (d1Buy1 - 1000) ){DrawVerticalLine("tag2"+CurrentBar, 0, zupdotcolor);
DrawText("TimeZone"+ CurrentBar, bz1, 0, Low[0] - (seperation) *TickSize, Color.Black);}
Comment