fxDreema

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

    TDI CLOSE POSITION IF ...

    Questions & Answers
    2
    4
    1829
    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
      mashna1364 last edited by mashna1364

      HI,
      I want create TDI EA but i have many problem,please help me...
      all you know that TDI signal is crossed GREEN line and RED line.I create this part of TDI EA
      but not profitable...
      0_1528375633673_TDI EA 2.JPG
      I want add many filter to EA but i dont know how do it...
      please attention to this image...
      0_1528375730930_TDI EA.JPG
      for sample in BUY SIGNAL ,TDI EA open a buy position .i want close pos when stochastic lines crossed(CLOSE SIGNAL).and wait until NEXT SIGNAL.
      and other my problem is: when i add SL and TP ,when rich to them ,close position (sell or buy) but open another position (sell or buy ) .i dont want open another sell or buy ,i want EA wait until next signal(next crossed).
      summary can help me to complet this 2 problem?
      1- close position when stochastic crossed signal
      2- only open one position when take profit and wait until next signal.

      thanks .

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

        I guess that you have modified version of this example: https://fxdreema.com/demo/mt4-buy-sell-buy-sell-opposite-conditions So you probably have x> and x< in the Condition blocks and these signals happen only when there are crossovers and not in the rest of the candles. So you can close the Buy trade few candles after it was created and the EA will still wait for the next crossover.

        To close the trade by Stochastic, add something like "Condition -> Close trades" in separate branch or put it inside the existing blocks somehow.

        M 1 Reply Last reply Reply Quote 0
        • M
          mashna1364 @fxDreema last edited by mashna1364

          @fxdreema
          THNAKS YOU...
          but my problem is: when set TP or SL in trade ,when open position and rich TP or SL close trade but OPEN another position, i use filter once per bar ,but open position in next candle.
          this my EA link: https://fxdreema.com/shared/XuVSSlVoe
          To close the trade by Stochastic, add something like "Condition -> Close trades" in separate branch or put it inside the existing blocks somehow.: CAN SHOW A SAMPLE?

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

            In blocks 23 and 29 try x> and x< instead of > and <

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

            Online Users

            S
            G
            E
            E
            M
            O
            B
            M
            Z
            S
            S
            T
            B

            22
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors