fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. jonatassantanacaje
    3. Posts
    J
    • Profile
    • Following 3
    • Followers 0
    • Topics 5
    • Posts 15
    • Best 1
    • Controversial 0
    • Groups 0

    Posts made by jonatassantanacaje

    • RE: Problem when using more than one graph

      @jstap right, but when it comes to calculating profit, it uses the balance value + constant (TP_Money), if a pair already has low equity and I open another pair, the profit value of that other pair will have to be much higher compared to to the value of the constant...

      exemple...

      I start the EA on the EURUSD pair, Balance $1000 + Constant (TP_Money) $50...

      My profit will only be realized when the equity reaches $1050 right...

      Let's say my Equity drops to $850 and I start another operation in gold for GBPUSD, the balance value will still be at $1000, so the GBPUSD operation will only close after I make $100 in profit instead of $50.

      posted in Questions & Answers
      J
      jonatassantanacaje
    • Problem when using more than one graph

      https://fxdreema.com/shared/DecAIEigd

      How can I use this EA independently from other pairs? Your balance and equity checking system will close all simultaneous operations...

      posted in Questions & Answers
      J
      jonatassantanacaje
    • RE: Equity Protector

      I don't know the reason, but now it's working correctly, it waits for all operations to close and then disables algotrading

      https://fxdreema.com/shared/RGgMbPFqd

      posted in Questions & Answers
      J
      jonatassantanacaje
    • RE: Equity Protector

      @jstap I need to close all open negotiations

      posted in Questions & Answers
      J
      jonatassantanacaje
    • Equity Protector

      I am doing this capital protector, its function is to close all open operations and shut down Algotrading.

      The problem is, before he can fill all open orders, algotrading is being deactivated, leaving orders open, how do I solve it?

      https://fxdreema.com/shared/YN4rngST

      posted in Questions & Answers
      J
      jonatassantanacaje
    • RE: Help - Custom MQL Code

      Thank you very much @willramsey
      Everything is working properly 🙏

      posted in Questions & Answers
      J
      jonatassantanacaje
    • RE: Help - Custom MQL Code

      @willramsey I don't need all the functions working, I just gave examples, whichever is easier to do will be ideal for me.

      Turn off automation or close all windows

      posted in Questions & Answers
      J
      jonatassantanacaje
    • RE: Help - Custom MQL Code

      @willramsey Hello, thank you for your attention, I need to turn off ALGOTRADING, because I have about 5 robots open at the same time on different charts, and all of them have to stop trading at the same time.

      posted in Questions & Answers
      J
      jonatassantanacaje
    • RE: Help - Custom MQL Code

      @jstap

      //--- importing required dll files
      #include <WinUser32.mqh>
      #import "user32.dll"
      int GetAncestor(int, int);
      #define MT4_WMCMD_EXPERTS  33020
      #import
      
      //+------------------------------------------------------------------+
      //|                                                                  |
      //+------------------------------------------------------------------+
      void SetAlgoTradingTo(bool trueFalse) {
          //--- getting the current status
          bool currentStatus = IsTradeAllowed();
          //--- if the current status is equal to input trueFalse then, no need to toggle auto-trading
          if(currentStatus != trueFalse) {
              //--- Toggle Auto-Trading
              int main = GetAncestor(WindowHandle(Symbol(), Period()), 2/*GA_ROOT*/);
              PostMessageA(main, WM_COMMAND,  MT4_WMCMD_EXPERTS, 0 );//Toggle Expert Advisor button
          }
      }
      
      posted in Questions & Answers
      J
      jonatassantanacaje
    • RE: Help - Custom MQL Code

      @jstap @l-andorrĂ  @fxDreema

      posted in Questions & Answers
      J
      jonatassantanacaje
    • Help - Custom MQL Code

      Does anyone know any MQL code to be included in my project through (Custom MQL Code)?

      Any of the 3 functions will serve:

      • Turn off Automated Trading.
      • Close all graphics windows.
      • Or even close the MT4 platform completely.

      I have an EA that works on several different pairs at the same time, and if the DD reaches a certain amount of losses (Equity), this protector of mine will close all trades and prevent new trades from being opened.

      My Project: I actually copied it from another project here on the forum and I'm modifying it...

      https://fxdreema.com/shared/rTREhxBTb

      posted in Questions & Answers
      J
      jonatassantanacaje
    • RE: Different Martingale

      As the price goes against it..
      Example:
      I entered with a buy with no stoploss 0.01
      Walked 15 pips account, open a new order with the same initial lot 0.01

      But I wanted to with this sequence of entries:
      0.01/0.01/0.01/0.01/0,01/0.02/0.02/0.02

      posted in Questions & Answers
      J
      jonatassantanacaje
    • RE: Different Martingale

      Alguém??

      posted in Questions & Answers
      J
      jonatassantanacaje
    • Different Martingale

      Hello, how can I change the martingale of this EA?
      Currently he is opening another order only when the first one reaches the stop loss.
      I need a Martingale without stop loss, which adds orders every 15 pips.
      (preferably, repeat the initial lot 4x before doubling) with an optional constant of 15 or 100 pips (I think it's called a step lot)

      https://fxdreema.com/shared/6XS8U26Mb

      posted in Questions & Answers
      J
      jonatassantanacaje
    • 1 / 1