Special thanks to “George Soros” (Matt Briand) for the original example.

 

Note: you have to add a timestamp at the end of every signal in the following format - yyyymmddhhmm0 format (note the 0 at the end)

 

Wealth-Lab 2.1 example :

 

In Wealth-Lab you will need to do the following in your Wealth-Lab script :

 

var f:integer;

var s : string;

var price_entry1, price_entry2 : float;

var nbr_contract : integer;

f:=FileOpen('C:\Trading.txt');

FileClear(f); {to start each time with a fresh file}

if condition1 then

begin

nbr_contract :=1;

s :='cxlplace, BUY,' + IntToStr (nbr_contract) + ',STPLMT,' +

FloatToStr (price_entry1) + ',' + FloatToStr (price_entry2);

FileWrite (f, s);

end;

else if condition2 then

begin

s:=' cancel,,,,0';

FileWrite (f, s);

end;

 

 

Download

 

Community

 

Blog

 

Locations of visitors to this page