読み取り専用

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

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

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

ご参加ください Discord YouTube

マジックナンバー

3件の返信

jakehk

購読者、bbp_participant、コミュニティ、0件の返信.

プロフィールを表示

8年前 #235569

Hi, This is my first EA, so I apologize for my probably simple question.

I am working on an EA that based on certain conditions takes either 2 long, or 2 short trades each hour.

I am getting the following message in the journal  –

order with magic number xxxxx already exists, can not open another one!

Suggestions…..

ありがとう

 

0

Tomas Matejka

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

プロフィールを表示

8年前 #235574

こんにちは,

if you want to open 2 simultaneous longs you need to assign each order a different magic number. This way you will avoid conflict

0

jakehk

購読者、bbp_participant、コミュニティ、0件の返信.

プロフィールを表示

8年前 #235580

Thanks, I understand and have done that, but the issue is the next hour, I want the ea to open another 2 trades, and the following hour another 2 trades, regardless of if the previous trades are open or closed. if each new trade requires a new magic number, how can i get the EA to generate or assign its own magic number?

ありがとう

0

Tomas Matejka

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

プロフィールを表示

8年前 #235594

こんにちは,

you need to work with Hour[0] (under Time values) to achieve this

As soon as you open a trade save Hour[0] to a new variable like firstTradeHour = Hour[0]

Then setup a new condition: if (Hour[0] = firstTradeHour + 1) then open another trade

0

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