fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. jstap
    3. Posts
    • Profile
    • Following 2
    • Followers 222
    • Topics 37
    • Posts 9382
    • Best 1086
    • Controversial 23
    • Groups 0

    Posts made by jstap

    • RE: How to code condition block for change % of an indicator

      It is a lot easier to use a fixed number -10 to -8 is +2, do you need a %?

      posted in Questions & Answers
      jstap
      jstap
    • RE: 关于网格挂单里面没有马丁类型的可以选择

      Need more information, how many trades per layer, does each layer interfere with trades placed on the previous layer?

      posted in General Discussions
      jstap
      jstap
    • RE: custom function

      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...

      posted in Questions & Answers
      jstap
      jstap
    • RE: Fibonacci retracement

      There is how to use Fibonacci in here: https://fxdreema.com/forum/topic/19269/using-fibonacci Hope you find it useful

      posted in Questions & Answers
      jstap
      jstap
    • RE: cross open candle today no work

      So you open a trade at a set time, then if within 3 hours, it has moved enough to win and the price crosses something you want to close and not place another trade until the next day?

      points(pips) = distance up or down
      ticks = a price change

      posted in Questions & Answers
      jstap
      jstap
    • RE: Fibonacci retracement

      Depends on how you have your EA set up, add a shared link and say what you are trying to do.

      posted in Questions & Answers
      jstap
      jstap
    • RE: Buy and Sell Alternately

      You can use flags or variables to stop EA from doing something until your conditions say taking a trade is viable.

      posted in Questions & Answers
      jstap
      jstap
    • RE: Past copy

      You can't copy them, you can copy a section and create another with the same words, alternatively download the MQ file, import it back into FX, and you will have an exact copy including all constants.

      posted in Questions & Answers
      jstap
      jstap
    • RE: Past copy

      That is how I copy and place blocs in the same project and onto others

      posted in Questions & Answers
      jstap
      jstap
    • RE: Past copy

      Highlight - right click - copy - right click - paste where you want

      posted in Questions & Answers
      jstap
      jstap
    • RE: cross open candle today no work

      I think expecting 300 pips in a tick is too much, so for now try with blocks that do not contain ticks, test and see if it works, then you know if it is using ticks that are stopping it from working

      posted in Questions & Answers
      jstap
      jstap
    • RE: Show initial deposit on the chart

      That would have only worked for MT5, not tested but this should do it: https://fxdreema.com/shared/crazi6ffc

      posted in Questions & Answers
      jstap
      jstap
    • RE: Show initial deposit on the chart

      According to ChatGPT this should do it, I haven't tested though: https://fxdreema.com/shared/CKLA9iHCb

      posted in Questions & Answers
      jstap
      jstap
    • RE: input my indicator name in the input setting

      do both arrows appear at the same time?

      posted in Questions & Answers
      jstap
      jstap
    • RE: how can i put limit order on yesterday?

      I have tried to draw a line on this time but I could not get it to: https://fxdreema.com/shared/Mq8H5ofpc

      posted in Questions & Answers
      jstap
      jstap
    • RE: how can i put limit order on yesterday?

      Are you saying you would like to look at a time days in the past, not just the same day?

      posted in Questions & Answers
      jstap
      jstap
    • RE: Variables in blocks

      What do you mean?

      posted in Questions & Answers
      jstap
      jstap
    • RE: cross open candle today no work

      The biggest problem you have here is that the first tick on every candle is 0 (I don't know if FX uses the day candle for this), so it might be trying to use the wrong tick. I would link out certain blocks to see which ones are stopping trades.

      posted in Questions & Answers
      jstap
      jstap
    • RE: how can i put limit order on yesterday?

      This will depend on your broker's time but, try this (alternatively you could save the price as it happens) :
      image.png

      posted in Questions & Answers
      jstap
      jstap
    • RE: how can i put limit order on yesterday?

      Start a project so you learn what to do with blocks.

      posted in Questions & Answers
      jstap
      jstap
    • 1
    • 2
    • 89
    • 90
    • 91
    • 92
    • 93
    • 469
    • 470
    • 91 / 470