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 9381
    • Best 1086
    • Controversial 23
    • Groups 0

    Posts made by jstap

    • RE: Moving average opening too much buys

      @FX-Gnosis 👍

      posted in Questions & Answers
      jstap
      jstap
    • RE: Each closed position filter

      It looks like it shouldn't, hard to say from a picture, add a shared link and maybe the fault can be seen

      posted in Questions & Answers
      jstap
      jstap
    • RE: Moving average opening too much buys

      @FX-Gnosis ok mate

      posted in Questions & Answers
      jstap
      jstap
    • RE: Moving average opening too much buys

      It's because you have an if trade block connected to your buy blocks

      posted in Questions & Answers
      jstap
      jstap
    • RE: Moving average opening too much buys

      Add a shared link

      posted in Questions & Answers
      jstap
      jstap
    • RE: paraboric sar crosses above candle issue

      Explain a little more on what you need. For example PSAR is < candle 1 close and PSAR is > candle 0 close will open a sell as soon as the dot moves from below to above.

      posted in Questions & Answers
      jstap
      jstap
    • RE: PLS help in adding Fibonacci money management to DCA

      Tell me how fib money management works, maybe I can help you

      posted in Questions & Answers
      jstap
      jstap
    • RE: Convert MT4 to MT5 or build from MT5?

      Yes that works

      posted in General Discussions
      jstap
      jstap
    • RE: Convert MT4 to MT5 or build from MT5?

      Create a fresh version, you can convert but blocks that have position in them are MT5, so any blocks created on MT4 without need replacing.

      posted in General Discussions
      jstap
      jstap
    • RE: TRENDLINE BREAKOUT EA

      If there is nothing under indicator is visible then it will do nothing, the orange dot passes information on if block is true

      posted in Questions & Answers
      jstap
      jstap
    • RE: MT5 Close All Fast

      Custom function is not global variables, there 1/2 way down on the right side, there are 3 sections and there all labelled on tick (for this) is the top section, custom functions is on the right, global variables is on the bottom

      posted in Questions & Answers
      jstap
      jstap
    • RE: good morning. How can I set a maximum fixed limit for losses and gains on the day?

      @tec-nacks what are you talking about?

      posted in Questions & Answers
      jstap
      jstap
    • RE: Calculated lot size in comment on chart before open

      @MT4Nutzer This is possible, Roar showed me ths a long time ago, it is about getting the code from the MQ file, changing it slightly, then displaying on chart. Not a trivial thing to do, and I am unsure where to start.

      posted in Questions & Answers
      jstap
      jstap
    • RE: Adjusting TP to Include Commission in a Manual Trading Bot

      Addt to a project and place a shared link to look at, Ill see what's right/wrong from there

      posted in Questions & Answers
      jstap
      jstap
    • RE: MT5 Buy or Sell only

      More information on what exactly you need

      posted in Questions & Answers
      jstap
      jstap
    • RE: MT5 Close All Fast

      You will have to create 2 blocks, 1 to close buys, and 1 for sells, haven't tested but should work.
      Buys:
      // On tick section:
      startTime = GetMicrosecondCount(); // Record start time
      sTrade.SetAsyncMode(true); // Enable asynchronous trade operations

      CloseBuyPositions(); // Call function to close only buy positions
      PrintPerformance(startTime); // Monitor performance

      // Global variables section:
      #include <Trade/Trade.mqh>
      ulong startTime; // To store the start time for performance measurement
      CTrade sTrade; // Trade object used for operations

      // Custom function section:
      void CloseBuyPositions() {
      for (int cnt = PositionsTotal() - 1; cnt >= 0 && !IsStopped(); cnt--) {
      ulong ticket = PositionGetTicket(cnt);
      if (ticket > 0) {
      // Check if the position is a BUY
      if (PositionGetInteger(POSITION_TYPE) == POSITION_TYPE_BUY) {
      sTrade.PositionClose(ticket, 100);
      uint code = sTrade.ResultRetcode();
      Print("Close BUY result code: ", IntegerToString(code));
      }
      }
      }
      }

      void PrintPerformance(ulong startTime) {
      for (int i = 0; i < 100; i++) {
      Print("Elapsed time: ", IntegerToString(GetMicrosecondCount() - startTime),
      " microseconds. Open positions: ", IntegerToString(PositionsTotal()));
      if (PositionsTotal() <= 0) { break; }
      Sleep(100);
      }
      }

      Sells:
      // On tick section:
      startTime = GetMicrosecondCount(); // Record start time
      sTrade.SetAsyncMode(true); // Enable asynchronous trade operations

      CloseSellPositions(); // Call function to close only sell positions
      PrintPerformance(startTime); // Monitor performance

      // Global variables section:
      #include <Trade/Trade.mqh>
      ulong startTime; // To store the start time for performance measurement
      CTrade sTrade; // Trade object used for operations

      // Custom function section:
      void CloseSellPositions() {
      for (int cnt = PositionsTotal() - 1; cnt >= 0 && !IsStopped(); cnt--) {
      ulong ticket = PositionGetTicket(cnt);
      if (ticket > 0) {
      // Check if the position is a SELL
      if (PositionGetInteger(POSITION_TYPE) == POSITION_TYPE_SELL) {
      sTrade.PositionClose(ticket, 100);
      uint code = sTrade.ResultRetcode();
      Print("Close SELL result code: ", IntegerToString(code));
      }
      }
      }
      }

      void PrintPerformance(ulong startTime) {
      for (int i = 0; i < 100; i++) {
      Print("Elapsed time: ", IntegerToString(GetMicrosecondCount() - startTime),
      " microseconds. Open positions: ", IntegerToString(PositionsTotal()));
      if (PositionsTotal() <= 0) { break; }
      Sleep(100);
      }
      }

      posted in Questions & Answers
      jstap
      jstap
    • RE: WHAT IS THE DIFFERENCE BETWEEN : CUSTOM (PRICE LEVEL) AND CUSTOM (PRICE FRACTION)

      level is the price (as seen on the right of your chart), fraction is the distance of 2 of these levels

      posted in Questions & Answers
      jstap
      jstap
    • RE: ERROR

      Copy and print here to see the full problem

      posted in Bug Reports
      jstap
      jstap
    • RE: MT5 Close All Fast

      @eaforexcenter_All Do you mean in this block?

      posted in Questions & Answers
      jstap
      jstap
    • RE: Adjusting TP to Include Commission in a Manual Trading Bot

      You can't add candle price to spread (level - fraction (distance)). You can try candle price + 0 (in adjust put, SymbolInfoInteger(NULL, SYMBOL_SPREAD)

      Let me know if it works

      posted in Questions & Answers
      jstap
      jstap
    • 1
    • 2
    • 54
    • 55
    • 56
    • 57
    • 58
    • 469
    • 470
    • 56 / 470