fxDreema

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

    'Check proffit' and 'check winner type' blocks

    Questions & Answers
    2
    4
    650
    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.
    • D
      davids9317 last edited by

      Hi admin,
      thanks for fxdreema my subscription is working fine and all is good.

      I am trying to create a function in my EA where I don't trade after a winning trade. After a win I will stay out of the market and watch until a trade would have been a loss before trading again. I can do this easy by drawing lines instead of placing trades and monitoring the distance between current price and the line, then I know if the trade would have been a loss without actually trading.

      The problem is when I come to turn off the buy blocks to prevent trading, when I use the block 'Check last closed trade profit' it just passes every tick, I know this because I connected a sell to the output to check what was happening, the block does not wait for the close of a profitable trade it just passes straight away and on every tick. I tried using the 'Check last winner type' block and this works fine for for profitable buys, but for sells it passes every time a trade closes for winners and losers.

      Am I doing something wrong?

      Please see attached

      Thanks for your help and fxdreema is great!

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

        I think I can't get the idea. Trade only after loss, but don't trade after win... when you will want to start trading again? If it's based on time, like 5 hours after the last win, you can check that time before entering a new trade. Disabling blocks is probably not the best idea here.

        Something is not working with attachments, but I can see your project on your profile anyway. Which one is it?

        1 Reply Last reply Reply Quote 0
        • D
          davids9317 last edited by

          after every win i must skip one trade. The trade after a win has a lower probability of success. It is donchean channel breakout 2 on the web application.

          I can't use a time based filter as it could take a long or short time for a losing trade to come, after which i must activate trading again. On my project i monitor the trades by drawing lines and checking these so i can look at a trade that does not exist.

          Thanks for your help

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

            There is a block "Check last closed trade profit" with some filters inside. Also, using "For each Closed Trade" and some other pink blocks you can be even more specific

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

            Online Users

            B
            R
            F
            A
            R
            E
            H
            E
            M
            E
            N
            E

            20
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors