fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Linas
    3. Posts
    L
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 13
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by Linas

    • RE: How to set Flag to true/false after consecutive losses?

      Yes, I did check it. Tried tried some experiments, but no luck.

      Closest to what I'm looking is this robot. It almost work: https://fxdreema.com/shared/dWf2q1lbd

      (I tried to incorporate your example into that "almost working robot" like this: https://fxdreema.com/shared/aPkR3pSad but then it is not working at all - what I see is "Flag" variable is updated by 11th block all the time)

      posted in Questions & Answers
      L
      Linas
    • RE: How to set Flag to true/false after consecutive losses?

      I will be glad to buy fxDreema subscription, but want to make sure that this kind of logic can be implemented. And if it will possible - I will want to create more complex robot on top of it where I will need much more connections. But seems this simple logic is not so simple to implement therefore I'm hesitating to go with subscription

      posted in Questions & Answers
      L
      Linas
    • RE: How to set Flag to true/false after consecutive losses?

      Thanks for help. And. Sorry, I don't get it.
      How to incorporate consecutive losses into it?

      The main purpose is to have possibility to - set after how many consecutive losses robot should start put opposite orders.

      posted in Questions & Answers
      L
      Linas
    • RE: How to set Flag to true/false after consecutive losses?

      Hi, just wonder is there anything else left to try in this path, or I need to go in total other way if I want to achieve what I'm seeking for?

      posted in Questions & Answers
      L
      Linas
    • RE: How to set Flag to true/false after consecutive losses?

      Here is the version with your suggestions: https://fxdreema.com/shared/7juuaLhOd
      I just left No Position blocks to filter Either Buy Or Sell, because otherwise it is opening both orders at once.

      The only issue left with this EA is shown in excel screenshot in previous comment.
      When I was looking visually into backtest, it seems that things happen in this sequence:

      1. Order closed with SL
      2. New order opened with old variable (though it should be opened as according new variable)
      3. Right after 2nd step (milliseconds pass) the variable is updated
      4. Next order is opened according new variable

      54925750-ee8b-4196-9f43-94e3ce22120b-image.png

      posted in Questions & Answers
      L
      Linas
    • RE: How to set Flag to true/false after consecutive losses?

      "No position" blocks (18 and 21) I think shouldn't be updated. I tried it, but somehow then both orders are opened at once every time the variable is updated.
      Position closed block - I have updated it. Sorry for missing it.

      And I got "interesting" results. It's very close, but something missing.
      The variable is updated (yey), but the update is lagging by one order.

      Tried to update sequence of blocks, tried to put everything in on Tick, and tried to put just position closed tree on tick - nothing worked. It is as close as never was, but still something missing

      1e44e73c-3b4b-4acc-8e71-3cdb06739855-image.png

      posted in Questions & Answers
      L
      Linas
    • RE: How to set Flag to true/false after consecutive losses?

      Still the same result
      Here it is: https://fxdreema.com/shared/BJdjOClC

      posted in Questions & Answers
      L
      Linas
    • RE: How to set Flag to true/false after consecutive losses?

      Moved the comment block.
      From it I see that my variable changes once and then it's not changing any more.

      I also tried to print on chart my variables every time variable is updated, but basically the result was the same - variable is updated just once.

      Not sure how to troubleshoot it further

      On trade
      e5dc9645-e87e-43cd-bb42-30fbd1c5ab40-image.png

      On tick
      9cc6f934-d521-4b62-8fa9-b257823b4d04-image.png

      posted in Questions & Answers
      L
      Linas
    • RE: How to set Flag to true/false after consecutive losses?

      Sure. I've updated and there is just one comment now https://fxdreema.com/shared/skrwkXjFb

      When backtesting still don't see it on chart

      image.png

      posted in Questions & Answers
      L
      Linas
    • RE: How to set Flag to true/false after consecutive losses?

      Created it. Tried to run a backtest, but it is not printing anything on chart.
      https://fxdreema.com/shared/g6rnT2kxb

      Or you have something else in mind?

      posted in Questions & Answers
      L
      Linas
    • RE: How to set Flag to true/false after consecutive losses?

      Thanks for your time to answer.
      Unfortunately.
      I have tried variables also and result is the same. Consecutive block is not updating it.

      how do you know what the value is?

      I see that it creates just SELL orders, which means that FLAG variable always stays the same (if it helps here is a link with variables instead of constants: https://fxdreema.com/shared/fm1emww6b)
      Normally I would add Comment inside Order settings to see how that order was created, though good idea with Comment block to visualise it on chart.

      But still, consequence block somehow is still not triggered.
      To be fair - variable is updated two times (15th block runs once and 14th block runs once) but after that variable is not updated any more. It was the same with FLAGS and with Constants.

      Any other ideas what could be wrong with my precious and a lot of nerves consuming robot : D ?

      ac0cb4e3-9ce4-4e60-9387-44fcff647945-image.png

      posted in Questions & Answers
      L
      Linas
    • RE: How to set Flag to true/false after consecutive losses?

      Tried to use "modify variables" and use Constants instead, but results are the same - Constants are still not updated.

      Can it be that "Consecutive losses" blocks should be modified, because it seems they are not triggered (specifically 14 block seems not to be triggered)?

      https://fxdreema.com/shared/DAmyHghlc
      image.png

      posted in Questions & Answers
      L
      Linas
    • How to set Flag to true/false after consecutive losses?

      Hi there,
      I'm trying to "Set Flag" to FALSE or to TRUE depending on which "Group" made consecutive losses. I thought it will be easy, but I can't figure it out 😅

      I have created an example:
      ad223bdd-5a68-4cb5-9a2a-e917e7c7f1c0-Screenshot from 2024-03-25 20-50-13.png
      Project link: https://fxdreema.com/shared/DPKkMvWxc

      In this example if SELL orders closes with loss - it should set flag to FALSE and BUY position should open.
      And vice versa, if BUY closes with loss - it should set flag to TRUE and SELL position should be opened.

      But in my tests Flag is not updated event for this simple robot.
      Could anybody advise what I'm doing wrong?

      posted in Questions & Answers
      L
      Linas
    • 1 / 1