Not logged in

Forums

Viewing 15 posts - 1 through 15 (of 28 total)

Forums>EA Wizard>Strategy Samples>Building an EA for all as tutorial

  • #116417 |
    Participant
    28 Posts

    Hello,

     

    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 🙂

     

    #141875
    Moderator
    2349 Posts

    Hello,

     

    have you tried our EA Wizard? Basically you do not need to be a programmer to make your EA. 

     

    You can use Wizard for 14 days trial. You can get a SQ Pro trial license here https://strategyquant.com/trial that can be used for the EA Wizard too

    #141878
    Participant
    28 Posts

    Hello,

     

    have you tried our EA Wizard? Basically you do not need to be a programmer to make your EA. 

     

    You can use Wizard for 14 days trial. You can get a SQ Pro trial license here https://strategyquant.com/trial that can be used for the EA Wizard too

     

    Yes, I bought the EA Wizard already. And I tried to make some EAs with it. As I described above. And yes it is better to have programming practice or know how to build a profitable EA. Because you need to know the logic how an EA in mql works.

    But that wasn’t the point. My question was: 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?

    #141909
    Moderator
    2349 Posts

    Hello,

     

    so you mean you need a tutorial on using custom codes in Wizard or just using the built-in tools and functions?

    #142297
    Participant
    28 Posts

    Hello,

     

    so you mean you need a tutorial on using custom codes in Wizard or just using the built-in tools and functions?

    I mean how to use custom codes. For example I have in this strategy two things I don’t know how to realize:

     

    1. There are several Variable Definitions like this one: double O1=NormalizeDouble(iOpen(Symbol(),PERIOD_M1,2),4);

    Where and how do I declare this variable definition.

     

    2. And there are several Conditions like this one: if(C1 >= O1 && L1 (C1-O1)) && C2 >= O2 && C2 >
    H1 && L2 > L1)

    Which is in fact 6 conditions.

     

    How is the path to successfully integrate this code into EA Wizard?

    Thank you!

     

    Conmariin 🙂

    #142309
    Participant
    28 Posts

    Okay, I think I know now how I can integrate the conditions from question 2. But I still clueless how I can realize the variable definitions in EA Wizard?

    #142317
    Moderator
    2349 Posts

    Hello,

     

    do you mean how to calculate a value and assign it to a variable for later use ….?

    #142323
    Participant
    28 Posts

    Hm, I think not. It’s about defining variable definitions.

    Actually I can set variables in the strategy parameters. It’s a kind of double, int, string and boolean. And I can say which value it should have.

    But I have this variable definition double O1=NormalizeDouble(iOpen(Symbol(),PERIOD_M1,2),4); where O1 is the variable. So my question is, where can I define the rest on the right side of the = ?

     

    The dirty solution is:

     

    Define the “dummy” variables like this http://img4web.com/view/39FE5K

     

    So I will be able to build the trading rules http://im g4web.com/view/FUA7XC

     

    When the EA is ready and I have the code I will change the variable definitions in the Metatrader Editor manually.

     

    This works but it would be nice to do it all in EAWizard. Especially when I want to make changes later.

    #142351
    Moderator
    2349 Posts

    Hello,

     

    you can just assign values to a variable as shown on screenshot attached

    Attachments in this forum are visible only for registered users.
    Attachments in this forum are visible only for registered users.
    #142377
    Participant
    28 Posts

    Ah! Thank you! 🙂

    Much better!

     

    But I opened the Metatrader Editor and it says something like in the attachment.

    I looked into the code and there is a lot of code in it I didn’t want to (Harami, Doji…)

    It seems to interfere because my variable names are the same like this one in Harami, Doji…

    How can I get rid of it. So that I can exclude errors from that?

    Attachments in this forum are visible only for registered users.
    #142379
    Moderator
    2349 Posts

    Hello,

     

    so you can define variable like Open1, Close1 then …

    #142417
    Participant
    28 Posts

    Okay, I renamed the variables. No errors anymore. 🙂

     

    So the PriceAction is complete. I don’t know how to integrate the S and R like in the article. So I ask, does anybody have an idea which indi or something else I can take instead of the S and R?

    The PriceActionEA build so far is in the attachment.

     

    Thank you! 🙂

     

     

    Attachments in this forum are visible only for registered users.
    #142492
    Moderator
    2349 Posts

    So I ask, does anybody have an idea which indi or something else I can take instead of the S and R?

     

    You can use higher timeframe bars high / lows to define S and R levels, simple and could work

    #142543
    Participant
    28 Posts

    aha. Okay. And position of the s and r are automatically set? Hm. I have to think about. At the moment I don’t know how to start.

    #142641
    Moderator
    2349 Posts

    Hello,

     

    you can create variables – support, resistance and if for example you trade M30 timeframe you can assign these variables values of H4 timeframe

     

    resistance = High(H4)[1]

    support = Low(H4)[1]

     

    or similar

Viewing 15 posts - 1 through 15 (of 28 total)

You must be logged in to reply to this topic.