龙听期货论坛's Archiver
龙听期货论坛
»
编程语言More>>||
»
MC内置策略【Pre-built Signals】
» 【!optimize by Sharpe ratio!】
龙听
发表于 2022-11-3 14:12
【!optimize by Sharpe ratio!】
[code]
input: Period(0); {0=monthly, 1=daily}
if LastBarOnChart_s then begin
value1 = SharpeRatio(Period, InterestRate, LastBarOnChart_s, InitialCapital);
SetCustomFitnessValue(value1);
end;
[/code]
页:
[1]