+ Reply to Thread
Results 1 to 3 of 3

Thread: CTL Random Entry Systems

  1. #1
    Administrator Jim's Avatar
    Join Date
    Apr 2010
    Location
    South West England
    Posts
    90

    CTL Random Entry Systems

    We ported our first example robot from MQL4 to GFT's CTL language quite some time ago now.

    We've just received a report on the blog that it doesn't compile properly in Chart Studio any more. Whilst we check that out, here's the original version if you would like to experiment for yourself:
    Attached Files
    Reality is merely an illusion, albeit a very persistent one - Albert Einstein

  2. #2
    Administrator Jim's Avatar
    Join Date
    Apr 2010
    Location
    South West England
    Posts
    90
    I suspect the problem is that my own version of Chart Studio has had the following module installed since before the beginning of time. Stick it in TimeStampToStr.ctl and install it and the "robot" should burst into life:

    Code:
    function timestamptostr;
    input datetime(number);
    result res(string);
    begin
      res := numbertostring(hour(datetime)) + ":" + numbertostring(minute(datetime)) + ":" + numbertostring(second(datetime)) + " " + numbertostring(day(datetime)) + "-" + numbertostring(month(datetime)) + "-" + numbertostring(year(datetime));
    end.
    Reality is merely an illusion, albeit a very persistent one - Albert Einstein

  3. #3
    Junior Member
    Join Date
    May 2010
    Posts
    1
    Hi, that was my problem!
    Now, with adding the timestamptostr function, it doesn't return any errors! Great. Thanks a lot. I will try it as soon as possible.
    Math

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts