fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    How can I write the following EA with code blocks?

    Tutorials by Users
    2
    2
    289
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bayramay last edited by

      How can I write the following EA with code blocks?
      METATRADER 5 - MQL 5
      BUY: High > Highest( Close , 48)
      SELL: Low < Lowest ( Close,48)
      System will buy when the 48-bar high is broken, and close the position with Stoploss, Takeprofit, and trailing. System will sell when the 48-bar low is broken, and close the position with Stoploss, Takeprofit, and trailing. System will only trade in the long direction, or only in the short direction.

      Stoploss: 1%, Profit: 10% (not in pips, but in percentage)
      Trailing Stop: Initial trailing stop is 2%, trailing stop will continue at 1% once the profit reaches 6%
      Input values can be assigned and changed:
      -High-Low bar count: (which is 48),
      -Stoploss,
      -Profit,
      -Lot,
      -Long-Short direction (for single-double direction use),
      -Initial trailing stop( which is 3% ),
      -Trailing profit condition: (which is 6%) ,
      -Trailing stop value after profit: (which is 1%)

      1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà last edited by

        Have you tried to create your first draft? That would help. 😉

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        Online Users

        M
        2
        M
        M
        N
        B
        A
        B
        S
        E
        W
        M

        38
        Online

        146.6k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors