読み取り専用

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

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

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

ご参加ください Discord YouTube

Maximum Trades Per Day

1件の返信

ジャック・アーチャー

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

プロフィールを表示

2年前 #286357

This appears to not be working correctly in TS.  I have it set to 15 in SQ, the code comes over to TS at 15:

MaxTradesPerDay(15)

(and then specifically in the code):

// Max trades per day
if(OpenOrdersAllowed = True and MaxTradesPerDay <> 0 and EntriesToday(Date) >= MaxTradesPerDay) then
OpenOrdersAllowed = False;

This calls this TS function, which I think is the problem as it’s only good for 10 positions back, so with mine set to 15 trades per day, it exceeds this loop, and I believe stops counting – so, on many days, I have more than 15 trades per day:

 

{ Search Tag: WA-EntriesToday }
{ NOTE: Information is available only for the most recent 10 positions, so if the
target date is set too far back from the current bar, or if the strategy opens and
closes positions very frequently, this function may not produce accurate results. }

inputs: TargetDate_YYYMMDD( numericsimple ) ; { pass in the date in YYYMMDD format,
with the year 2002 being written as 102, etc }
variables: Count( 0 ) ;

Count = 0 ;

for Value1 = 0 to 10
begin
if EntryDate( Value1 ) = TargetDate_YYYMMDD then
Count = Count + 1 ;
end ;

EntriesToday = Count ;

{ ** Copyright © TradeStation Technologies, Inc. All Rights Reserved **

0

Tomas Matejka

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

プロフィールを表示

2年前 #286391

こんにちは、,

you are correct. The EntriesToday is indeed limited to 10 trades per day so settings for higher amount won’t have effect.

Unfortunately there is not much we can do about this but we will look into it

1

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