PureBytes Links
Trading Reference Links
|
Hi everyone
Many thanks to all who responded.
After running many versions of my code I noticed that I'm getting
infinite loop massage after 30 seconds, when nothing was wrong in a code.
So I thought omega is canceling the procedure arbitrary, if it's using cpu
uninterrupted for more than 30 seconds.
I have split my code into two parts.
1. indicator for main logic
2. function for number verification
I run it, and after 3.5 min it finished SUCCESSFULLY.
Here is another discovery. When you have peace of cpu intensive eazylang
code,
You better split it to two or more parts.
Thanks again to everyone.
Ed
ps: here is the code followed by printout.
variables:n(0),x(0),y(0),z(0),str(""),goodnbr(true);
if currentbar=1 then begin
FOR X = 1000000 TO 1555556 begin
str=numtostr(x,0);
str=midstr(str,2,6);
goodnbr=_goodnbr(str);
if goodnbr then begin
N = N + 1;
print(numtostr(n,0),"-", str);
end;
end;
end;
1-012345
2-012354
3-012435
4-012453
5-012534
6-012543
7-013245
8-013254
9-013425
10-013452
11-013524
12-013542
13-014235
14-014253
15-014325
16-014352
17-014523
18-014532
19-015234
20-015243
21-015324
22-015342
23-015423
24-015432
25-021345
26-021354
27-021435
28-021453
29-021534
30-021543
31-023145
32-023154
33-023415
34-023451
35-023514
36-023541
37-024135
38-024153
39-024315
40-024351
41-024513
42-024531
43-025134
44-025143
45-025314
46-025341
47-025413
48-025431
49-031245
50-031254
51-031425
52-031452
53-031524
54-031542
55-032145
56-032154
57-032415
58-032451
59-032514
60-032541
61-034125
62-034152
63-034215
64-034251
65-034512
66-034521
67-035124
68-035142
69-035214
70-035241
71-035412
72-035421
73-041235
74-041253
75-041325
76-041352
77-041523
78-041532
79-042135
80-042153
81-042315
82-042351
83-042513
84-042531
85-043125
86-043152
87-043215
88-043251
89-043512
90-043521
91-045123
92-045132
93-045213
94-045231
95-045312
96-045321
97-051234
98-051243
99-051324
100-051342
101-051423
102-051432
103-052134
104-052143
105-052314
106-052341
107-052413
108-052431
109-053124
110-053142
111-053214
112-053241
113-053412
114-053421
115-054123
116-054132
117-054213
118-054231
119-054312
120-054321
121-102345
122-102354
123-102435
124-102453
125-102534
126-102543
127-103245
128-103254
129-103425
130-103452
131-103524
132-103542
133-104235
134-104253
135-104325
136-104352
137-104523
138-104532
139-105234
140-105243
141-105324
142-105342
143-105423
144-105432
145-120345
146-120354
147-120435
148-120453
149-120534
150-120543
151-123045
152-123054
153-123405
154-123450
155-123504
156-123540
157-124035
158-124053
159-124305
160-124350
161-124503
162-124530
163-125034
164-125043
165-125304
166-125340
167-125403
168-125430
169-130245
170-130254
171-130425
172-130452
173-130524
174-130542
175-132045
176-132054
177-132405
178-132450
179-132504
180-132540
181-134025
182-134052
183-134205
184-134250
185-134502
186-134520
187-135024
188-135042
189-135204
190-135240
191-135402
192-135420
193-140235
194-140253
195-140325
196-140352
197-140523
198-140532
199-142035
200-142053
201-142305
202-142350
203-142503
204-142530
205-143025
206-143052
207-143205
208-143250
209-143502
210-143520
211-145023
212-145032
213-145203
214-145230
215-145302
216-145320
217-150234
218-150243
219-150324
220-150342
221-150423
222-150432
223-152034
224-152043
225-152304
226-152340
227-152403
228-152430
229-153024
230-153042
231-153204
232-153240
233-153402
234-153420
235-154023
236-154032
237-154203
238-154230
239-154302
240-154320
241-201345
242-201354
243-201435
244-201453
245-201534
246-201543
247-203145
248-203154
249-203415
250-203451
251-203514
252-203541
253-204135
254-204153
255-204315
256-204351
257-204513
258-204531
259-205134
260-205143
261-205314
262-205341
263-205413
264-205431
265-210345
266-210354
267-210435
268-210453
269-210534
270-210543
271-213045
272-213054
273-213405
274-213450
275-213504
276-213540
277-214035
278-214053
279-214305
280-214350
281-214503
282-214530
283-215034
284-215043
285-215304
286-215340
287-215403
288-215430
289-230145
290-230154
291-230415
292-230451
293-230514
294-230541
295-231045
296-231054
297-231405
298-231450
299-231504
300-231540
301-234015
302-234051
303-234105
304-234150
305-234501
306-234510
307-235014
308-235041
309-235104
310-235140
311-235401
312-235410
313-240135
314-240153
315-240315
316-240351
317-240513
318-240531
319-241035
320-241053
321-241305
322-241350
323-241503
324-241530
325-243015
326-243051
327-243105
328-243150
329-243501
330-243510
331-245013
332-245031
333-245103
334-245130
335-245301
336-245310
337-250134
338-250143
339-250314
340-250341
341-250413
342-250431
343-251034
344-251043
345-251304
346-251340
347-251403
348-251430
349-253014
350-253041
351-253104
352-253140
353-253401
354-253410
355-254013
356-254031
357-254103
358-254130
359-254301
360-254310
361-301245
362-301254
363-301425
364-301452
365-301524
366-301542
367-302145
368-302154
369-302415
370-302451
371-302514
372-302541
373-304125
374-304152
375-304215
376-304251
377-304512
378-304521
379-305124
380-305142
381-305214
382-305241
383-305412
384-305421
385-310245
386-310254
387-310425
388-310452
389-310524
390-310542
391-312045
392-312054
393-312405
394-312450
395-312504
396-312540
397-314025
398-314052
399-314205
400-314250
401-314502
402-314520
403-315024
404-315042
405-315204
406-315240
407-315402
408-315420
409-320145
410-320154
411-320415
412-320451
413-320514
414-320541
415-321045
416-321054
417-321405
418-321450
419-321504
420-321540
421-324015
422-324051
423-324105
424-324150
425-324501
426-324510
427-325014
428-325041
429-325104
430-325140
431-325401
432-325410
433-340125
434-340152
435-340215
436-340251
437-340512
438-340521
439-341025
440-341052
441-341205
442-341250
443-341502
444-341520
445-342015
446-342051
447-342105
448-342150
449-342501
450-342510
451-345012
452-345021
453-345102
454-345120
455-345201
456-345210
457-350124
458-350142
459-350214
460-350241
461-350412
462-350421
463-351024
464-351042
465-351204
466-351240
467-351402
468-351420
469-352014
470-352041
471-352104
472-352140
473-352401
474-352410
475-354012
476-354021
477-354102
478-354120
479-354201
480-354210
481-401235
482-401253
483-401325
484-401352
485-401523
486-401532
487-402135
488-402153
489-402315
490-402351
491-402513
492-402531
493-403125
494-403152
495-403215
496-403251
497-403512
498-403521
499-405123
500-405132
501-405213
502-405231
503-405312
504-405321
505-410235
506-410253
507-410325
508-410352
509-410523
510-410532
511-412035
512-412053
513-412305
514-412350
515-412503
516-412530
517-413025
518-413052
519-413205
520-413250
521-413502
522-413520
523-415023
524-415032
525-415203
526-415230
527-415302
528-415320
529-420135
530-420153
531-420315
532-420351
533-420513
534-420531
535-421035
536-421053
537-421305
538-421350
539-421503
540-421530
541-423015
542-423051
543-423105
544-423150
545-423501
546-423510
547-425013
548-425031
549-425103
550-425130
551-425301
552-425310
553-430125
554-430152
555-430215
556-430251
557-430512
558-430521
559-431025
560-431052
561-431205
562-431250
563-431502
564-431520
565-432015
566-432051
567-432105
568-432150
569-432501
570-432510
571-435012
572-435021
573-435102
574-435120
575-435201
576-435210
577-450123
578-450132
579-450213
580-450231
581-450312
582-450321
583-451023
584-451032
585-451203
586-451230
587-451302
588-451320
589-452013
590-452031
591-452103
592-452130
593-452301
594-452310
595-453012
596-453021
597-453102
598-453120
599-453201
600-453210
601-501234
602-501243
603-501324
604-501342
605-501423
606-501432
607-502134
608-502143
609-502314
610-502341
611-502413
612-502431
613-503124
614-503142
615-503214
616-503241
617-503412
618-503421
619-504123
620-504132
621-504213
622-504231
623-504312
624-504321
625-510234
626-510243
627-510324
628-510342
629-510423
630-510432
631-512034
632-512043
633-512304
634-512340
635-512403
636-512430
637-513024
638-513042
639-513204
640-513240
641-513402
642-513420
643-514023
644-514032
645-514203
646-514230
647-514302
648-514320
649-520134
650-520143
651-520314
652-520341
653-520413
654-520431
655-521034
656-521043
657-521304
658-521340
659-521403
660-521430
661-523014
662-523041
663-523104
664-523140
665-523401
666-523410
667-524013
668-524031
669-524103
670-524130
671-524301
672-524310
673-530124
674-530142
675-530214
676-530241
677-530412
678-530421
679-531024
680-531042
681-531204
682-531240
683-531402
684-531420
685-532014
686-532041
687-532104
688-532140
689-532401
690-532410
691-534012
692-534021
693-534102
694-534120
695-534201
696-534210
697-540123
698-540132
699-540213
700-540231
701-540312
702-540321
703-541023
704-541032
705-541203
706-541230
707-541302
708-541320
709-542013
710-542031
711-542103
712-542130
713-542301
714-542310
715-543012
716-543021
717-543102
718-543120
719-543201
720-543210
|