fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. rocker699
    3. Topics
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 38
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by rocker699

    • R

      Problem with Check Last closed type block
      Questions & Answers • • rocker699

      3
      0
      Votes
      3
      Posts
      916
      Views

      fxDreema

      I found a problem in the block (when using group numbers > 0) and I fixed it 🙂 But there are some other things as well...

      Here is an example that I think it works the way you want it to work, but without your indicators: https://fxdreema.com/shared/ObCwcbazb

      Note that I used two "Check..." blocks. It seems that I make this block so the yellow output is "otherwise" to the orange output and works every time when the orange output is not active, including the times when the orange output is inactive because of the "Pass once per trade" parameter. Maybe I should make is work like the EA that I'm showing now, like 2 blocks in 1, I don't know.

      In block 3 I used two group numbers, you will see this value - 0,1

      It's important that block 2 has lower ID number than block 3 here, because I want block 3 to run after block 2.

    • R

      Problem with check last closed trade profit code
      Questions & Answers • • rocker699

      42
      0
      Votes
      42
      Posts
      11710
      Views

      R

      it's working now. thanks 🙂

    • R

      Problem with sell orders
      Questions & Answers • • rocker699

      15
      0
      Votes
      15
      Posts
      2934
      Views

      fxDreema

      So, pending orders in time instead of price. I started thinking how can I do that, probably in blocks "Buy pending order" and "Sell pending order" with another options that makes it possible to delay the order with time and to execute it as a trade at the price whatever it will be in the future. But I'm still not sure about the consequences of this approach, because another blocks (like "No pending order exists") must be updated as well, and some driver needs to be added to detect the time to react, which will also slow down the backtesting a tiny bit.

      If it is a block like "Delay passing" which will allow the EA to continue working, then some more problems will be on the table, because there is no context here, it's something general. For example you can have "No trade is running -> Delay passing -> Buy now", but how will "No trade is running" know that we expect "Buy now" to be executed after some time? It will just continue passing and executing "Delay passing" over and over again, which will create multiple delays for the same thing and at the end we will end up with multiple "Buy now" executions. Again, this is in the general case when "Delay passing" is not aware what it controls.

      Because of that, and because it looks a little bit fancy (and who knows if others will need it), I will ask you for the exact situation that you want to work on. It happens very often someone to ask for A, but to want to achieve B that does not actually need A. And sometimes there are various ways to do something. So, with what time do you want to delay the signal? You know... if we talk for indicators only, and the signal you want to delay is something like 1 candle or few candles, then you can just check past candles for that signal and react at the moment, this is how things are done normally 🙂

    • 1 / 1