fxDreema

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

    Moving Average Crossover

    Questions & Answers
    2
    2
    408
    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.
    • M
      master1793 last edited by

      Hi, my MAcrossover don't close trades when the price crosses 😕 , is a EA very simple, https://fxdreema.com/shared/2nR1yTjse.

      I don't know what I'm doing wrong ❓ .

      https://drive.google.com/file/d/0Bx9qz8 ... l2SjQ/view

      https://drive.google.com/file/d/0Bx9qz8qXM_BBcWMzajBRLVl2SjQ/view

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

        "on Trade" is an event that fires when something happens with some trade or order - open, close, modify. I think you just want to put blocks 8 and 7 under "on Tick". And you probably need something more, because MA10 can be > than MA20 and on the very next tick it can be the opposite, so you will end up with a trade closed immediately. "Once per bar" or something else can help, it depends. And it's totally different when Sell is used as well.

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

        Online Users

        F
        C
        C
        P

        9
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors