Instructions for getting Lazarus to work with Forex Tester

Examples step by step how to make your own automated strategy or user indicator
Message
Author
irwa82
Posts: 8
Joined: Sat Dec 05, 2015 11:50 pm

Instructions for getting Lazarus to work with Forex Tester

#1 Postby irwa82 » Sun Mar 05, 2023 3:43 am

Hi,

After much experimentation and research I have gotten Forex Tester to work with Lazarus compiled strategies etc.

I have created a youtube video demonstrating this at https://www.youtube.com/watch?v=K0Sk1jdhFxE

Link for downloading fpcupdeluxe for install newer releases of the free pascal compiler:
https://github.com/LongDirtyAnimAlf/fpcupdeluxe

If Free Pascal 3.3.1 or new is the current stable version then you can use that instead of installing via the fpcupdeluxe method.

Below is the code that you add at the top of the forex tester provided files for developing delphi strategies, indicators and scripts.

Code: Select all

{$IFDEF FPC}
  {$MODE DELPHI}
  {$H+}
  {$MACRO ON}
  {$DEFINE RTLVersion := 22}
  {$UNDEF FPC}
{$ENDIF}   


The above code can be used even if you are compiling with delphi sometimes as delphi will ignore the compiler directives.

Hope this helps people out as it took me a couple of days of researching and experimenting to get this to work.

Regards,
Anthony

Return to “Programming lessons”

Who is online

Users browsing this forum: No registered users and 11 guests