fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. alexitoeve50
    3. Topics
    A
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 19
    • Best 1
    • Controversial 0
    • Groups 0

    Topics created by alexitoeve50

    • A

      Backtesting Always slow
      Questions & Answers • • alexitoeve50

      4
      0
      Votes
      4
      Posts
      207
      Views

      l'andorrà

      @alexitoeve50 IMHO, hat will never happen. We can use fxDreema precisely because it is using A LOT of unnecessary code. Just take a look at the condition block. You can select a huge number of combinations within. The prece to pay for that is more than 3000 code lines. And that's just one only condition blocks. Now multiply that for every other condition block on your project.

    • A

      custom function
      Questions & Answers • • alexitoeve50

      6
      0
      Votes
      6
      Posts
      614
      Views

      jstap

      The way I do this is like Roar has said, but I ask Chat GPT to tell me what to add, I will add an example:
      I say this is an example of what I add to sections to create a maximise screen in my MT4 code.
      in the on tick section I use this:
      // Example usage: maximize the window
      SetWindowState(SW_SHOWMAXIMIZED);
      ~next~

      In the custom function section I use this:
      void SetWindowState(int desiredState) {
      int hWnd = WindowHandle(Symbol(), Period());
      int parent = GetParent(hWnd);

      // Check current state using WinUser32.mqh functions bool isMaximized = IsZoomed(parent); bool isMinimized = IsIconic(parent); if (desiredState == SW_SHOWMAXIMIZED && !isMaximized) { ShowWindow(parent, SW_SHOWMAXIMIZED); } else if (desiredState == SW_SHOWMINIMIZED && !isMinimized) { ShowWindow(parent, SW_SHOWMINIMIZED); } else if (desiredState == SW_RESTORE && (isMaximized || isMinimized)) { ShowWindow(parent, SW_RESTORE); }

      }
      In the global variables section I use this:
      #include <WinUser32.mqh>
      #import "user32.dll"
      int GetParent(int);
      int ShowWindow(int, int);
      #define SW_SHOWMAXIMIZED 3
      #define SW_SHOWMINIMIZED 6
      #define SW_RESTORE 9
      #import

      Use this set-up and create a code that does this "Choose what you would like to create". It may take a few corrections but using this you can create blocks doing what you like...

    • A

      Source file and ex4 or ex5 not downloding to expert folder anymore
      Questions & Answers • • alexitoeve50

      7
      0
      Votes
      7
      Posts
      428
      Views

      A

      @jstap Really appreciate your contribution. Thank you

    • A

      Check Profit Last closed
      Questions & Answers • • alexitoeve50

      2
      0
      Votes
      2
      Posts
      338
      Views

      l'andorrà

      @alexitoeve50 Maybe this is not the best structure to use. What do you exactly need? If I understand correcty, as soon as a trades is closed with that profit...more trades should be closed regrdless theur profit/loss? I'm afraid I don't see the logic behind that.

    • A

      Indicator work on a particular Time Frame
      Questions & Answers • • alexitoeve50

      11
      0
      Votes
      11
      Posts
      988
      Views

      N

      @alexitoeve50 SHARE LINK

    • A

      Get each open price value of opened trades
      Questions & Answers • • alexitoeve50

      6
      0
      Votes
      6
      Posts
      544
      Views

      jstap

      @alexitoeve50 you welcome

    • 1 / 1