読み取り専用

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

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

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

ご参加ください Discord YouTube

Xは5つのバーのうち少なくとも4つで起こったのですか?

5件の返信

rjay

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

プロフィールを表示

12年前 #112706

I need to program a rule that says the bar must have closed lower than the open in at least 4 of the last 5 bars.

 

Is that possible with EA Wizard ?

0

マーク・フリック

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

プロフィールを表示

12年前 #126775

yes, it is possible, but it will be little bit tricky, because it is a cycle, which is not simple to do in rule based wizard.

 

You’d have to create rules like:

Init:

Assign variable Matches = 0

 

ルール1:

IF Close[1] < Open[1] THEN Matches = Matches + 1

 

規則2:

IF Close[2] < Open[2] THEN Matches = Matches + 1

…

 

Rule 5:

IF Close[5] < Open[5] THEN Matches = Matches + 1

 
Rule 6:
IF Matches >= 4 THEN …open the trade…

マーク
StrategyQuantアーキテクト

0

カウント・ロイ

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

プロフィールを表示

12年前 #127094

so this doesn’t work then??
force Index (x) (1) < force Index (x) (-5)
または
RSI(x) (1) < Rsi(x) -7

 

because I too want to make the EA enter the trade when the value is X but also then it was in the previous X period, give or take an X number of bars.

looking forward to hearing this one. because I actually entered that in to a EA I am trying to get running. I have made 14 different orders with also 14 different magic numbers, 7 for short and seven for long. clone this rule I did for the 7 short and then for the 7 long. all the long I have given odd numbers going from 1 – 13 and the shorts 2 – 14 I also changed the to match the direction I want to go.

what I don’t understand is why the EA only trades the short and not the long, maybe this last bit of my reply is a bit of topic to this post. but still.

 

I have inclused a simple example, which doesn’t work like I would expect it to. strange, do you think you can fix this problem with the EA Wizard.

greetz

ファイル test.txt

0

マーク・フリック

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

プロフィールを表示

12年前 #127134

force Index (x) (1) < force Index (x) (-5)

 

you cannot use negative values for shift, you would be looking into the future and indicator will most probably return 0.

 

If you meant comparing RSI value 1 bar ago with RSI value 5 bars ago then use Shift=1 and Shift=5 for that.

But if you want to check that RSI 1 bar ago was smaller than RSI in any other bar in the last 5 bars you have to write this kind of conditions one by one – compare always RSI(x)[1] < RSI(x)[2], RSI(x)[1] < RSI(x)[3] etc…

マーク
StrategyQuantアーキテクト

0

ブリニャック・ルーフィング

購読者, bbp_participant, コミュニティ, 顧客, 91件の返信。.

プロフィールを表示

11年前 #129005

Mr. Fric,

  I noticed you have in your last comment RSI(x)[1]<RSI(x)[3].

 

My question is: Is this a shorter way to write the rule and mean the same as below?

RSI(x)[2],< RSI(x)[3]

RSI(x)[1], < RSI(x)[2]

RSI(x)[0] < RSI(x)[1]

 

I am always writing this rule above but would save me a ton of time if your rule 1 < 3 would mean the same thing

0

マーク・フリック

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

プロフィールを表示

11年前 #129123

RSI(x)[1]<RSI(x)[3] means that RSI 1 bar back is lower than RSI 3 bars back.

 

It doesn’t compare any other bars in between, I meant probably something else than you in my comment.

マーク
StrategyQuantアーキテクト

0

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