読み取り専用

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

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

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

ご参加ください Discord YouTube

Moving TP & SL

18 replies

CTC

定期購読者、bbp_participant、コミュニティ、14件の返信。.

プロフィールを表示

11年前 #113786

こんにちは、, 

I am trying to do this:

if OpenProfit(magicBuy) > Variable1 then

 Move SL to  CurrentPrice – Variable1 and

 MoveTP to min(currentPrice+TP + Variable2,CurrentPrice+MaxTP) (ie. if maxTp is reached  I close the order)

.

 How is this accomplished?

 

I attach a sample SQW for your consideration…

 

Please consider that MagicNumbers are variables as the EA could run on different Pairs.

 

Thanks a lot,

 

Claudius

ファイル TEMAprofit_EAv2.sqw

0

Tomas Matejka

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

プロフィールを表示

11年前 #131678

I could be wrong but I see magicNoSell with small “m” in the beginning which could be the cause of the error message.

0

CTC

定期購読者、bbp_participant、コミュニティ、14件の返信。.

プロフィールを表示

11年前 #131694

M is capital in the attached. Same error. Plus the change of MagicNo is not accepted in the second one. Please see attached…

 

ありがとう

0

Tomas Matejka

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

プロフィールを表示

11年前 #131749

こんにちは,

 

tried to change magic number from Buy to Sell and got it without any problems. You just have to click through inside the condition into the deepest member using “…” button.

 

Also edited in Adjust SL “Market position is Long” into “Market position is Short”

 

See attached

0

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

← 1 2