fxDreema

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

    Need help filtering trades

    Questions & Answers
    2
    2
    354
    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
      brightlaw last edited by

      Hi, my ea is based on buying when MACD crosses above and selling when MACD crosses below.

      I am able to make this work: When the MACD crosses above, buy if no trade is running or close sell trades and buy. (and vice versa)

      This is how it looks like: https://fxdreema.com/shared/4bQjL25Qd

      However that would close profitable trades too early and open too many trades.

      Right now I want it to work like this: When the MACD crosses above but I have a sell trade running, if the sell trade is not profitable, it will close the sell trade and open a buy trade, however if the sell trade is on profit, then it would not buy. (and vice versa). This also means that there should always only be 1 trade running.

      This is the current setup I have: https://fxdreema.com/shared/nOuzbzuuc
      What it does is when a crossover occurs it closes losing trades, but it opens a trade whenever a crossover occurs, buys and sells. So I have multiple buy and sell orders at once.

      Please suggest the blocks that I should use or correct any mistakes in my setups.

      Thank you.

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

        I think you want to make this kind of an EA: https://fxdreema.com/shared/GZA2Lhfad
        or maybe something like this: https://fxdreema.com/shared/4FLT9feTd

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

        Online Users

        M
        F
        C

        6
        Online

        146.8k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors