[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Time to Tick



PureBytes Links

Trading Reference Links


{set input tyme to the number of minutes you want}



input:tyme(5);
var:nextyme(0);
if d>d[1]then nextyme=timetominutes(Sess1FirstBarTime)+tyme;
if timetominutes(t)>=nextyme then begin 
nextyme=nextyme+tyme;
if d=currentdate then begin plot1(c,"tyme");end;end;

if date=currentdate then begin

IF TIME=0000 THEN print(date:6:0, Time:5:0, "  Time = 00:00 am  ==========  "); 
IF TIME=0015 THEN print(date:6:0, Time:5:0, "  Time = 00:15 am  ==========  "); 
IF TIME=0030 THEN print(date:6:0, Time:5:0, "  Time = 00:30 am  ==========  "); 
IF TIME=0045 THEN print(date:6:0, Time:5:0, "  Time = 00:45 am  ==========  "); 
IF TIME=0100 THEN print(date:6:0, Time:5:0, "  Time = 01:00 am  ==========  "); 
IF TIME=0115 THEN print(date:6:0, Time:5:0, "  Time = 01:15 am  ==========  "); 
IF TIME=0130 THEN print(date:6:0, Time:5:0, "  Time = 01:30 am  ==========  "); 
IF TIME=0145 THEN print(date:6:0, Time:5:0, "  Time = 01:45 am  ==========  "); 
IF TIME=0200 THEN print(date:6:0, Time:5:0, "  Time = 02:00 am  ==========  "); 
IF TIME=0215 THEN print(date:6:0, Time:5:0, "  Time = 02:15 am  ==========  "); 
IF TIME=0230 THEN print(date:6:0, Time:5:0, "  Time = 02:30 am  ==========  "); 
IF TIME=0245 THEN print(date:6:0, Time:5:0, "  Time = 02:45 am  ==========  "); 
IF TIME=0300 THEN print(date:6:0, Time:5:0, "  Time = 03:00 am  ==========  "); 
IF TIME=0315 THEN print(date:6:0, Time:5:0, "  Time = 03:15 am  ==========  "); 
IF TIME=0330 THEN print(date:6:0, Time:5:0, "  Time = 03:30 am  ==========  "); 
IF TIME=0345 THEN print(date:6:0, Time:5:0, "  Time = 03:45 am  ==========  "); 
IF TIME=0400 THEN print(date:6:0, Time:5:0, "  Time = 04:00 am  ==========  ");
IF TIME=0415 THEN print(date:6:0, Time:5:0, "  Time = 04:15 am  ==========  "); 
IF TIME=0430 THEN print(date:6:0, Time:5:0, "  Time = 04:30 am  ==========  "); 
IF TIME=0445 THEN print(date:6:0, Time:5:0, "  Time = 04:45 am  ==========  "); 
IF TIME=0500 THEN print(date:6:0, Time:5:0, "  Time = 05:00 am  ==========  "); 
IF TIME=0515 THEN print(date:6:0, Time:5:0, "  Time = 05:15 am  ==========  "); 
IF TIME=0530 THEN print(date:6:0, Time:5:0, "  Time = 05:30 am  ==========  "); 
IF TIME=0545 THEN print(date:6:0, Time:5:0, "  Time = 05:45 am  ==========  "); 
IF TIME=0600 THEN print(date:6:0, Time:5:0, "  Time = 06:00 am  ==========  "); 
IF TIME=0615 THEN print(date:6:0, Time:5:0, "  Time = 06:15 am  ==========  "); 
IF TIME=0630 THEN print(date:6:0, Time:5:0, "  Time = 06:30 am  ==========  "); 
IF TIME=0645 THEN print(date:6:0, Time:5:0, "  Time = 06:45 am  ==========  "); 
IF TIME=0700 THEN print(date:6:0, Time:5:0, "  Time = 07:00 am  ==========  "); 
IF TIME=0715 THEN print(date:6:0, Time:5:0, "  Time = 07:15 am  ==========  "); 
IF TIME=0730 THEN print(date:6:0, Time:5:0, "  Time = 07:30 am  ==========  "); 
IF TIME=0745 THEN print(date:6:0, Time:5:0, "  Time = 07:45 am  ==========  "); 
IF TIME=0800 THEN print(date:6:0, Time:5:0, "  Time = 08:00 am  ==========  "); 
IF TIME=0815 THEN print(date:6:0, Time:5:0, "  Time = 08:15 am  ==========  "); 
IF TIME=0830 THEN print(date:6:0, Time:5:0, "  Time = 08:30 am  ==========  "); 
IF TIME=0845 THEN print(date:6:0, Time:5:0, "  Time = 08:45 am  ==========  "); 
IF TIME=0900 THEN print(date:6:0, Time:5:0, "  Time = 09:00 am  ==========  "); 
IF TIME=0915 THEN print(date:6:0, Time:5:0, "  Time = 09:15 am  ==========  "); 
IF TIME=0930 THEN print(date:6:0, Time:5:0, "  Time = 09:30 am  ==========  "); 
IF TIME=0945 THEN print(date:6:0, Time:5:0, "  Time = 09:45 am  ==========  "); 
IF TIME=1000 THEN print(date:6:0, Time:5:0, "  Time = 10:00 am  ==========  "); 
IF TIME=1015 THEN print(date:6:0, Time:5:0, "  Time = 10:15 am  ==========  "); 
IF TIME=1030 THEN print(date:6:0, Time:5:0, "  Time = 10:30 am  ==========  "); 
IF TIME=1045 THEN print(date:6:0, Time:5:0, "  Time = 10:45 am  ==========  "); 
IF TIME=1100 THEN print(date:6:0, Time:5:0, "  Time = 11:00 am  ==========  "); 
IF TIME=1115 THEN print(date:6:0, Time:5:0, "  Time = 11:15 am  ==========  ");
IF TIME=1130 THEN print(date:6:0, Time:5:0, "  Time = 11:30 am  ==========  "); 
IF TIME=1145 THEN print(date:6:0, Time:5:0, "  Time = 11:45 am  ==========  "); 
IF TIME=1200 THEN print(date:6:0, Time:5:0, "  Time = 12:00 noon  ==========  "); 
IF TIME=1215 THEN print(date:6:0, Time:5:0, "  Time = 12:15 pm  ==========  "); 
IF TIME=1230 THEN print(date:6:0, Time:5:0, "  Time = 12:30 pm  ==========  "); 
IF TIME=1245 THEN print(date:6:0, Time:5:0, "  Time = 12:45 pm  ==========  "); 
IF TIME=1300 THEN print(date:6:0, Time:5:0, "  Time = 01:00 pm  ==========  "); 
IF TIME=1315 THEN print(date:6:0, Time:5:0, "  Time = 01:15 pm  ==========  "); 
IF TIME=1330 THEN print(date:6:0, Time:5:0, "  Time = 01:30 pm  ==========  "); 
IF TIME=1345 THEN print(date:6:0, Time:5:0, "  Time = 01:45 pm  ==========  "); 
IF TIME=1400 THEN print(date:6:0, Time:5:0, "  Time = 02:00 pm  ==========  "); 
IF TIME=1415 THEN print(date:6:0, Time:5:0, "  Time = 02:15 pm  ==========  ");
IF TIME=1430 THEN print(date:6:0, Time:5:0, "  Time = 02:30 pm  ==========  "); 
IF TIME=1445 THEN print(date:6:0, Time:5:0, "  Time = 02:45 pm  ==========  "); 
IF TIME=1500 THEN print(date:6:0, Time:5:0, "  Time = 03:00 pm  ==========  "); 
IF TIME=1515 THEN print(date:6:0, Time:5:0, "  Time = 03:15 pm  ==========  ");
IF TIME=1530 THEN print(date:6:0, Time:5:0, "  Time = 03:30 pm  ==========  "); 
IF TIME=1545 THEN print(date:6:0, Time:5:0, "  Time = 03:45 pm  ==========  "); 
IF TIME=1600 THEN print(date:6:0, Time:5:0, "  Time = 04:00 pm  ==========  "); 
IF TIME=1615 THEN print(date:6:0, Time:5:0, "  Time = 04:15 pm  ==========  ");
IF TIME=1630 THEN print(date:6:0, Time:5:0, "  Time = 04:30 pm  ==========  "); 
IF TIME=1645 THEN print(date:6:0, Time:5:0, "  Time = 04:45 pm  ==========  "); 
IF TIME=1700 THEN print(date:6:0, Time:5:0, "  Time = 05:00 pm  ==========  "); 
IF TIME=1715 THEN print(date:6:0, Time:5:0, "  Time = 05:15 pm  ==========  ");
IF TIME=1730 THEN print(date:6:0, Time:5:0, "  Time = 05:30 pm  ==========  "); 
IF TIME=1745 THEN print(date:6:0, Time:5:0, "  Time = 05:45 pm  ==========  "); 
IF TIME=1800 THEN print(date:6:0, Time:5:0, "  Time = 06:00 pm  ==========  "); 
IF TIME=1815 THEN print(date:6:0, Time:5:0, "  Time = 06:15 pm  ==========  ");
IF TIME=1830 THEN print(date:6:0, Time:5:0, "  Time = 06:30 pm  ==========  "); 
IF TIME=1845 THEN print(date:6:0, Time:5:0, "  Time = 06:45 pm  ==========  "); 
IF TIME=1900 THEN print(date:6:0, Time:5:0, "  Time = 07:00 pm  ==========  "); 
IF TIME=1915 THEN print(date:6:0, Time:5:0, "  Time = 07:15 pm  ==========  ");
IF TIME=1930 THEN print(date:6:0, Time:5:0, "  Time = 07:30 pm  ==========  "); 
IF TIME=1945 THEN print(date:6:0, Time:5:0, "  Time = 07:45 pm  ==========  "); 
IF TIME=2000 THEN print(date:6:0, Time:5:0, "  Time = 08:00 pm  ==========  "); 
IF TIME=2015 THEN print(date:6:0, Time:5:0, "  Time = 08:15 pm  ==========  ");
IF TIME=2030 THEN print(date:6:0, Time:5:0, "  Time = 08:30 pm  ==========  "); 
IF TIME=2045 THEN print(date:6:0, Time:5:0, "  Time = 08:45 pm  ==========  "); 
IF TIME=2100 THEN print(date:6:0, Time:5:0, "  Time = 09:00 pm  ==========  "); 
IF TIME=2115 THEN print(date:6:0, Time:5:0, "  Time = 09:15 pm  ==========  ");
IF TIME=2130 THEN print(date:6:0, Time:5:0, "  Time = 09:30 pm  ==========  "); 
IF TIME=2145 THEN print(date:6:0, Time:5:0, "  Time = 09:45 pm  ==========  "); 
IF TIME=2200 THEN print(date:6:0, Time:5:0, "  Time = 10:00 pm  ==========  "); 
IF TIME=2215 THEN print(date:6:0, Time:5:0, "  Time = 10:15 pm  ==========  ");
IF TIME=2230 THEN print(date:6:0, Time:5:0, "  Time = 10:30 pm  ==========  "); 
IF TIME=2245 THEN print(date:6:0, Time:5:0, "  Time = 10:45 pm  ==========  "); 
IF TIME=2300 THEN print(date:6:0, Time:5:0, "  Time = 11:00 pm  ==========  "); 
IF TIME=2315 THEN print(date:6:0, Time:5:0, "  Time = 11:15 pm  ==========  ");
IF TIME=2330 THEN print(date:6:0, Time:5:0, "  Time = 11:30 pm  ==========  "); 
IF TIME=2345 THEN print(date:6:0, Time:5:0, "  Time = 11:45 pm  ==========  "); 
IF TIME=2400 THEN print(date:6:0, Time:5:0, "  Time = 12:00 midnite  ==========  ");end;