Not logged in

Forums

Viewing 15 posts - 16 through 30 (of 37 total)

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

  • #142946 |
    Conmariin
    Participant
    96 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

     

    Okay, but first I must calculate the support and resistance lines on for example H4. How can I do that? With an indicator? Does anybody have an SandR indi with the important lines?

    #145277
    Conmariin
    Participant
    96 Posts

    After a pause I’m in again. 🙂

     

    Can anybody show me how I get support and resistance values for this EA?

    Thank you! 🙂

    #145296
    Moderator
    2349 Posts

    Hello,

     

    you can directly reference other timeframes in EA Wizard and use OHLC prices. I will prepare an example for this and post

    #145304
    Conmariin
    Participant
    96 Posts

    OHLC prices? Hm.. Okay…I will look also..Thank you for your help!

    #145334
    Moderator
    2349 Posts

    Hello,

     

    I have made an example on how to trade for example using D1 or H4 timeframe and use Weekly low as a support level and trade of this level for the long side

    Attachments in this forum are visible only for registered users.
    #191786
    Conmariin
    Participant
    96 Posts

    Hi Tomas262,

    all attachments are lost after forum migration! 🙁
    Could you be so kind and post it again?
    Thank you!

    #191787
    Conmariin
    Participant
    96 Posts

    Because all the attachments are lost I ‘ll post the sqw-file again from the EA I built so far.
    The S and R is in this version still not implemented. I will post it when it’s done.

    Oh, it’s not possible to upload sqw-files??? I’m trying it with a zip.

    • This reply was modified 1 year, 1 month ago by Conmariin Conmariin.
    Attachments:
    You must be logged in to view attached files.
    #191936
    Administrator
    722 Posts

    Hello,

    ok, I will check the EA and also verify and the attachments function. There is only a file size limit now. There should be no file extension filter applied

    #192167
    Conmariin
    Participant
    96 Posts

    I guess in this new forum you have to add the sqw extension to be allowed. May be it’s a positive not a negative filter. Because other attachements like jpg are allowed as I can see. And this is an allowed standard extension.

    • This reply was modified 1 year, 1 month ago by Conmariin Conmariin.
    • This reply was modified 1 year, 1 month ago by Conmariin Conmariin.
    #192201
    Administrator
    722 Posts

    Hello,

    we will add support for other extensions. Thanks for mentioning this. In the meantime you can ZIP the project and attach.

    I will also prepare and publish a similar EA on support and resistances on our blog

    #192467
    Conmariin
    Participant
    96 Posts

    I will also prepare and publish a similar EA on support and resistances on our blog

    Thank you! 🙂 But could you post the last attachment from you before the forum migration for support and resistance code? So I’ll try to implement this in the EA. Thanks a lot!

    #192605
    Administrator
    722 Posts

    Hello,

    ok sure, find it attached. The EA trades off weekly low (support) on low of a candle crossing above. You can test on M15 for example.

    Attachments:
    You must be logged in to view attached files.
    #192759
    Conmariin
    Participant
    96 Posts

    Thanks a lot tomas262 🙂
    Now I have something to play with at weekend 😉

    #196925
    Conmariin
    Participant
    96 Posts

    Hi, tomas 262 🙂
    Some questions for unstanding your posted EA:
    Low(1) crosses above Low(Period_W1) (1)

    I understand that the lowest low of the actual timeframe must cross above the lowest low of the W1 timeframe. Correct?

    Lowest(TrendLowestPeriodShortterm) (1) > Lowest(TrendLowestPeriodLongterm)(1)

    I don’t understand what this is doing. Lowest is an indicator. And TrendLowestPeriodShortterm and TrendLowestPeriodLongterm are Variables with the Value 250. Could you please describe what this mean?

    Thank you 🙂

    #196934
    Administrator
    722 Posts

    Hello,

    it is meant to be Low of last two candle has to cross above W1 support price (the same as Low[2] < W1 Price AND Low[1] > W1 Price)

    Lowest(20) (1) > Lowest(250)(1) is a simple filter that says enter only if the lowest price of last 20 bars is higher that the lowest price of 250 bars. This prevents the EA from entering in case we are in a strong downtrend. We do not want to fight a strong move against us.

Viewing 15 posts - 16 through 30 (of 37 total)

You must be logged in to reply to this topic.