fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. windsor-2003
    3. Topics
    W
    • Profile
    • Following 4
    • Followers 0
    • Topics 8
    • Posts 23
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by windsor-2003

    • W

      Help Needed: Heiken Ashi + SMA Pullback Strategy (Up to 4 Bear Candles)
      Questions & Answers • • windsor-2003

      2
      0
      Votes
      2
      Posts
      68
      Views

      l'andorrà

      In block ID 1 you selected the HA close price instead of the low price, as requested by your strategy. On the other hand, I don't see how your logic can look for pullback condition up to 4 candles. Shouldn't you use 4 conditions blocks instead of 2 like now, one for each possible candle?

    • W

      How to calculate basket Break-Event price (weight average) by using ATR?
      Questions & Answers • • windsor-2003

      2
      0
      Votes
      2
      Posts
      77
      Views

      vish

      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;
      }
      }

    • W

      How to use ZigZag indicator to measure and store swing distance (in pips)?
      Questions & Answers • • windsor-2003

      4
      0
      Votes
      4
      Posts
      166
      Views

      l'andorrà

      You're welcome.

    • W

      Block BUYS & Reinforce SELLS on ZigZag High Break
      Questions & Answers • @l-andorrà • • windsor-2003

      7
      0
      Votes
      7
      Posts
      453
      Views

      l'andorrà

      You're welcome.

    • W

      Help Building “Cumulative Wins Strategy – Equal Risk/Reward” EA
      Questions & Answers • • windsor-2003

      5
      0
      Votes
      5
      Posts
      252
      Views

      l'andorrà

      @windsor-2003 You're welcome. 😉

    • W

      How to store the highest and lowest point from indicator?
      Questions & Answers • landorrà • • windsor-2003

      8
      0
      Votes
      8
      Posts
      588
      Views

      l'andorrà

      You're welcome.

    • W

      How to use Turn Off Block?
      Questions & Answers • @l-andorrà • • windsor-2003

      4
      0
      Votes
      4
      Posts
      384
      Views

      l'andorrà

      @windsor-2003 You're welcome.

    • W

      "How to Implement Partial Close at +20 Pips and Trailing Stop in FXDreema?"
      Questions & Answers • • windsor-2003

      6
      0
      Votes
      6
      Posts
      390
      Views

      l'andorrà

      You're welcome. Sadly I don't have time for proper social media management. However, you cvan contact me through the forums whenever you need.

    • 1 / 1