読み取り専用

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

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

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

ご参加ください Discord YouTube

Adding Code

1件の返信

SQuse

登録者、bbp_participant、コミュニティ、38件の返信。.

プロフィールを表示

11年前 #113035

こんにちは,
 
I need to know where in code I have to change the lot number for my own position sizing please.
 
I changed in line 591 of a strategy :
 
double orderLots = getLots(SL*gPointPow);
 
で
 
double orderLots = getLotsByConstantValue(openPrice);
 
I have a function that will be called at the beginning and at the end of the predefined code of StrategyQuant it will calculate lot size.
This line 591 is the only line I found where to change the lot number. Is that correct ?
 
Because I do not use the money management and all the other lines are not affected different than line 591 with orderLots. So only
the word orderLots refers to the calculated lot size. Correct ?
 
I must know this, because I get some strange values, and I do not think that the formula is wrong at this point.
 
Thank you for any help.

0

マーク・フリック

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

プロフィールを表示

11年前 #128165

こんにちは,

 

lots are computed using the call 

double orderLots = getLots(SL*gPointPow);

 

so you found it correctly. If you want to use your own MM then just replace our function getLots() with your own function and it should work.

 

There is also a check:

if(orderLots > MaximumLots) {
      orderLots = MaximumLots;
}
 
just below this call – if you don’t want to check for maximum lots you can delete it.

マーク
StrategyQuantアーキテクト

0

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