読み取り専用

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

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

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

ご参加ください Discord YouTube

Proフィットネス目標の計算

2件の返信

ssdex

カスタマー、bbp_participant、コミュニティ、99件の返信。.

プロフィールを表示

11年前 #113402

こんにちは,

 

I’m trying to calculate the profit target to be the same distance as the SL. I’ve had a two issues trying to do this.

 

First:

On the pending order I have in the Stop Loss setting OpenPrice(magic#). This doesn’t seem to be working like I assumed.

 

Second:

In the Profit Target setting I have–

((OpenPrice(9) – OpenPrice(10)) + OpenPrice(9)

 

When doing the math on the calculator the price comes out correct. But the EA Wizard doesn’t set any SL nor PT for these. 

 

This seems like it should be simple math. Any suggestions on how to fix to get the correct SL and PT?

 

Thanks for your time.

 

ジェームズ

0

マーク・フリック

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

プロフィールを表示

11年前 #129060

the problem is that these functions are called before the order is placed, so in live trading they don’t know what is the open price.

 

It can be used by a separate rule – create a rule that checks that order is open and its Profit Target is 0, then you can get its open price or stop loss and compute & set profit target

マーク
StrategyQuantアーキテクト

0

ssdex

カスタマー、bbp_participant、コミュニティ、99件の返信。.

プロフィールを表示

11年前 #129076

Thank you Mark. I should have thought of that. I’ll make a rule following the entry to adjust the PT. Thanks again.

0

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