読み取り専用

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

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

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

ご参加ください Discord YouTube

MM シミュレーションのマルチ通貨取引におけるロットサイズの計算が誤り

1件の返信

krzysiaczek99

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

プロフィールを表示

2年前 #285175

I have a trade of NZDJPY but account currency is USD 10000$. Then I made MM simulation and used ‘Risk fixed % balance 2%’. got size 0.2 lot. Exch rate at time of trade of NZDUSD was 0.58 so to calculate lot size its 10000* 0.02 / 0.58 / 100000 = 0.0034 lot. Why we are getting 0.2. Looking code below calculation don’t consider exchange rate at all !!

クリストフ

@Override
public double computeTradeSize(SQOrder order, double tickSize, double pointValue) throws Exception {
if(mmRisk < 0) {
throw new Exception(“Money management wasn’t properly initialized. Call init() method before computing trade size!”);
}

double tradeSize = 0;
double orderSL;

tradeSize = (equity * mmRisk / 100 ) * 100 / 100000; !!!! assuming trade is in account currency !!!

0

krzysiaczek99

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

プロフィールを表示

2年前 #287047

Are you going to reply / fix this issue ?

0

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