読み取り専用

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

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

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

ご参加ください Discord YouTube

determining current position size when using predefined MM

3件の返信

huangwh88

カスタマー、bbp_participant、コミュニティ、sq-ultimate、107件の返信。.

プロフィールを表示

9年前 #116431

I have a strategy that has profit taking that goes something like this:

 

-If in profit and price crosses below 20MA, close 1/3 of original position

 

-If price crosses below 20MA again, close another 1/3 of original position

 

-Trail the last 1/3

 

I am using predefined MM risking % of equity so my original position size is determined automatically. I cannot set a specific number of lots to close each time because I do not know the original position size. I also cannot set % position to close each time because it is first 33%, then 50%.

 

How can I make the EA recognize the current position size?

0

Tomas Matejka

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

プロフィールを表示

9年前 #141924

こんにちは,

 

you can easily calculate the entire position sizing with your EA and use the value for other calculations. See the example attached

ファイル LotSize.sqw

0

huangwh88

カスタマー、bbp_participant、コミュニティ、sq-ultimate、107件の返信。.

プロフィールを表示

9年前 #141950

こんにちは,

 

you can easily calculate the entire position sizing with your EA and use the value for other calculations. See the example attached

 ありがとう、トーマス。. 

 

I have 2 questions regarding the example. 

 

1) You use SLPips=ConvertToPips(ATRvalue). This means you are using the ATR value as your SL correct? Then how come for the market order condition, a SL of 20 pips is specified?

 

EDIT: I believe SLPips is just used to calculate position sizing. It need not be the actual SL used in the order. 

 

2) No global money management is used, and to determine position size you create a variable for pip value. If instead I use the risk % equity global MM, do I need to enter the pip value anywhere?

 

ありがとうございます!

0

Tomas Matejka

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

プロフィールを表示

9年前 #141989

こんにちは,

 

the ATR is used to define SL distance. Then the defined SL size is used to calculated the lot size

 

Yes, you can use the predefined MM “risk % of equity…” It should do the same job. I showed the process of determining MM values manually if you’d need to do some additional calculations later 

0

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