Page 1 of 1

Change Strategy Description or Name programmatically based on parameters

Posted: Sun Mar 05, 2017 3:27 pm
by tolandale
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