fxDreema

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

    Topics created by jonatassantanacaje

    • J

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

      4
      0
      Votes
      4
      Posts
      200
      Views

      jstap

      You will need to use groups, or symbol-specific positions to work out profit, you could get the symbol name when a position is placed and then use this in a bucket block to get the values.

    • J

      Equity Protector
      Questions & Answers • • jonatassantanacaje

      5
      0
      Votes
      5
      Posts
      257
      Views

      J

      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

    • J

      Help - Custom MQL Code
      Questions & Answers • • jonatassantanacaje

      30
      0
      Votes
      30
      Posts
      4242
      Views

      N

      To round off just in case the good work of the previous ones, if we want to activate it it's the same but adding the '!' to the conditional:

      <<Global variables>>
      #include <WinAPI/winapi.mqh>
      #include <WinAPI/winuser.mqh>
      #define MT_WMCMD_EXPERTS 32851
      #define WM_COMMAND 0x0111
      #define GA_ROOT 2

      <<Settings>>
      if (!TerminalInfoInteger(TERMINAL_TRADE_ALLOWED)){

      HANDLE hchart = ChartGetInteger(ChartID(), CHART_WINDOW_HANDLE); HANDLE hmt = GetAncestor(hchart, GA_ROOT); PostMessageW(hmt, WM_COMMAND, MT_WMCMD_EXPERTS, 0);

      }

    • J

      Different Martingale
      Questions & Answers • • jonatassantanacaje

      6
      0
      Votes
      6
      Posts
      231
      Views

      l'andorrà

      @jonatassantanacaje Morpheus is right. You will need a variable counting how many open trades are having/had that lot size. You'll need a 'For each trade' block.

    • 1 / 1