龙听期货论坛's Archiver
龙听期货论坛
»
编程语言More>>||
»
MC内置函数【Pre-built Functions】
» 【MonthsCount】
龙听
发表于 2022-11-2 11:03
【MonthsCount】
[code]value1 = IntPortion(date/10000) - IntPortion(date[1]/10000);
value2 = Month(date) - Month(date[1]);
if 0 < value1 then
value2 = 12 * value1 + value2;
MonthsCount = value2;
[/code]
页:
[1]