fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. vish
    3. Posts
    • Profile
    • Following 8
    • Followers 9
    • Topics 60
    • Posts 219
    • Best 11
    • Controversial 1
    • Groups 0

    Posts made by vish

    • RE: How to calculate basket Break-Event price (weight average) by using ATR?

      Try this Custom Code Block (mql4)

      First Go to Variables tab, define:

      basketPrice = 0
      basketLots = 0
      basketBE = 0
      atrValue = 0
      isBuyBasket = 1

      Then use this code in a custom code block

      // Reset values
      basketPrice = 0;
      basketLots = 0;
      basketBE = 0;
      atrValue = 0;
      isBuyBasket = 1; // Assume BUY by default

      int buyCount = 0;
      int sellCount = 0;

      // Loop through open trades (current symbol only)
      for (int i = OrdersTotal() - 1; i >= 0; i--) {
      if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) {
      if (OrderSymbol() != Symbol()) continue;

        int type = OrderType();
        if (type == OP_BUY || type == OP_SELL) {
           basketPrice += OrderOpenPrice() * OrderLots();
           basketLots += OrderLots();
      
           if (type == OP_BUY) buyCount++;
           if (type == OP_SELL) sellCount++;
        }
      

      }
      }

      // Avoid division by zero
      if (basketLots > 0) {
      basketPrice = basketPrice / basketLots;
      atrValue = iATR(Symbol(), 0, 14, 0); // ATR(14)

      // Determine direction
      isBuyBasket = (buyCount >= sellCount) ? 1 : 0;

      // Calculate Basket BE
      if (isBuyBasket == 1) {
      basketBE = basketPrice + atrValue;
      } else {
      basketBE = basketPrice - atrValue;
      }
      }

      posted in Questions & Answers
      vish
      vish
    • RE: Trademanager for MT5 Mobile

      @Domeonline I see

      posted in Questions & Answers
      vish
      vish
    • RE: Trademanager for MT5 Mobile

      Do fxdreema EAs work on the mt5 mobile app?

      posted in Questions & Answers
      vish
      vish
    • RE: Close all

      image.png

      posted in Questions & Answers
      vish
      vish
    • RE: How to add a common TP price for a group of trades

      @urielacosta Calculate a weighted average price considering different prices and lot sizes and then add a TP in pips to this WA price which should be the common TP. But you need to do custom coding. I never tried that on fxdreema.

      posted in Questions & Answers
      vish
      vish
    • RE: MT5 Time frame is not giving the right figure

      Is what I have done wrong? Shouldn't I get 60 printed if I load the EA on H1 chart? I guess it's a bug.

      posted in Bug Reports
      vish
      vish
    • MT5 Time frame is not giving the right figure

      MT5 Timeframe is not giving the right figure from H1 above

      3261189d-60c0-47cc-bb9f-bea35ad7013c-image.png

      For instance above comment should show 60 on H1 but this is what it shows

      4bd79ea5-dfad-4914-b4a6-92121046339e-image.png

      Project: https://fxdreema.com/shared/24HiE65td

      Any other experiencing this?

      posted in Bug Reports
      vish
      vish
    • RE: 'PERIOD_CURRENT' - struct member undefined

      I am getting it again now

      posted in Bug Reports
      vish
      vish
    • RE: PERIOD CURRENT compiling error

      Yes I am getting it again now

      posted in Bug Reports
      vish
      vish
    • RE: 'PERIOD_CURRENT' - struct member undefined

      Yes it is fixed

      posted in Bug Reports
      vish
      vish
    • RE: PERIOD CURRENT compiling error

      looks like it is fixed now

      posted in Bug Reports
      vish
      vish
    • RE: Project randomly wont compile - PERIOD_CURRENT Undeclared?

      I am getting this error on MT4 EAs as well. All my past projects are affected from yesterday or so. I guess this is a bug.

      posted in Questions & Answers
      vish
      vish
    • 'PERIOD_CURRENT' - struct member undefined

      " 'PERIOD_CURRENT' - struct member undefined"

      I am getting this this compilation error on all my EAs which I used to compile previously without any issues. Is anyone else having this issue? This issue started from yesterday I guess.

      posted in Bug Reports
      vish
      vish
    • Support resistance zones

      How can we identify support and resistance zones (or supply and demand zones) without using custom indicators on fxdreema?

      posted in Questions & Answers
      vish
      vish
    • RE: History center bars imported

      @l-andorrà Yes it appears regardless of the broker. I think It comes when I use custom indicators in the EA

      posted in Questions & Answers
      vish
      vish
    • History center bars imported

      I get this message under the Journal tab continuously on almost all the EAs made with fxdreema.

      6030e2db-6f87-4d33-89fd-c385da840cc3-Screenshot_9.jpg

      Any idea why?

      posted in Questions & Answers
      vish
      vish
    • Time Filter not working on the daily timeframe

      I have noticed that the Time Filter not working on the daily timeframe. The block worked in other timeframes.

      Here is the project: https://fxdreema.com/shared/jizS28M1b

      7d7df159-e5e5-47a5-9f35-3d8f1bbb5d60-image.png

      Is anyone else having this issue?

      posted in Bug Reports
      vish
      vish
    • RE: Ex4 files can't be imported

      I have never seen an option to import ex4, at least for last few years.

      posted in Bug Reports
      vish
      vish
    • RE: SL as a percentage of account balance

      @l-andorrà said in SL as a percentage of account balance:

      @vish That could do it but inly if you select a value of 2000% instead. If you do some research on the forum you'll find that this option need ridiculously high values to work correctly.

      You mean its a bug in fxdreema?

      posted in Questions & Answers
      vish
      vish
    • RE: are experiencing the same?

      Yes it is way too slow than it used t be

      posted in Questions & Answers
      vish
      vish
    • 1
    • 2
    • 3
    • 4
    • 5
    • 10
    • 11
    • 1 / 11