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: Someone help i want this bot to close trades when it cross moving average

      condition block, candle 0 close x> or x< MA - close block (add a shared link rather than a MQ or EX file)

      posted in Questions & Answers
      jstap
      jstap
    • RE: building a mobile robot

      My book shows how to do this, a lot of this is personal preference. If you have any questions feel free to ask

      posted in Questions & Answers
      jstap
      jstap
    • RE: price open trade

      pink blocks, for each trade - if you want the price in a variable, modify variable (in loop) trade/order in loop (using this principle, you can get and use this value in many ways)

      posted in General Discussions
      jstap
      jstap
    • RE: Bucket of positions Fxdreema MT5 does not work

      Buckets don't work the same on MT5 as they do on MT4

      posted in Bug Reports
      jstap
      jstap
    • RE: Buy & Sell por medio de Botones.

      You need to use on tick, works better on MT4 to Mt5 though.

      posted in Questions & Answers
      jstap
      jstap
    • RE: building a mobile robot

      @Python12 I keep telegram etc to limited people, otherwise there is too much happening on them

      posted in Questions & Answers
      jstap
      jstap
    • RE: building a mobile robot

      @Python12 Not really interested, but if I have needs for your work I will contact you

      posted in Questions & Answers
      jstap
      jstap
    • RE: building a mobile robot

      This forum is about MetaTrader, if you can do things for people using Python feel free.

      posted in Questions & Answers
      jstap
      jstap
    • RE: building a mobile robot

      I don't know, all I know is set it up on a computer, then you can link and watch on a phone.

      posted in Questions & Answers
      jstap
      jstap
    • RE: building a mobile robot

      No mate, you can't using meta trader

      posted in Questions & Answers
      jstap
      jstap
    • Close All MT5 trades quickly

      This tutorial is how to close all trades at once (this only works on MT5).
      1st click on custom, then click on create custom blocks to create a custom block.

      f39fff41-435a-4042-8288-89ef0c0346d7-Screenshot (1996).png

      ce7e1516-a743-4053-9b5c-0f94e80dfb7f-Screenshot (1995).png


      This code is for the first section. This section is classed as on tick because the block is to be used in the on tick tab, it ends with a ~next~ to activate the next connected block:

      startTime = GetMicrosecondCount(); // Record start time
      sTrade.SetAsyncMode(true); // Enable asynchronous trade operations

      CloseAllPositions(); // Call function to close all positions
      PrintPerformance(startTime); // Monitor performance

      ~next~


      This code is for the Global variables, includes section:

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


      This code is for the custom functions section, when added the function will be named from the first line:

      void CloseAllPositions() {
      for (int cnt = PositionsTotal() - 1; cnt >= 0 && !IsStopped(); cnt--) {
      if (PositionGetTicket(cnt)) {
      sTrade.PositionClose(PositionGetInteger(POSITION_TICKET), 100);
      uint code = sTrade.ResultRetcode();
      Print("Close 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 Tutorials by Users
      jstap
      jstap
    • RE: MT5 Close All Fast

      @zentex74 You are welcome

      posted in Questions & Answers
      jstap
      jstap
    • RE: building a mobile robot

      You can't create a mobile EA, you can create to work on a pc, so by running it on a VPS then using a mobile to watch what's happening.

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

      Good point, I think you need to add ~next~ into the 1st section like this:

      startTime = GetMicrosecondCount(); // Record start time
      sTrade.SetAsyncMode(true); // Enable asynchronous trade operations

      CloseAllPositions(); // Call function to close all positions
      PrintPerformance(startTime); // Monitor performance

      ~next~

      posted in Questions & Answers
      jstap
      jstap
    • RE: when creating code for custom blocks MQL functions do not work. ALSo Loops do not work.

      void OnStart() will not work in FX so just delete, when you compile what errors are you getting?

      posted in Questions & Answers
      jstap
      jstap
    • RE: draw text round numbers

      @sajadhmz-vp-phd 👍

      posted in Questions & Answers
      jstap
      jstap
    • RE: EQUITY STOP LOSS

      The price value on the right of the chart, current price/candle price/etc is this value, for anything to cross it has to have a level to cross, test by doing this, on backtest put a price number from the right of the chart and watch how this reacts. Then you can use this principle to get your main project working.

      posted in Questions & Answers
      jstap
      jstap
    • RE: EQUITY STOP LOSS

      Because price would need to be a price value

      posted in Questions & Answers
      jstap
      jstap
    • RE: draw text round numbers

      To limit to 2 decimal places do this: DoubleToString(O_C_Diff,2)

      image.png

      posted in Questions & Answers
      jstap
      jstap
    • RE: how set buy or sell order in spacial hour

      What do you mean by check how many candles?

      posted in Questions & Answers
      jstap
      jstap
    • 1
    • 2
    • 65
    • 66
    • 67
    • 68
    • 69
    • 469
    • 470
    • 67 / 470