fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. biez6900
    3. Posts
    B
    • Profile
    • Following 1
    • Followers 0
    • Topics 4
    • Posts 26
    • Best 2
    • Controversial 0
    • Groups 0

    Posts made by biez6900

    • RE: Calculate Weight Average Open Price

      `thanks deepseek, create a function here : https://fxdreema.com/studio and use that

      posted in Questions & Answers
      B
      biez6900
    • RE: Calculate Weight Average Open Price
      //| Fonction pour calculer le prix moyen pondéré par le volume       |
      //+------------------------------------------------------------------+
      double CalculateVolumeWeightedPrice()
      {
          double totalVolume = 0.0;      // Volume total des transactions
          double totalValue = 0.0;       // Valeur totale pondérée par le volume
      
          // Parcourir toutes les transactions de la position actuelle
          for (int i = 0; i < PositionsTotal(); i++)
          {
              // Sélectionner la position
              if (PositionGetTicket(i))
              {
                  double volume = PositionGetDouble(POSITION_VOLUME); // Volume de la transaction
                  double price = PositionGetDouble(POSITION_PRICE_OPEN); // Prix d'ouverture de la transaction
      
                  // Ajouter au volume total et à la valeur totale
                  totalVolume += volume;
                  totalValue += volume * price;
              }
          }
      
          // Éviter une division par zéro
          if (totalVolume == 0.0)
          {
            
              return 0.0;
          }
      
          // Calculer le prix moyen pondéré par le volume
          double volumeWeightedPrice = totalValue / totalVolume;
          return volumeWeightedPrice;
      }
      posted in Questions & Answers
      B
      biez6900
    • simple observation

      if you know when to play the breakout or the rebound, even the simplest of signals like the crossing of a moving average 20 can be enough to make hundreds of good trades

      posted in General Discussions
      B
      biez6900
    • RE: GAP EA F40 sell order stop

      thank you for taking the time to try to help me, it's nice

      posted in Bug Reports
      B
      biez6900
    • RE: GAP EA F40 sell order stop

      image.png
      I don't think it's useful, on the screen as in the project but as you can see I reversed it on the candle ID

      posted in Bug Reports
      B
      biez6900
    • RE: How to set number of trades per day

      I don't know, I do like that

      posted in Questions & Answers
      B
      biez6900
    • RE: Distant Between Band

      here we do not count the lower limit to the lower limit +1 but the difference between the deviation terminal 4 to the deviation terminal 2 and we look for a positive evolution, and by taking a step we avoid too weak evolution

      posted in Questions & Answers
      B
      biez6900
    • RE: GAP EA F40 sell order stop

      the robot waits for the first candle on the CAC40 to have passed (Timeframe M5) and places a stop/limit order on the high/low on the first candle of the day to hope to fill the gap/2 this makes it possible to avoid some gap of breakup

      posted in Bug Reports
      B
      biez6900
    • RE: Distant Between Band

      image.png yes jstep you are right about the answer you gave me, doing as would even be better

      posted in Questions & Answers
      B
      biez6900
    • RE: Distant Between Band

      it is however simple, the upper limit returns a price the lower limit also returns a price, I subtract the 2 with a formula block to measure the distance in price

      if you want to measure the evolution you do the same on x previous candle with a condition block which checks the evolution of the varialbe

      posted in Questions & Answers
      B
      biez6900
    • RE: How to set it as a constant?

      https://fxdreema.com/shared/jW6iU8y9 maybe ?

      posted in Questions & Answers
      B
      biez6900
    • RE: Distant Between Band

      https://fxdreema.com/shared/jWeTdUXTd its good ?

      posted in Questions & Answers
      B
      biez6900
    • RE: box

      https://fxdreema.com/shared/Xnq0u5Zfb its that ?

      posted in Questions & Answers
      B
      biez6900
    • RE: How to set number of trades per day

      https://fxdreema.com/shared/Xernslfxc

      posted in Questions & Answers
      B
      biez6900
    • RE: How to set it as a constant?

      create constant and remplace "5' by name of constant

      posted in Questions & Answers
      B
      biez6900
    • 1
    • 2
    • 1 / 2