読み取り専用

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

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

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

ご参加ください Discord YouTube

Bars Since Order Open

4件の返信

sdstrading

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

プロフィールを表示

11年前 #113769

こんにちは、,

I seem to be having an issue with the Bars Since Order Open Function. My EA trades perfectly fine without this line however as soon as I add in Bars Since Order Open the EA doesn’t make any trades. 

I want the EA to wait 2 Bars before its makes the next trade after any previous trade. Magic Number is set to 0 (Zero). 

 

I’m guessing because i have this code it doesn’t trade because their hasn’t been a trade.

 

Does anyone know of a work around that i can add with this code to start the trading?

 

よろしくお願いします。.

0

Tomas Matejka

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

プロフィールを表示

11年前 #130780

こんにちは、,

 

have you tried to use “Bars Since Order Closed()” instead? Because it returns number of bars since the order was closed for order with given Magic Number. If you’ll set Magic Number to 0, it will return number of bars since last closed order.

So it should work just by adding following rule to your entry condition:  If (Bars Since Order Close(0) >= 2)

0

sdstrading

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

プロフィールを表示

11年前 #130792

Seems that what i’m wanting to do cannot be achieved using the built in functions.

 

For those wanting to know the work around.

 

Create 2 variables:

BarsToNextOrder: 2

BarsToNextOrder2: 0

 

Edit Ordering Rule

Add new condition: BarsToNextOrder2 <= 0

Then In Order Management Assign Variable

BarsToNextOrder2 = BarsToNextOrder

 

Create a new rule

in order management assign variable

BarsToNextOrder2 = BarsToNextOrder2 – 1

 

ありがとう。,

ファイル new rule.jpgnew rule.jpg

0

javiersfr

サブスクライバー、bpb_participant、コミュニティ、顧客、39件の回答。.

プロフィールを表示

11年前 #132510

sdstrading,

 

I have the same as you have.

 

I’ve been testing with different values of BARS SINCE ORDER OPEN and I believe this function is not working when we use two digits; I mean the function works ok from 1 to 9 bars distance, but it stop working properly when I type 10.

 

I hope Mark can put some light on it.

 

事前にありがとうございます、マーク。.

 

We wait for your news.

0

Tomas Matejka

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

プロフィールを表示

11年前 #132515

I just tried to make an example in Wizard I attach here – use exit after 15 bars on 30 min timeframe and it works well.

0

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