Change Strategy Description or Name programmatically based on parameters

How to create strategies and indicators
Message
Author
tolandale
Posts: 1
Joined: Sun Mar 05, 2017 3:13 pm

Change Strategy Description or Name programmatically based on parameters

#1 Postby tolandale » Sun Mar 05, 2017 3:27 pm

I want to change Strategy Description or Name programmatically, based on parameters, so that ones parameters change next time Forex Tester loads, strategy description would change also.

So far I tried:

procedure InitStrategy; stdcall;
begin
StrategyShortName('ObjectsTest');
RegOption('Currency', ot_Currency, Currency);
StrategyDescription(StrPas(Currency));
end;

but StrategyDescription is blank after this. Is there is the way to do this or dll know nothing about parameters values at the time StrategyDescription and StrategyShortName initiated?

Thanks in advance

Return to “FT API”

Who is online

Users browsing this forum: No registered users and 29 guests