fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. fxDreema
    3. Topics
    • Profile
    • Following 0
    • Followers 691
    • Topics 32
    • Posts 7485
    • Best 277
    • Controversial 18
    • Groups 1

    Topics created by fxDreema

    • fxDreema

      Where is my .ex4 file?
      Questions & Answers • • fxDreema

      1
      0
      Votes
      1
      Posts
      2642
      Views

      fxDreema

      MetaTrader 4 was updated and it has new directory structure now. In the same time Windows 8 becomes more popular. Combine those and there is a big chance that you will not find your .ex4 file where it is supposed to be. Here are some things to be considered...

      First of all, if you are using the local version of fxDreema, use the latest.

      starting from build 600 MetaTrader 4 stores the data (experts, indicators, libraries) in a directory called "MQL4".
      http://img822.imageshack.us/img822/6641/dvl8.png

      In Windows 8 by default MetaTrader 4 does not work with that "MQL4" directory that is located in it's installation subfolder, and probably it's the same case in Windows 7 with UAC enabled. So, go to "File - Open Data Folder" to see where is the working data directory for your MetaTrader 4 installation.
      http://img208.imageshack.us/img208/7909/0wj3.png

      It can be in a directory that looks similar to this: C:\Users%USERNAME%\AppData\Roaming\MetaQuotes\Terminal\9E90172A31F235065E520B4269307A37
      Why is there? Because newest Windows versions prefer to have programs and their data separated. Yes, Microsoft is dumb.

      If you want to use that folder anyway, copy-paste it's path here:
      http://img30.imageshack.us/img30/9783/c99m.png

      If you want to use the home "MQL4" directory, then be sure that MetaTrader 4 is running in portable mode, do this:
      http://img593.imageshack.us/img593/198/gfu2.png

      Run MetaTrader from that shortcut every time.
      Now if you go to "File - Open Data Folder" it should send you to where MetaTrader 4 is installed.

      If you have MetaTrader installed in Program Files or Program Files (x84) and UAC is enabled, it will not allow programs to write files there. Then, be sure that you start fxDreema (or if you are loading the web version - the browser itself) as an administrator.
      http://img89.imageshack.us/img89/1333/hw23.png
      Yes, fxDreema is a bad program in the eyes of Windows, but it's nature is such that it must break some rules in order to deliver files into the MetaTrader's folder.

      If you are working with older MT4 or MT5 where it seems that it does not use it's local experts, or sometimes does it, other times not, most probably you have UAC enabled and MT is working from another remote directory called "VirtualStore". Check it out:
      C:\Users%USERNAME%\AppData\Local\VirtualStore

      Additional information: In Windows 7 you can easily turn off UAC, but on Windows 8 even if it looks disabled, it's not, because all thos strange Metro apps can't work without it. There is a way to completely disable it, for ones who really wants that, but Metro apps will no longer work.

    • fxDreema

      Possible problems (new update)!
      Questions & Answers • • fxDreema

      1
      0
      Votes
      1
      Posts
      680
      Views

      fxDreema

      I just uploaded the new update, but I worked for it in the last month and there are some invisible changes into the database structure. There is almost nothing new that anyone can spot, but I want to warn you that problems can appear. I don't know what problems, after all I hope that everything will be fine... but just in case.

      If someone finds something that does not work as before, please, share that problem with me.

      Even if someone lose his project or part of it - there is a backup, but share that with me as well.

      Ah... I want to also apologize that fxdreema.com didn't worked last few hours... or more (i'm not sure how long). There was a problem with the company that hosts my domains, they are on different hosting than the website itself. Otherwise the website is working perfect in it's new hosting place (since May, 2013).

    • fxDreema

      Unable to login - Cookies settings
      Questions & Answers • • fxDreema

      3
      0
      Votes
      3
      Posts
      1783
      Views

      E

      Useful Thread, thank you

      Was just struggling with the login on Firefox 😉

    • fxDreema

      Already on a new Server
      Questions & Answers • • fxDreema

      1
      0
      Votes
      1
      Posts
      653
      Views

      fxDreema

      This website is located on a new server from today. After weeks of troubles at the oldest shared hosting, I decided to move everything on a new VPS server where I have better control and there are no other users using the same resources with me. The machine is located in New York, hosted by zap5.net, and it has 4 CPU cores and 2GB RAM, which is too good for fxdreema.com I believe.

      Well, there were some troubles while moving to that new server, so I really want to apologize! It is possible that "fxdreema.com" is still not working at some places (including my laptop), but it will be ok soon. Domains takes time to be reconfigured.

      Also, for some (still) unknown software reason the new server already crashed 2 times today, which is not good, but now it looks to be working fine. The truth is that I started managing VPS and installing server on VPS about two weeks ago, so I'm probably not the best server-guru 😮 At least I learn quiclky.

    • fxDreema

      Potential Disaster with ECN brokers!
      Questions & Answers • • fxDreema

      1
      0
      Votes
      1
      Posts
      1713
      Views

      fxDreema

      This is real situation from this morning. It happened to a friend of mine with AVA broker. I changed the name of the EA in the log:

      08:13:17 EANAME EURUSD,M30: Error occured. Error code 129 08:13:19 EANAME EURUSD,M30: Error occured. Error code 129 08:13:21 EANAME EURUSD,M30: invalid slippage for OrderSend function 08:13:21 EANAME EURUSD,M30: invalid slippage for OrderSend function 08:13:21 EANAME EURUSD,M30: Error occured. Error code 4051 08:13:23 EANAME EURUSD,M30: invalid slippage for OrderSend function 08:13:23 EANAME EURUSD,M30: invalid slippage for OrderSend function 08:13:23 EANAME EURUSD,M30: Error occured. Error code 4051 08:13:27 EANAME EURUSD,M30: open #10365265 sell 0.30 EURUSD at 1.30140 ok 08:13:29 EANAME EURUSD,M30: Error occured. Error code 136

      Weird errors. This is ECN broker, so first the trade must be sent, and then stops to be modified. Everything happens in 2 steps - OrderSend() and then OrderModify(). The actual problem here is not that the trade has troubles to be opened, but after that - when stops must be placed. You can see that error 136, which means... "Off quotes".

      Leaving a trade without stops can be very dangerous sometimes, even if the EA itself is not scalping. For this EA - missing stops caused more trades to be opened because of wrong part in the code.

      For example, in non-ECN brokers there are 2 outcomes - to create a trade with stops or to not create a trade at all. With ECN broker you can be easily found in a situation with a trade with missing stops.

      So, be careful with ECN brokers. I know that everyone say that ECN is better, but obviously this is not exactly like that. It looks that every ECN broker has at least one more chance to fail - in OrderModify().

    • fxDreema

      Happy Birthday, fxDreema - 1 year from launching! Gifts!
      Questions & Answers • • fxDreema

      6
      1
      Votes
      6
      Posts
      2189
      Views

      A

      Happy Birthday !!!! Thanks for all !!!! ;-)))

    • fxDreema

      Video tutorials from our member RidoyRx
      Questions & Answers • • fxDreema

      3
      0
      Votes
      3
      Posts
      2453
      Views

      A

      That will help me. Thank you.

    • fxDreema

      EA events in MQL4? (Trade, Timer and so on...)
      Questions & Answers • • fxDreema

      4
      0
      Votes
      4
      Posts
      4765
      Views

      fxDreema

      I believe this should work (load attached .xml file into fxDreema)... but unfortunately I can't get values from this indicator in EA 😮

      If you know MQL4 a little, you can try to get values with:

      Alert(iCustom(Symbol(),0,"CCIarrow", 14 ,0,0));

      But this always gives me 0, even when arrow exists.

      This indicator has one input parameter, three buffers (0 -> %(#0000FF)**, 1 -> %(#FF0000)[Red], 2 -> %(#00FF00)[Green]), but they didn't work...

      ......
      Using CCI Arrow custom indicator.zip

    • fxDreema

      Desktop version of FxDreema?
      Questions & Answers • • fxDreema

      3
      0
      Votes
      3
      Posts
      3079
      Views

      fxDreema

      Drew, it all depends on the server logic. For other sequrity reasons I was thinking about to save a copy of the project files before they are deleted in something like Recycle Bin. This makes sence when a user deletes a project accidentally.
      But currently FxDreema works the way you like it - all the files are deleted and no backup files left.

    • fxDreema

      How the generated MQL4/MQL5 code is structured
      Questions & Answers • • fxDreema

      1
      0
      Votes
      1
      Posts
      4086
      Views

      fxDreema

      First of all, check MQL4 (MQL5) specifications about special functions:
      http://docs.mql4.com/basis/functions/special
      http://www.mql5.com/en/docs/runtime/running

      Let's take MQL4 for example. There are 3 basic special functions: Init(), Start() and DeInit(). The basic structure of MQL4 expert advisor looks like this:

      //+------------------------------------------------------------------+ //| MQL4file.mq4 | //| Copyright © 2011, MetaQuotes Software Corp. | //| "http://www.metaquotes.net" | //+------------------------------------------------------------------+ #property copyright "Copyright © 2011, MetaQuotes Software Corp." #property link "http://www.metaquotes.net" //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ int init() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { //---- //---- return(0); } //+------------------------------------------------------------------+

      As you can see the three special functions are placed one after another.
      Init() is called only once when expert advisor starts, Start() is called at each tick, and DeInit is called only once when you shut down the expert advisor.

      In FXDreema each library (block) is represented in output code with it's own function.

      Not connected blocks will not appear in output code First blocks in logic trees will be called first Logic trees can be as many as you want Logic trees may be as bigger as you need One independend logic tree may have more than one first blocks

      Let's see some examples. First we'll see what happens with only one logic tree.
      http://i41.tinypic.com/1z4fi50.png
      This will output something like this

      ///////////////////////////////////////////////////////////////////////////// //+-----------------------------------------------------------------------+// //| EXPERT INITIALIZATION SECTOR |// //| Runs only once when expert loads |// //+-----------------------------------------------------------------------+// ///////////////////////////////////////////////////////////////////////////// int init() { return(0); } ///////////////////////////////////////////////////////////////////////////// //+-----------------------------------------------------------------------+// //| EXPERT START SECTOR |// //| Runs at every new tick (begins with "start()" function) |// //+-----------------------------------------------------------------------+// ///////////////////////////////////////////////////////////////////////////// int start() { start1(); // The only first block in the only logic tree return(0); } ////////////////////////////////// // Define block 1 (Empty block) // void start1() { start2(); start4(); } ////////////////////////////////// // Define block 2 (Empty block) // void start2() { start3(); } ////////////////////////////////// // Define block 3 (Empty block) // void start3() { /* Nothing here */ } ////////////////////////////////// // Define block 4 (Empty block) // void start4() { /* Nothing here */ } ///////////////////////////////////////////////////////////////////////////// //+-----------------------------------------------------------------------+// //| EXPERT DEINITIALIZATION SECTOR |// //| Runs only once when expert unloads |// //+-----------------------------------------------------------------------+// ///////////////////////////////////////////////////////////////////////////// int deinit() { return(0); }

      The logic is:
      At each tick block 1 is runned
      If block 1 passes -> Run block 2 and block 4
      If block 2 passes -> Run block 3

      Ok, there's two logic trees:
      http://i41.tinypic.com/zunnl4.png
      And the output code is:

      ///////////////////////////////////////////////////////////////////////////// //+-----------------------------------------------------------------------+// //| EXPERT INITIALIZATION SECTOR |// //| Runs only once when expert loads |// //+-----------------------------------------------------------------------+// ///////////////////////////////////////////////////////////////////////////// int init() { return(0); } ///////////////////////////////////////////////////////////////////////////// //+-----------------------------------------------------------------------+// //| EXPERT START SECTOR |// //| Runs at every new tick (begins with "start()" function) |// //+-----------------------------------------------------------------------+// ///////////////////////////////////////////////////////////////////////////// int start() { start1(); start5(); // The first blocks in logic trees called one after another return(0); } ////////////////////////////////// // Define block 1 (Empty block) // void start1() { start2(); start4(); } ////////////////////////////////// // Define block 2 (Empty block) // void start2() { start3(); } ////////////////////////////////// // Define block 3 (Empty block) // void start3() { /* Nothing here */ } ////////////////////////////////// // Define block 4 (Empty block) // void start4() { /* Nothing here */ } ////////////////////////////////// // Define block 5 (Empty block) // void start5() { start6(); start7(); } ////////////////////////////////// // Define block 6 (Empty block) // void start6() { /* Nothing here */ } ////////////////////////////////// // Define block 7 (Empty block) // void start7() { start8(); } ////////////////////////////////// // Define block 8 (Empty block) // void start8() { /* Nothing here */ } ///////////////////////////////////////////////////////////////////////////// //+-----------------------------------------------------------------------+// //| EXPERT DEINITIALIZATION SECTOR |// //| Runs only once when expert unloads |// //+-----------------------------------------------------------------------+// ///////////////////////////////////////////////////////////////////////////// int deinit() { return(0); }

      The logic is:
      At each tick block 1 is runned
      If block 1 passes -> Run block 2 and block 4
      If block 2 passes -> Run block 3

      At each tick block 5 is runned
      If block 5 passes -> Run block 6 and block 7
      If block 7 passes -> Run block 8

      In Init() and DeInit() rules are the same. Only names for functions starts with "init" and deinit".

      ID's of blocks are unique in global scope. So you can have only one block with ID #3 for example, no matter if it is in Init(), Start() or DeInit().

    • 1
    • 2
    • 2 / 2