Page 1 of 1

Strategy code builder

Posted: Fri Aug 03, 2007 1:46 pm
by Terranin
I created a small utility that helps to make the dirty job when you create new strategy file. This is like an expert where you add external parameters, strategy name, description and it will create a source code for you.

Strategy Tester Format

Posted: Sat Mar 13, 2010 6:22 am
by andrewp
Hi Mike,

I'm a trader, not a pogrammer and it would be greatr to be able to use my MQL4 EA's in forex tester, but it seems you only use DELPHI, is that correct?

Is there a SIMPLE way to convert from MQ4 to Delphi???

Thank you,

Andy

Posted: Sat Mar 13, 2010 7:54 am
by FT Support
Hello Andy,

Actually it is not very difficult to convert strategies from MT to FT format if you have basic programming skills. Our Strategies API is quite similar with MetaTrader's. Also you can hire a programmer who can translate your EA to Forex Tester format.
We have Delphi and C++ API for writing strategies. Please check our programming lessons to get more information how it works: http://www.forextester.com/forum/viewforum.php?f=9

adding color

Posted: Mon May 23, 2011 4:07 am
by pwwatson
Can you modify your strategy creation software to allow for color parameters too?

Thanks,
Paul

Re: Strategy code builder

Posted: Sun May 29, 2016 3:56 pm
by forextek
Hi,

I'm having some difficulty dealing with the pointer associated with the external parameter for currency. I'm able to easily hardcode a specific currency into the code; however, when I attempt to replace it with an external user specified currency I'm unsure how to do it. The code below is basically an extract of the code generated by your tool with an addition of the SetCurrencyAndTimeframe function I require to set the currency for the rest of the code. How can I replace the 'EURUSD" with the externally chosen currency? I've tried putting in the pointer but it doesn't compile. I've tried to substitute with a string but the internally defined currency variable is a pointer. Seems to be a very basic requirement to have code generically written to work with any currency pair, but the solution somehow still eludes me. :)

I'm currently recompiling the exact same code but changing the hardcoding for the currency each time to accommodate different currencies.

Please help. Thanks in advance.

var
// External parameters
Currency: PChar = nil;

procedure InitStrategy; stdcall;

begin
RegOption('Currency', ot_Currency, Currency);
ReplaceStr(Currency, 'EURUSD'); // EURUSD HARDCODED each time.
SetCurrencyAndTimeframe(Currency, PERIOD_D1);
end;

Re: Strategy code builder

Posted: Sun Aug 20, 2017 11:07 am
by Signer
pwwaetson wrote:Can you modify your strategy creation software to allow for color parameters too?

Thanks,
Paul


Hey forextek, did you get it working. Thise software would be very handy for a newbie like me.