読み取り専用

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

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

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

ご参加ください Discord YouTube

チュートリアルとして全員のためのEAを作る

36件の回答

コンマリン

サブスクライバー、bpb_participant、コミュニティ、顧客、62件の回答。.

プロフィールを表示

9年前 #116417

こんにちは,

 

I’m not a programmer and I thought buying the EA Wizard would be much easier to build an EA with. But after some building practice I see you need to be a mql-Programmer to understand even EA Wizard.

So I come up with a question to you: Is it possible to build in this forum at least one EA step-by-step for better understanding for all non-programmers the EA Wizard?

 

I have already a strategy which is discribed here: https://www.mql5.com/en/articles/1734 

In this strategy there are code snippets. Actually I don’t know how to integrate them. But more than this I want to understand and leran how am I building such an EA in EA Wizard. So that I can build other EAs in future.

The code snippets from the article are in the mq4.

 

Hopefully greetings from

Conmariin 🙂

 

エキスパートアドバイザーによる自動取引
https://www.rabenesche.de

また、以下の分野でも活動しています:
https://forums.babypips.com/u/ravenash

0

コンマリン

サブスクライバー、bpb_participant、コミュニティ、顧客、62件の回答。.

プロフィールを表示

9年前 #197213

There was something missing. Sorry. I corrected it in this version. 🙂

添付ファイル:
に違いない ログインしました 添付ファイルを表示するには.

エキスパートアドバイザーによる自動取引
https://www.rabenesche.de

また、以下の分野でも活動しています:
https://forums.babypips.com/u/ravenash

0

コンマリン

サブスクライバー、bpb_participant、コミュニティ、顧客、62件の回答。.

プロフィールを表示

9年前 #197239

I have a problem with the condition to buy orders.
I want that the EA is opening an order when following conditions are met:

(GoLongSandR=true and(Pattern1=true or Pattern2=true or Pattern3=true)

But it is opening orders when any of theses Patterns are met. It opens when GoLongSandR=true. It opens when Pattern1=true and Pattern3=true (but not GoLongSandR). It opens when only Pattern2=true…etc. For example sometimes it opens correct with GoLongSandR=true and Pattern1=true.
I attached a picture of my conditionssetting in EAWizard for Long. Where is the error? Can anyone help?

This is the code from the EA:

//--------------------------------------
   // Open Long 
   if(sqIsBarOpen == true) {
      if (((sqGetMarketPosition() == 0) 
      && ((GoLongSandR == true) 
      && ((Pattern1Long == true) 
      || ((Pattern2Long == true) 
      || (Pattern3Long == true))))))
      {
      // Action #1
      sqOpenOrder("NULL", OP_BUY, getOrderSize(MagicLong, OP_BUY ), getOrderPrice(MagicLong), Comment1, MagicLong, "Open Long");

      // Action #2
      sqDrawUpArrow(1);
      }
   }
   //--------------------------------------
   // Open Short 
   if(sqIsBarOpen == true) {
      if (((sqGetMarketPosition() == 0) 
      && ((GoShortSandR == true) 
      && ((Pattern1Short == true) 
      || ((Pattern2Short == true) 
      || (Pattern3Short == true))))))
      {
      // Action #1
      sqOpenOrder("NULL", OP_SELL, getOrderSize(MagicShort, OP_SELL ), getOrderPrice(MagicShort), Comment2, MagicShort, "Open Short");

      // Action #2
      sqDrawDownArrow(1);
      }
   }
添付ファイル:
に違いない ログインしました 添付ファイルを表示するには.

エキスパートアドバイザーによる自動取引
https://www.rabenesche.de

また、以下の分野でも活動しています:
https://forums.babypips.com/u/ravenash

0

Tomas Matejka

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

プロフィールを表示

9年前 #197256

こんにちは,

I see in the original file attached you omitted parentheses but on the screenshot you provided they are present (correctly). Attached modified file

0

Tomas Matejka

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

プロフィールを表示

9年前 #197258

One problem could be you set “pattern” to TRUE but you never set it back to FALSE so the condition will remain always valid.
I think you should set pattern = FALSE with order entry

0

コンマリン

サブスクライバー、bpb_participant、コミュニティ、顧客、62件の回答。.

プロフィールを表示

9年前 #197259

Yes I added the parentheses when I searched the error for this behaviour. And I thought it might be with something is not resettet. But I was unsure. Okay you had the same thought. Now I’m trying to find out how to set the pattern after order entry. Thank you Tomas262! 🙂

エキスパートアドバイザーによる自動取引
https://www.rabenesche.de

また、以下の分野でも活動しています:
https://forums.babypips.com/u/ravenash

0

コンマリン

サブスクライバー、bpb_participant、コミュニティ、顧客、62件の回答。.

プロフィールを表示

9年前 #197277

こんにちは、,

unfortunately I didn’t find out how I can solve this in EAWizard, but I took the code and solved there manually. It was just a 1 Liner in every Pattern condition to set pattern = FALSE. Now it works 🙂

エキスパートアドバイザーによる自動取引
https://www.rabenesche.de

また、以下の分野でも活動しています:
https://forums.babypips.com/u/ravenash

0

6件の返信が表示されています - 31 - 36件目 (全36件中)

← 1 2 3