fxDreema

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

    Help required to create strategy. Very new here so need help

    Questions & Answers
    2
    2
    387
    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.
    • F
      FXBOTS last edited by

      I am trying to create an EA that opens a position 1 pip above the high of the previous candle or 1 pip below it depending how price moves and once this position is opened to open a new position in this direction each time price either go 1 pip above (for a buy) or below (for a sell) the high/low of previous bar. The EA either buys or sells depending on the first trade.
      A trailing stop is one pip above high or below low of previous candle in opposite direction.
      All open positions closed once SL is hit.
      Then the process starts again.
      The idea is an always in the market EA. Can any one help. I tried something but it is not working: here is the shared link:

      https://fxdreema.com/shared/T5noxGjhc

      I am not sure if my logic is correct?

      Thanks you.

      Kimo

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by fxDreema

        Here set this to 0, otherwise you have 20 pips offset. Or use value of 1, so you can remove these +1pips and -1pips.
        0_1536505438218_610e4041-3847-45f5-b6be-9c7fcbddac6d-image.png

        The Trailing stop blocks should be somewhere alone. If you are using 2 of them, you can connect them.

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

        Online Users

        H
        S
        E
        E
        A
        R
        T
        S
        P

        18
        Online

        146.9k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors