fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. ItzShahzad.X
    3. Posts
    • Profile
    • Following 1
    • Followers 1
    • Topics 3
    • Posts 36
    • Best 0
    • Controversial 1
    • Groups 0

    Posts made by ItzShahzad.X

    • RE: why the robob dont work for manually opened positions?

      @behrouz1354 try This
      https://fxdreema.com/shared/okTmb1vQc

      posted in Questions & Answers
      ItzShahzad.X
      ItzShahzad.X
    • RE: why the robob dont work for manually opened positions?

      @behrouz1354 It is only used for trade management, If our psychology is not strong, this Robot will automatically manage the trade

      posted in Questions & Answers
      ItzShahzad.X
      ItzShahzad.X
    • RE: why the robob dont work for manually opened positions?

      @behrouz1354 bro please shear with me

      posted in Questions & Answers
      ItzShahzad.X
      ItzShahzad.X
    • RE: Development

      @Domas1988 https://t.me/Itzshahzad

      posted in Questions & Answers
      ItzShahzad.X
      ItzShahzad.X
    • RE: Development

      @Domas1988 come DM please

      posted in Questions & Answers
      ItzShahzad.X
      ItzShahzad.X
    • RE: delete pending when trade closed

      @MT4stefano On Trade > Trade closed > Delete pending orders
      Screenshot 2024-10-10 192902.png

      posted in Questions & Answers
      ItzShahzad.X
      ItzShahzad.X
    • RE: optimization fail with object

      @dabidabi Please send your project link

      posted in Questions & Answers
      ItzShahzad.X
      ItzShahzad.X
    • RE: create ea hege

      @huythai If you want to make Fxdreema, watch this video

      1. https://www.youtube.com/watch?v=CHRKnHKMbDg&t=6s&pp=ugMICgJlcxABGAHKBRFyZWNvdmVyeSBmeGRyZWVtYQ%3D%3D

      2. https://www.youtube.com/watch?v=nRAZQHeRI-8&t=12s&pp=ugMICgJlcxABGAHKBRFyZWNvdmVyeSBmeGRyZWVtYQ%3D%3D

      posted in Questions & Answers
      ItzShahzad.X
      ItzShahzad.X
    • RE: create ea hege

      @huythai I made this by coding MQL5

      posted in Questions & Answers
      ItzShahzad.X
      ItzShahzad.X
    • RE: create ea hege

      @huythai like this ? ⤵

      Screenshot 2024-09-25 230925.png

      posted in Questions & Answers
      ItzShahzad.X
      ItzShahzad.X
    • RE: Telegram to MT5 order

      @PlugPong Sir i don't have any idea about FxDreema can make it mandatory by coding in MQL5

      posted in Questions & Answers
      ItzShahzad.X
      ItzShahzad.X
    • RE: Telegram to MT5 order

      @PlugPong That is, you want to send an order from Telegram in mt5?

      posted in Questions & Answers
      ItzShahzad.X
      ItzShahzad.X
    • RE: This what i need help with

      @Domas1988 Sir, your point is fine, but tell us what strategy we should use

      posted in Questions & Answers
      ItzShahzad.X
      ItzShahzad.X
    • RE: This what i need help with

      @Domas1988 yes

      posted in Questions & Answers
      ItzShahzad.X
      ItzShahzad.X
    • RE: This what i need help with

      @Domas1988 Sir I have invested a lot of time in your project but I have not found any error in it, I have tried a lot but can't find the error. If you like it, you can share the strategy with me so that I can Code again

      posted in Questions & Answers
      ItzShahzad.X
      ItzShahzad.X
    • RE: This what i need help with

      @ItzShahzad-X ```
      //+------------------------------------------------------------------+
      //| neuro-example.mq5 |
      //| Copyright 2012, MetaQuotes Software Corp. |
      //| http://www.mql5.com |
      //+------------------------------------------------------------------+
      #property copyright "Copyright 2012, MetaQuotes Software Corp."
      #property link "http://www.mql5.com"
      #property version "1.02"

      #include <Trade\Trade.mqh> // Include the library for trade execution
      #include <Trade\PositionInfo.mqh> // Include the library for position info

      //--- Input parameters
      input double w0 = 0.5; // Weight 0
      input double w1 = 0.5; // Weight 1
      input double w2 = 0.5; // Weight 2
      input double w3 = 0.5; // Weight 3
      input double w4 = 0.5; // Weight 4
      input double w5 = 0.5; // Weight 5
      input double w6 = 0.5; // Weight 6
      input double w7 = 0.5; // Weight 7
      input double w8 = 0.5; // Weight 8
      input double w9 = 0.5; // Weight 9

      input double TakeProfit = 50; // Take Profit in pips
      input double StopLoss = 50; // Stop Loss in pips

      //--- Variables
      int iRSI_handle; // RSI indicator handle
      double iRSI_buf[10]; // Buffer for RSI values

      double inputs[10]; // Array for normalized inputs
      double weight[10]; // Array for weights

      double out; // Output of the neuron

      string my_symbol; // Trading symbol
      ENUM_TIMEFRAMES my_timeframe; // Timeframe
      double lot_size; // Lot size for trades

      CTrade m_Trade; // Trade object
      CPositionInfo m_Position; // Position info object

      //+------------------------------------------------------------------+
      //| Expert initialization function |
      //+------------------------------------------------------------------+
      int OnInit()
      {
      my_symbol = Symbol(); // Current chart symbol
      my_timeframe = PERIOD_CURRENT; // Current timeframe
      lot_size = SymbolInfoDouble(my_symbol, SYMBOL_VOLUME_MIN); // Minimum lot size

      // Apply RSI indicator
      iRSI_handle = iRSI(my_symbol, my_timeframe, 14, PRICE_CLOSE);
      
      // Check if RSI handle is valid
      if (iRSI_handle == INVALID_HANDLE)
      {
          Print("Failed to get the indicator handle, Error: ", GetLastError());
          return INIT_FAILED;
      }
      
      // Add RSI indicator to chart and set buffer as time series
      ChartIndicatorAdd(ChartID(), 0, iRSI_handle);
      ArraySetAsSeries(iRSI_buf, true);
      
      // Initialize weights
      weight[0] = w0;
      weight[1] = w1;
      weight[2] = w2;
      weight[3] = w3;
      weight[4] = w4;
      weight[5] = w5;
      weight[6] = w6;
      weight[7] = w7;
      weight[8] = w8;
      weight[9] = w9;
      
      return INIT_SUCCEEDED;
      

      }

      //+------------------------------------------------------------------+
      //| Expert deinitialization function |
      //+------------------------------------------------------------------+
      void OnDeinit(const int reason)
      {
      IndicatorRelease(iRSI_handle); // Release RSI handle
      // No dynamic memory to free for iRSI_buf
      }

      //+------------------------------------------------------------------+
      //| Expert tick function |
      //+------------------------------------------------------------------+
      void OnTick()
      {
      // Copy latest 10 RSI values into the buffer
      if (CopyBuffer(iRSI_handle, 0, 0, 10, iRSI_buf) <= 0)
      {
      Print("Failed to copy data from the indicator buffer, Error: ", GetLastError());
      return;
      }

      double d1 = 0.0, d2 = 1.0;
      double x_min = iRSI_buf[ArrayMinimum(iRSI_buf)];
      double x_max = iRSI_buf[ArrayMaximum(iRSI_buf)];
      
      // Normalize RSI values
      for (int i = 0; i < ArraySize(inputs); i++)
      {
          inputs[i] = (((iRSI_buf[i] - x_min) * (d2 - d1)) / (x_max - x_min)) + d1;
      }
      
      out = CalculateNeuron(inputs, weight); // Calculate neuron output
      
      double currentPrice = SymbolInfoDouble(my_symbol, SYMBOL_BID);
      double tpPrice, slPrice;
      
      if (out < 0.5)
      {
          // Close any existing Sell position
          if (m_Position.Select(my_symbol))
          {
              if (m_Position.PositionType() == POSITION_TYPE_SELL)
                  m_Trade.PositionClose(my_symbol);
              if (m_Position.PositionType() == POSITION_TYPE_BUY)
                  return; // Do nothing if a Buy position exists
          }
      
          // Buy setup
          tpPrice = currentPrice + (TakeProfit * _Point);
          slPrice = currentPrice - (StopLoss * _Point);
          m_Trade.Buy(lot_size, my_symbol, slPrice, tpPrice);
      }
      else if (out >= 0.5)
      {
          // Close any existing Buy position
          if (m_Position.Select(my_symbol))
          {
              if (m_Position.PositionType() == POSITION_TYPE_BUY)
                  m_Trade.PositionClose(my_symbol);
              if (m_Position.PositionType() == POSITION_TYPE_SELL)
                  return; // Do nothing if a Sell position exists
          }
      
          // Sell setup
          tpPrice = currentPrice - (TakeProfit * _Point);
          slPrice = currentPrice + (StopLoss * _Point);
          m_Trade.Sell(lot_size, my_symbol, slPrice, tpPrice);
      }
      

      }

      //+------------------------------------------------------------------+
      //| Neuron calculation function |
      //+------------------------------------------------------------------+
      double CalculateNeuron(double &x[], double &w[])
      {
      double NET = 0.0;
      for (int n = 0; n < ArraySize(x); n++)
      {
      NET += x[n] * w[n]; // Calculate weighted sum
      }

      return ActivateNeuron(NET); // Activation function
      

      }

      //+------------------------------------------------------------------+
      //| Activation function |
      //+------------------------------------------------------------------+
      double ActivateNeuron(double x)
      {
      return 1.0 / (1.0 + exp(-x)); // Sigmoid function
      }

      posted in Questions & Answers
      ItzShahzad.X
      ItzShahzad.X
    • RE: This what i need help with

      @Domas1988 Here is the source code of Gup and I have added take profit and stop Loss 1.mq5
      Screenshot 2024-09-17 225944.png

      posted in Questions & Answers
      ItzShahzad.X
      ItzShahzad.X
    • RE: This what i need help with

      @Domas1988 Sir i have added take profit and stop loss in it but tell me how it works ?

      posted in Questions & Answers
      ItzShahzad.X
      ItzShahzad.X
    • RE: This what i need help with

      @Domas1988 Only add TP or SL system ?

      posted in Questions & Answers
      ItzShahzad.X
      ItzShahzad.X
    • RE: All Comment add on the chart ?

      @VHV-Profit-Masters This was done by mistake 😖

      posted in Questions & Answers
      ItzShahzad.X
      ItzShahzad.X
    • 1
    • 2
    • 1 / 2