“elsystem.DateTime.Now.Hour” in MC’s PL language
3件の返信
Hi, Mark!
I get a strategy today. There is a function that MC can’t recognize.
LongEntryCondition = … and (elsystem.DateTime.Now.Hour<>15));
I guess it means bar’s time <> 1500 ?
And I want to know the right answer from you.
ありがとう。.
0
the condition means hour 15.
It seems MultiCharts doesn’t support this function, it works in Tradestation.
Unfortunately I cannot test it in MultiCharts, but from the documentation I browsed it seems it should work if you’ll edit the code and remove the elsystem. part.
So it will look like:
LongEntryCondition = … and (DateTime.Now.Hour15));
マーク
StrategyQuantアーキテクト
0
DateTime.Now.Hour is still unknown in Mc8.8.
According to your description, I think “time1500” is to “DateTime.Now.Hour15”.
0
DateTime.Now.Hour15 compares only hour, so the equivalent condition in MC should probably be: (time=1600)
マーク
StrategyQuantアーキテクト
0
3件の返信を表示中 - 1 - 3件目 (全3件中)