fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. roar
    3. Posts
    • Profile
    • Following 0
    • Followers 184
    • Topics 35
    • Posts 2406
    • Best 422
    • Controversial 6
    • Groups 0

    Posts made by roar

    • RE: Total profit reduces by x % then close everything.

      It should work technically, but the logic is now so that there must be profit in order to make anything happen - otherwise the ea just waits and hopes the profit to show up 😄
      Try with an SL

      posted in Questions & Answers
      roar
      roar
    • RE: Total profit reduces by x % then close everything.

      I modified it to work with profit, which, I think, you wanted in the first place
      here: https://fxdreema.com/shared/c2mQcANde

      posted in Questions & Answers
      roar
      roar
    • RE: Total profit reduces by x % then close everything.

      Mine works now, it closes trades when equity drops 10%...
      0_1500476938147_upload-015e1610-2eb0-44cc-9b6b-68517d5af53d

      posted in Questions & Answers
      roar
      roar
    • RE: Total profit reduces by x % then close everything.

      Oh, sorry didn't know that 😄
      Yes, youre right

      posted in Questions & Answers
      roar
      roar
    • RE: Total profit reduces by x % then close everything.

      This method doesn't actually precisely answer to your question, because it works with account equity, not profit. But with some changes, the method can be applied to the profit, loss or anything you want

      posted in Questions & Answers
      roar
      roar
    • RE: Total profit reduces by x % then close everything.

      After closing the trades, you need to reset the maxprofit to 0 - otherwise the logic works only one time.
      Check how I did the resetting in https://fxdreema.com/shared/6FWqaYX2b
      Block #5

      posted in Questions & Answers
      roar
      roar
    • RE: Total profit reduces by x % then close everything.

      Aaa, I found the problem!

      posted in Questions & Answers
      roar
      roar
    • RE: Total profit reduces by x % then close everything.

      Ah, I use mt5 myself and comment works fine.

      No, the comment block is just for you, for debugging

      posted in Questions & Answers
      roar
      roar
    • RE: Total profit reduces by x % then close everything.

      In condition five, I set the Ratio to be lower than 0.9 - check your terminal that the value (inp4_value) really is 0.9. You can also try some different ratio value, maybe that helps.
      Does it close everything constantly, if you disable the whole variable block tree?

      posted in Questions & Answers
      roar
      roar
    • RE: Total profit reduces by x % then close everything.

      Hmm, did you use the comment block, to view how the variables change?

      Care to share the project so I can check

      posted in Questions & Answers
      roar
      roar
    • RE: Total profit reduces by x % then close everything.

      Yes, thats how you set them up.
      You dont usually need to give them any values different than 0, because the ea updates them anyway

      And the names "maxprofit" and "Ratio" are just pulled from the hat, the code doesn't really care what you name them of course 😄

      posted in Questions & Answers
      roar
      roar
    • RE: Total profit reduces by x % then close everything.

      It's useful to see what the variables are at each moment - the comment block is for that

      posted in Questions & Answers
      roar
      roar
    • RE: Total profit reduces by x % then close everything.

      Here:
      fxdreema.com/shared/6FWqaYX2b

      posted in Questions & Answers
      roar
      roar
    • RE: Total profit reduces by x % then close everything.

      Haha, okay, I see 😄

      Wait a moment, I'll build them.

      Variables are some values, like constants, that store numbers

      Formula is just basic calculating, plus minus multiply divide

      I also avoided using variables for years because I didn't want to understand them 😄

      posted in Questions & Answers
      roar
      roar
    • RE: Several open positions and several different take profits

      You using mt5 or mt4.

      I think mt5 has only one stop-loss, but you can always set an opposing order: when you buy at lower BB, open a sell limit order at BB midline or anywhere you want the "take-profit"

      posted in Questions & Answers
      roar
      roar
    • RE: Re: Testing pass stopped due to a critical error in the EA

      Check the mt5 journal tab, it should tell which line of the code fails. Then find the corresponding fxdreema block with the metaeditor

      posted in Bug Reports
      roar
      roar
    • RE: Scalping

      Theres a block, "check last closed position profit" or something

      posted in Questions & Answers
      roar
      roar
    • Give my variables eternal life

      My ea collects info from the chart for several hours before making a trade.
      The problem is, when I (accidentally) close the terminal, all variables disappear and the ea would start at 0.

      What is the best way to store the variables somewhere, so the newly started ea could load the previous variable values?

      posted in Questions & Answers
      roar
      roar
    • RE: Total profit reduces by x % then close everything.

      I would play with some variable:

      Variable maxprofit:
      condition: equity > maxprofit -> modify variable maxprofit to same as current equity

      if equity < maxprofit -> calculate the ratio with formula equity/maxprofit

      if formula result is, lets say lower than 0.9 (thats 10% decrease) -> close positions

      You then should reset the maxprofit to 0, to not mess up calculations in future

      I hope you get what I mean 😄

      posted in Questions & Answers
      roar
      roar
    • RE: ea stop making orders at 162000$

      You have to be more specific on the logic, mate.
      Share your ea link perhaps?

      posted in Questions & Answers
      roar
      roar
    • 1
    • 2
    • 116
    • 117
    • 118
    • 119
    • 120
    • 121
    • 118 / 121