読み取り専用

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

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

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

ご参加ください Discord YouTube

Bars since order open

6件の返信

glennc

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

プロフィールを表示

9年前 #191551

I want to refer to the bar when a pending order triggers a trade ie. where the pending order has become an actual open trade.
Using ‘order opened this bar’ will include pending orders, which I don’t want.
Using ‘market position is long/short’ will include all bars of the trade duration.

How do I achieve this?

0

マーク・フリック

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

プロフィールを表示

9年前 #191560

this doesn’t look like something to configure in StrategyQuant 3, are you trying to build strategy like this in Wizard?

I think you can combine these two conditions- Order Opened This Bar AND Order Position Is Long.
If you’ll use specific Magic Number it should give you what you want, shouldn’t it?

マーク
StrategyQuantアーキテクト

0

glennc

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

プロフィールを表示

9年前 #191563

Thanks very much for your reply. Yes, I should have specified, sorry – this is building a strategy in Wizard.
If I use the two conditions, will the EA count the trade opening as an ‘order opened this bar’, even though the pending order was placed on previous bars?

0

Tomas Matejka

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

プロフィールを表示

9年前 #191659

こんにちは,

you can refer to that bar also using a simple bar counter. The bar counter will provide you with a number of bars in trade (barsInTrade variable). Then you can reference the bar prices like for example Close[barsInTrade]. See the file attached

0

glennc

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

プロフィールを表示

9年前 #191745

Thank you very much, that’s very clever.

Just for my understanding, is not the ‘is bar open’ function used in the example achieved by ticking the box ‘Evaluate rule on bar open only’,
or is this something different?

Thanks again, I appreciate you taking the time!

0

Tomas Matejka

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

プロフィールを表示

9年前 #191781

こんにちは,

these are the same. I like to use the condition especially in time when you do not have anything else to setup. You just need some action exactly on bar open

0

glennc

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

プロフィールを表示

9年前 #191807

OK, thank you very much.

0

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