fxDreema

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

    Posts made by mark692

    • RE: How to construct a universal lot size calculation in fxDreema?

      @l-andorrà Thanks for the explanation. That makes sense.

      So just to clarify what I’m trying to achieve:

      I already use fxDreema blocks to get my Entry Line, Stop Loss Line, and my chosen risk percent.

      What I need is a way to correctly calculate the lot size for different markets (Forex pairs, Gold, maybe Crypto later).

      Right now, my calculation works for Gold (small difference) but for Forex pairs like EURUSD or GBPJPY the difference between my intended risk and the actual risk is still too big.

      I understand this needs a proper MQL calculation and then embedding into my fxDreema project. Does anyone here already have a working MQL snippet that:

      Calculates lot size based on SL distance, risk percent, and account balance.

      Works both for Forex pairs and Gold (XAUUSD / GOLD) without big differences in risk.

      Outputs the final value into a variable (like LotSize) so I can use it in fxDreema blocks afterwards.

      If someone can share a solid example (even simplified for Forex + Gold only), it would help me and probably others a lot.

      posted in Questions & Answers
      M
      mark692
    • How to construct a universal lot size calculation in fxDreema?

      Hi, I’m trying to build a universal lot size calculator in fxDreema and need help setting it up correctly.

      What I want:

      The EA should risk a fixed percent of account balance per trade (example: 2%).

      Risk is based on the distance between entry price and a stop loss line that I draw on the chart.

      From this risk and SL distance, I want the EA to calculate the correct lot size and store it into my variable LotSize.

      It should work on all markets: Forex pairs (including JPY), Gold, Crypto, and Indices.

      The issue:

      On Gold it looks close to correct,

      On Forex pairs sometimes it gives 0.00 or doesn’t match the expected risk,

      On Crypto (like XRPUSD) the risk is way off (much larger than intended).

      My question:
      👉 How should I construct this calculation in fxDreema so it works universally across symbols and always updates my LotSize variable correctly?

      Any examples of the exact blocks or formulas would be greatly appreciated.

      Thanks in advance 🙏

      posted in Questions & Answers
      M
      mark692
    • RE: is this a bug? or what? on counting open buy

      image.png

      posted in Questions & Answers
      M
      mark692
    • is this a bug? or what? on counting open buy

      c8a717cb-be8f-4b6d-819c-dd11f379893f-image.png

      Hello, I am trying to count the number of open Buy positions and save the result into a variable called Open_Buy_Count. Even if I only have 1 Buy trade open, the result in Open_Buy_Count becomes 2.

      posted in Questions & Answers
      M
      mark692
    • RE: count pip between two price

      thank you is it the same as in Gold?

      posted in Questions & Answers
      M
      mark692
    • count pip between two price

      guys can you help me. I need to get the pip count between two price. No the decimal value but the pip count only. thanks

      posted in Questions & Answers
      M
      mark692
    • Dealing with Broker-Specific Symbol Variations, How?

      I just want to ask how I can solve this. I am setting different pip counts for each pair. In the OnInit function, I set it like this, for example: if(_Symbol=="AUDNZD"){Pipstep=20;}

      My problem is that some brokers add letters and characters to the pair names, for example, AUDNZD.s, AUDNZDmic, AUDNZD#m. The problem is, the code doesn't assign the pip count to these pairs because they have additional characters with different brokers.

      posted in Questions & Answers
      M
      mark692
    • RE: Move horizontal line depending on the given price of ask

      i solved it i used the move block. thanks 🙂

      posted in Questions & Answers
      M
      mark692
    • RE: Move horizontal line depending on the given price of ask

      Thank you, but is theres a way that i can modify a horizontal line parameters?

      posted in Questions & Answers
      M
      mark692
    • Move horizontal line depending on the given price of ask

      hi I made a horizontal line in "On Init" and its plotted on ask price, I want it to move +5 pips of the ask price every time the ask price move. What block should I used? i cant find a block that would modify the current object on the chart. thank you

      posted in Questions & Answers
      M
      mark692
    • RE: buy or sell on the 13th candle of the period

      yes sir, a simulator 🙂

      posted in Questions & Answers
      M
      mark692
    • RE: buy or sell on the 13th candle of the period

      thank you sir! btw can i use this ea to a simulator like soft4fx? thanks

      posted in Questions & Answers
      M
      mark692
    • buy or sell on the 13th candle of the period

      is this possible in fxdreema? to buy on close of the 12th candle of the period if the the closing price is higher on the close of the 1st candle. and sell on the close of the 12th candle of the period if the closing price is lower than the first candle . thanks btw this is on 1hour timeframe

      posted in Questions & Answers
      M
      mark692
    • 1 / 1