読み取り専用

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

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

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

ご参加ください Discord YouTube

この状況では変数を使うことは可能でしょうか?

2件の返信

しきい値

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

プロフィールを表示

11年前 #113938

This is just 1 example, but it could be applicable to an infinite number of situations.
Here it is.
I’m defining the trend for a piece of a strategy.
Create variables
‘Bullish’ = false
‘Bearish = false

————————————

もし
close [1]> 200SMA
close [2]> 200SMA
close [3]> 200SMA

それから
assign variable
Bullish = true

assign variable
Bearish = false

————————————-

もし
close [1]< 200SMA
close [2]< 200SMA
close [3]< 200SMA

それから
assign variable
Bullish = false

assign variable
Bearish = true

I want to optimize the number of closes above or below the 200SMA to find the best ‘definition’ of a bull or bear trend. Is it possible to create a variable for the number of closes >/< 200SMA?

0

Tomas Matejka

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

プロフィールを表示

11年前 #131300

This would require an additional function because to count closes above MA you need to use “cycle from 1 to X”. I will consider posting code here or adding it to next EA Wizard update.

0

しきい値

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

プロフィールを表示

11年前 #131301

Thanks, I find myself running into this very often. Would be a big help to have a way to optimize it.

0

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