読み取り専用

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

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

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

ご参加ください Discord YouTube

過去50バーの最高値

7件の返信

onis_uk

登録者、bbp_participant、コミュニティ、27件の返信。.

プロフィールを表示

11年前 #114141

how would i go about coding “highest close in the past 50 days” ?

0

Tomas Matejka

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

プロフィールを表示

11年前 #132388

You will need to use a little “hack” here. Try 関数 → Indicator Highest Value and set period = 50 -> select Simple Moving Average, set period = 1 and Apply To = 閉じる

0

onis_uk

登録者、bbp_participant、コミュニティ、27件の返信。.

プロフィールを表示

11年前 #132410

like this ??

i have applied the “lookback” variable so i can change it but its set to 50 now 

ファイル 50day high.jpg50day high.jpg

0

Tomas Matejka

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

プロフィールを表示

11年前 #132453

On the right side set period to 1 instead of Lookback

0

luk85

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

プロフィールを表示

11年前 #133239

Hi, this is very good idea, but I can’t set SMA period to 1. EA Wizard don’t allow to set period number  in moving avarages smaller than 2. Could you check that?

0

Tomas Matejka

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

プロフィールを表示

11年前 #133257

yes, you are right, it won’t accept 1 as a MA period

 

you will probably need to add a new function into CustomFunctions.mq4 placed in /code/ folder. The code could be:

double getHighestClose(int period) { // name of the function with parameter
   double highest = 0; // init variable to store highest value
   
   for (int i = 1; i  highest) highest = Close[i]; // check if currect bar close is greater than highest stored in "highest" variable
   }
   return(highest); // function will return calculated value
}

Then you can use this function in Wizard like it’s shown on screenshot attached

ファイル highestCLose.pnghighestCLose.png

0

luk85

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

プロフィールを表示

11年前 #133267

Thank you, I’m going to test that.

0

TJ#

Customer, bbp_participant, community, 143件の返信。.

プロフィールを表示

10年前 #135165

こんにちは、,

 

to run a  moving averages smaller than 2,,,

 

1. set “MA_Var” int = 1

2, use “MA_Var” as the period of the  moving averages instead 

 

yes.. if you tries to use “2”, EA Wizard will not accept.. this is a workaround. 

0

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