読み取り専用

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

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

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

ご参加ください Discord YouTube

Possible to make ea using two indicator signals in period of bars?

2件の返信

ブレット・シュナイデマン

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

プロフィールを表示

10年前 #114911

Hello, I want to make an indicator that enters trade say when rsi crosses below 70 and stochastic crosses below 80, not necessarily at the same time (which doesn’t happen so often) but within a reasonable time of each other, say within 5  bars. Is there a way to do this? Generally  I use “Is bar Open” = true with my EA’s. Any ideas or is the answer obvious, only I can’t see it? Thanks, Brett.

0

ステアノ

カスタマー、bbp_participant、コミュニティ、379件の返信。.

プロフィールを表示

10年前 #135943

Yes. It can be done.

One way is to setup the rules to say “

If (rsi[5] (with the shift changed to 5 bars ago) crosses below 30 OR if rsi[4] crosses below 30 OR if rsi[3] crosses below 30 OR if rsi[2] crosses below 30 OR if rsi[1] crosses below 30) AND ( stoch[5] crosses below 30 OR if stoch [4] crosses below 30 OR if stoch [3] crosses below 30 OR if stoch [2] crosses below 30 OR if stoch [1] crosses below 30) THEN enter trade.

Then you will need to keep it from entering more than once off the same conditions. Because when these rules will be true, they could be true for up to 5 bars more. So you can assign a variable in the THEN statement and add an exclusion to the conditions. Then have a new rule that assigns to that variable back after 5 bars after the last order.

For example, in the THEN statement put Assign Variable, StopTrading = True. Then in second rule, if last order > 5 bars ago AND StopTrading = True, THEN Assign Variable, StopTrading = FALSE.

there are other ways to do this, but this is one way you can try.

ステアルノ

Tapatalkを使用してHUAWEI MT7-TL10から送信

0

ブレット・シュナイデマン

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

プロフィールを表示

10年前 #135950

Thanks a lot, Stearno… amazing! Just learnt a whole lot more of what this EAWizard is capable of doing.

0

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