fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Mantadiver
    3. Topics
    M
    • Profile
    • Following 1
    • Followers 1
    • Topics 40
    • Posts 102
    • Best 9
    • Controversial 0
    • Groups 0

    Topics created by Mantadiver

    • M

      Array Out Of Range
      Bug Reports • • Mantadiver

      7
      0
      Votes
      7
      Posts
      695
      Views

      M

      Would it be possible to not use an array but use a simple integer instead ? When I build indicators I check for once per bar by populating an integer ThisBarStartTime = Time[0];

      The BIG issue here is that when an EA is running live an array out of range error stops it dead in its tracks and no further actions can be taken. There is no way to create an alert, push, sms or Telegram meassage to the user because it has simply stopped working. Therefore it ends up with orphaned trades unless they can be identified and managed by reapplying the EA to the chart.

      Instead of allow an array our of range error to occur, would it be possible to allow the code to continue and do further checks, i.e. look at the timeframe and check some other flag to see whether it has already been actioned yet on this bar. Then allow it to continue and maybe flag an alert to say there was an issue but at least the ea continues to run . . . . ?

      Thanks for looking into it. Appreciated.

    • M

      How to use a value from an array to populate a block field.
      Questions & Answers • • Mantadiver

      2
      0
      Votes
      2
      Posts
      215
      Views

      l'andorrà

      The only way I know to do that is by using custom code. I'm not a programmer so I'm afraid I cannot help here, but roar and jstap maybe helpful.

    • M

      EA Speed best practices
      Questions & Answers • • Mantadiver

      4
      0
      Votes
      4
      Posts
      400
      Views

      jstap

      @mantadiver Possibly would do, if logically once per bar has limited all blocks beneath there is no point in adding another as the one above will stop the ones below from acting until the next bar.

    • M

      Number separator using commas
      Questions & Answers • • Mantadiver

      3
      0
      Votes
      3
      Posts
      436
      Views

      M

      Managed to incorporate the "NumberToString" function put forward by nicholish en at end of page one of this mql5 forum thread 135250 (Google: NumbersSeparator() function for Print big numbers).

      This allows numbers to be automatically formatted with commas by using a new function:
      NumberToString ( numbertoconvert , decimalplaces )

      Create Custom Block Enter "NumberToString" as new block title in "new block..." field Look for pane "Global variables, includes" at bottom of page Type in "#include<Strings\String.mqh>" Look for pane in bottom right titled "Custom Functions" press "new" Remove the default text Paste in the code supplied by nicholish en:

      //+------------------------------------------------------------------+
      #include<Strings\String.mqh>
      template<typename T>
      string NumberToString(T number,int digits = 0,string sep=",")
      {
      CString num_str;
      string prepend = number<0?"-":"";
      number=number<0?-number:number;
      int decimal_index = -1;
      if(typename(number)=="double" || typename(number)=="float")
      {
      num_str.Assign(DoubleToString((double)number,digits));
      decimal_index = num_str.Find(0,".");
      }
      else
      num_str.Assign(string(number));
      int len = (int)num_str.Len();
      decimal_index = decimal_index > 0 ? decimal_index : len;
      int res = len - (len - decimal_index);
      for(int i = res-3;i>0;i-=3)
      num_str.Insert(i,sep);
      return prepend+num_str.Str();
      }
      //+------------------------------------------------------------------+

      Press "save" & close window Press "save changes" at top of custom blocks screen Return to fxdreema builder, refresh browser window and add new custom block in Oninit

      Then whenever number formats using commas are required use:-

      NumberToString ( numbertoconvert , decimalplaces )

      Output will show as 1,234,567 rather than 1234567.

    • M

      Comment Block - pseudo delete
      Bug Reports • • Mantadiver

      7
      0
      Votes
      7
      Posts
      876
      Views

      jstap

      @tipsywisdom Your probably right, they are not found it the object list.

    • M

      Block corruption ?
      Bug Reports • • Mantadiver

      5
      0
      Votes
      5
      Posts
      503
      Views

      l'andorrà

      @mantadiver You're welcome.

    • M

      Check Flag status
      Questions & Answers • • Mantadiver

      3
      0
      Votes
      3
      Posts
      395
      Views

      M

      Thanks @jstap, yes that will work well, I guess I was just trying to stop clogging up with too many variables as flags are a quick and easy alternative.

    • M

      Draw Objects on Chart during Visual backtest?
      Questions & Answers • • Mantadiver

      5
      0
      Votes
      5
      Posts
      482
      Views

      l'andorrà

      @mantadiver You're welcome.

    • M

      How to specify a Group Range
      Questions & Answers • • Mantadiver

      13
      1
      Votes
      13
      Posts
      1810
      Views

      l'andorrà

      @fxdreema Of course. LOL. XD

    • M

      Zero divide on restart due to LotStep being changed to zero . .
      Bug Reports • • Mantadiver

      17
      0
      Votes
      17
      Posts
      2314
      Views

      l'andorrà

      @tulefi Sharing the link to your project would help to review it in depth, is possible.

    • M

      LotStep causing zero divide.
      Questions & Answers • • Mantadiver

      6
      0
      Votes
      6
      Posts
      580
      Views

      jstap

      @mantadiver Answered this in your other post.

    • M

      Hyperlink from MT4 Chart
      Questions & Answers • • Mantadiver

      2
      0
      Votes
      2
      Posts
      273
      Views

      l'andorrà

      @mantadiver That's for real coders. Is that even possible?

    • M

      Send HTTP Request
      Questions & Answers • • Mantadiver

      2
      0
      Votes
      2
      Posts
      426
      Views

      M

      Scratch that, this website does the job perfectly:- https://webhook.site/

    • M

      Adding variables to "Change Status to" text
      Questions & Answers • • Mantadiver

      4
      0
      Votes
      4
      Posts
      523
      Views

      l'andorrà

      @mantadiver You're welcome. I hope someone can help us.

    • M

      Connection issues
      Questions & Answers • • Mantadiver

      4
      0
      Votes
      4
      Posts
      471
      Views

      M

      You may be right, I certainly notice it at around 5 - 6pm AESTeach day but it's now happening at other times as well.

      I have just monitored the connection for a few minutes across 4 sites that I use and all show good connection quality except for fxDreema server which says "Bad".

      Quality is measured by some combination of Packet Loss Percentage, Latency Percentile & Jitter. So whilst I am connected and can create & move blocks around most of the time it seems to fail at the point of downloading the MQL or EXE.

      Just to be clear it is not happening all of the time so at the moment I just have to wait and keep trying but it is a bit of a fly in the otherwise very satisfying ointment.

      0_1599695948025_f09e3056-f50b-4101-93a0-f50d2d8797fd-image.png

      0_1599695970420_b9d0640e-3067-43af-86f0-a71c7f8b2e9e-image.png

    • M

      Bucket of Trades - Swap & Commission
      Questions & Answers • • Mantadiver

      4
      0
      Votes
      4
      Posts
      584
      Views

      l'andorrà

      @mantadiver You're welcome.

    • M

      Possible to insert dll import code ?
      Questions & Answers • • Mantadiver

      5
      0
      Votes
      5
      Posts
      868
      Views

      l'andorrà

      @mantadiver Thank you very much for sharing this info. Much appreciated.

    • M

      "Bucket of closed trades" since open time of first trade
      Questions & Answers • • Mantadiver

      4
      0
      Votes
      4
      Posts
      763
      Views

      l'andorrà

      @mantadiver Can you please share your project?

    • 1
    • 2
    • 1 / 2