読み取り専用

フォーラムは現在、読み取り専用のアーカイブとなっています。.

バグ報告やプラットフォームに関する質問はこちら → [email protected]

私たちのコミュニティはDiscordとYouTubeで活動しています。ぜひ参加してください!

ご参加ください Discord YouTube

“elsystem.DateTime.Now.Hour” in MC’s PL language

3件の返信

イーストピース

Customer、bbp_participant、community、sq-ultimate、298件の返信。.

プロフィールを表示

11年前 #113445

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

マーク・フリック

管理者、sq-ultimate、2件の返信.

プロフィールを表示

11年前 #129255

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

イーストピース

Customer、bbp_participant、community、sq-ultimate、298件の返信。.

プロフィールを表示

11年前 #129297

DateTime.Now.Hour is still unknown in Mc8.8.

 

According to your description, I think “time1500” is to “DateTime.Now.Hour15”.

0

マーク・フリック

管理者、sq-ultimate、2件の返信.

プロフィールを表示

11年前 #129377

DateTime.Now.Hour15 compares only hour, so the equivalent condition in MC should probably be: (time=1600)

マーク
StrategyQuantアーキテクト

0

3件の返信を表示中 - 1 - 3件目 (全3件中)