fxDreema

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

    RESTART EA AFTER NO TRADES OPEN

    Questions & Answers
    2
    10
    2750
    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.
    • K
      keydcuk last edited by

      Hi,

      I have just developed an EA with fxdreema that is pretty successful. However there is something that is stopping me from making a bit more profit than I could.

      I am using round numbers at 200 pips apart and taking profit at 100 pips in a cumulative sense of sum all profits and convert to pips.

      The issue that I am having is that once trades are closed, the round numbers will only activate new positions at the next 200 pip level above or below the last closed profit position and not in the middle.

      Is there a configuration I can use that will help me open the trades that are not opening? What I figure is some sort of arrangements of blocks or a block that will reset the EA when no positions are open.

      I attach screenshots of both chart and fxdreema EA configuration.

      Many Thanks & Best Regards,

      Daniel

      ......
      Screenshot_1.png
      Screenshot_2.png

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

        Maybe your round numbers distance is too big. You have the value of 2 now and this is set to be Price fraction. By Price fraction I mean value like 0.0002 (for EURUSD)

        1 Reply Last reply Reply Quote 0
        • K
          keydcuk last edited by

          __Maybe your round numbers distance is too big. You have the value of 2 now and this is set to be Price fraction. By Price fraction I mean value like 0.0002 (for EURUSD)[/quote:uzqvwbly]

          No, 200 pip grid is definitely what I am working with. What about if I set the EA to have a block on top to say "once a day", would that possibly be solving my problem of it not trading the same round numbers value? What it is is that it needs to go to the next round value, step up or step down, and then it will re-trade that level. Otherwise, it is not trading it in the range even after TPs have been hit.

          I'm at a bit of a stump. I just need the level to open trades again once TPs have been taken. I open a BUY/SELL on each level.

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

            But if you put one more block above, this will further limit the possibility to run those Buy/Sell blocks. Even now I would expect to see more that two trades, but something appears to be wrong. I think that what is wrong is the size of the distance. I don't know your exact value, because even if it says 2.0, you have this as an input parameters. But if it's 2.0, then it's already too big. Your prices are like 159.016, which means that you should enter value like 0.010 or 0.1 or something like this, something lower than 1.

            1 Reply Last reply Reply Quote 0
            • K
              keydcuk last edited by

              __But if you put one more block above, this will further limit the possibility to run those Buy/Sell blocks. Even now I would expect to see more that two trades, but something appears to be wrong. I think that what is wrong is the size of the distance. I don't know your exact value, because even if it says 2.0, you have this as an input parameters. But if it's 2.0, then it's already too big. Your prices are like 159.016, which means that you should enter value like 0.010 or 0.1 or something like this, something lower than 1.[/quote:1n6qjm4b]

              Definitely not. I am using the round numbers block off the PC.
              It is not the website version. As I understand this round numbers work like this.

              For JPY pairs
              0.01 = 1 pip
              0.10 = 10 pips
              1.0 = 100 pips

              I am using 2.0 to get a 200 pip grid for market orders.

              Most other pairs for example the EURUSD
              0.0001 = 1 pip
              0.0010 = 10 pips
              0.0100 = 100 pips

              The reason there are few trades is because I have put it through strategy tester only to show a chart.

              It's not about the round numbers settings. It is about on a round number, I open a buy and a sell trade at the same time. The level dos not exhibit any more trades while there is a sell or a trade at that number as I would expect as my block has 2 connections, one for buy and one for sell. BUT, when I TP 100 pips in the up move and 100 pips in the down move, then there is no reason for round numbers not to open another buy/sell position at that same level. What it does instead, it won't use that round number for any open trades until it has opened another trade at the round number position that is above or below the previous one that I am trying to get to trigger. It's as if that number position can only trade once until it hits a different round number and returns to the original. What I am wanting it to do is once the trades have closed at profit, that it would re-trade that position without having to touch another round number above or below that level.

              Having said all this, I am simply seeking a method that will re-initialize the EA once it has taken a TP. If I knew what block or sequence of blocks that can re-initialize the EA as if I had just dropped it first on the chart, that would be good. At least then, I can play around with this so that I can decide at what point I want the EA to reinitialize.

              Thanks for your help.

              Daniel

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

                Why don't you switch to the Pips option instead of Price fraction. It's a long story, but for the chart in your screenshot I think that 1 pip is 0.001, not 0.01.

                So, Round numbers detector should do something on each new level. I don't remember fixing that block soon and I think that the block is not buggy in the desktop version. But I don't know what else can be. If these blocks from the screenshot are under "on Tick" and if this is an EA, not a script, it should work. But first make sure that Round numbers detector is doing what you want. I would connect it with some Draw Arrow blocks to see the levels at which it gives me signals. And I did that in the web version... looks as I expected.

                Again, try with Pips

                1 Reply Last reply Reply Quote 0
                • K
                  keydcuk last edited by

                  __Why don't you switch to the Pips option instead of Price fraction. It's a long story, but for the chart in your screenshot I think that 1 pip is 0.001, not 0.01.

                  So, Round numbers detector should do something on each new level. I don't remember fixing that block soon and I think that the block is not buggy in the desktop version. But I don't know what else can be. If these blocks from the screenshot are under "on Tick" and if this is an EA, not a script, it should work. But first make sure that Round numbers detector is doing what you want. I would connect it with some Draw Arrow blocks to see the levels at which it gives me signals. And I did that in the web version... looks as I expected.

                  Again, try with Pips[/quote:3dbyuc63]

                  Ok, despite thinking this will do the same thing. I will do a web version of the EA and set round numbers to pips. I hope it does solve the problem. I have a negative outlook at the moment.

                  Thanks for all your help.

                  Daniel

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

                    Well, if something does not work on the web version, give it to me to test it and tell me what should I expect. Because honestly, I don't really know what you are actually doing. I just connected Round numbers detector with other blocks in my Desktop version and as I expected, I got signals here and there.
                    Also, from your HGI project that is now in your profile I have this as a result:
                    http://prntscr.com/av8rv1
                    ... obviously, I have more than 2 initial trades and my picture does not look like yours

                    1 Reply Last reply Reply Quote 0
                    • K
                      keydcuk last edited by

                      I'm not sure you understood what I meant by no trades opening. Yes, there are trades opening. The scenario I am explaining is it doesn't re-trade the levels that have been closed unless it goes a grid step above or below what has been closed, then it will re-trade that level.

                      This is what I was pointing out by my initial screenshot.

                      Is there a way to reset the EA as if it was first dropped on the charts? This I know is the solution to my problem. After closed trades, I want it to do a general reset. That is all. Sorry to be so lengthy with this. I know the solution, just don't know if fxdreema can program the execution.

                      Thanks, Your software is amazing!

                      Daniel

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

                        Reading "It doesn't...." I understand that this is the way it is right now and it needs to be other way. I also assume that the screenshot shows the problem.

                        Ok, this is what I have -
                        https://fxdreema.com/shared/iJnetfkZb
                        http://prntscr.com/avhp7w
                        http://i.imgur.com/a0g0VaZ.png

                        You can see the price labels. They represent the signals that the block produce. Tell me which label you don't want to appear? Or which arrow you expect to appear, but it doesn't?

                        (it's funny how the golden labels ends with 001, this is probably some bug and I will fix it later)

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

                        Online Users

                        P
                        A
                        A
                        X
                        K
                        F

                        24
                        Online

                        146.7k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors