fxDreema

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

    MA Deviation Orders (Hot to do it?)

    Questions & Answers
    3
    3
    1190
    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.
    • V
      valleyfx last edited by

      Hi, i'm trying to make an EA that open orders with this parameters :

      Buy when : Price 100 pips < SMA 100 on M1

      Sell when : Price 100 pips > SMA 100 on M1

      i'm making something wrong. it is opening the order when price cross SMA.

      the project :

      https://fxdreema.com/shared/1yvgF6v4d

      Thanks by Now!

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by

        try this change for your condition block (1 and opposite for 11):
        0_1483551326733_upload-64f07dc8-7dde-4e4a-9ca3-485e0fec743b

        Between trading and gambling is a very small gap, be careful.

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

          In Value -> Pips, for the "Pips" parameter you should put value such as 10. Let's say this value of 10 means 10 pips. The second value means how to transform this number of 10.

          • "as price fraction" will transform it into something like 0.0010
          • "this value, as is" will do nothing. It's the same as if you use Value -> Numeric

          What kind of value does "dev" contain? It's Moving Average +/- some pips. This is price value. Ask is also a price value. On the right side better try Value -> Numeric and there select "dev"

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

          Online Users

          D

          10
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors