fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. miro1360
    3. Posts
    M
    • Profile
    • Following 0
    • Followers 257
    • Topics 27
    • Posts 1611
    • Best 192
    • Controversial 5
    • Groups 0

    Posts made by miro1360

    • RE: NormalizeDouble not working... long flating numbers issue...

      try change your way of normalizing ... be sure you give it into "Text (code input)" ..

      0_1507671676181_upload-d09d1262-6251-4e6e-a2ec-93c1d2d8e09f

      if it is not working in this field, than problem can be in metatrader itself 😄

      posted in Bug Reports
      M
      miro1360
    • RE: example: Save variables into file and read them back [advanced]

      I have not tried it yet, but with variables file it can be done (or maybe also with terminal variables) ... problem still to find perfect strategy 😄

      posted in Tutorials by Users
      M
      miro1360
    • RE: example: Save variables into file and read them back [advanced]

      @Andermaiden2nd note added into first post 🙂

      posted in Tutorials by Users
      M
      miro1360
    • RE: example: Save variables into file and read them back [advanced]

      @Andermaiden2nd thanks for info ... if you find something not working, give reply and I (or we 😄 ) try to find solution 😉
      ... be sure that each EA must have own variables file (1 EA >> 1 variables file), otherwise there will be a big fight between EAs 😄

      posted in Tutorials by Users
      M
      miro1360
    • RE: How to display Labels or Text Input on the Chart

      maybe when you use option "Text (code input)" it can be better ...

      0_1507570515442_upload-cf571f70-be1b-4e41-b11c-d67699437f25

      posted in Questions & Answers
      M
      miro1360
    • RE: help array

      you have these values in "on Init" section, on Init section pass only once, you need copy "live" blocks into on Tick section ...

      0_1507489223912_upload-35fe4210-20bf-4e64-8512-129895a1a8a3

      posted in Questions & Answers
      M
      miro1360
    • RE: help array

      wrong block order ...

      0_1507476671988_upload-b22d8e8b-d0ef-42d0-81e6-4b1e72f3b807

      posted in Questions & Answers
      M
      miro1360
    • RE: How to obtain factorial of a variable?

      create simple custom code

      0_1507434713426_upload-03a9fc54-8664-46c2-a028-182be6c590c4

      posted in Questions & Answers
      M
      miro1360
    • RE: EA from MBFX

      yes it must be root or named with subfolder, good that now it is working for you 😉

      posted in Questions & Answers
      M
      miro1360
    • RE: EA from MBFX

      for me it is opening trades in Tester:

      0_1507228541709_upload-bd686aba-a71a-4c4b-8947-3d8460bd1f7a

      posted in Questions & Answers
      M
      miro1360
    • RE: EA from MBFX

      have you this indicator in "Indicators" folder of MT4?

      posted in Questions & Answers
      M
      miro1360
    • RE: EA from MBFX

      yes I tried, it opened trades ...
      try it through shared link (but be sure you have imported indicator, otherwise this link is not working properly) ...
      https://fxdreema.com/shared/ZebXc34tc

      posted in Questions & Answers
      M
      miro1360
    • RE: EA from MBFX

      it is simple, import indicator as this manually:

      0_1507212654331_upload-072f26ef-1fbf-4edf-8e06-ec074afce976

      and this is how Candle Close cross up is done:

      0_1507212713379_upload-d5002deb-0cc7-4141-b42b-bc15109e0dcc

      or maybe with one block x> it is also working ...

      .... and note important thing ... mbfx indicator is fully repainted indicator - it means, when signal was taken, after few candles indicator have another form (because whole period is used for some calculation) ...

      posted in Questions & Answers
      M
      miro1360
    • RE: EA from MBFX

      if you post indicator here I can look into that closer ...

      posted in Questions & Answers
      M
      miro1360
    • RE: EA from MBFX

      use Trace block to verify your EA (in visual tester) if are you using right buffer

      posted in Questions & Answers
      M
      miro1360
    • RE: example: Save variables into file and read them back [advanced]

      @Andermaiden2nd perfect! try if is it working because I did it "on the fly" without some serious testing 😉

      posted in Tutorials by Users
      M
      miro1360
    • RE: buy sell non stop crossing mov average

      maybe ... but it is individual for each project ...
      0_1506876075243_upload-c50bacd4-ae29-44a0-a8ae-d17484f6b39b

      posted in Questions & Answers
      M
      miro1360
    • RE: any way to do this:

      and using simple Check profit (period of time) block?
      0_1506772965252_upload-2dbabe12-3478-4575-9388-e43122325cb0

      posted in Questions & Answers
      M
      miro1360
    • example: Save variables into file and read them back [advanced]

      important note:
      ... be sure that each EA must have own variables file (1 EA >> 1 variables file), otherwise there will be a big fight between EAs 😄 .... 1.EA>>varSave1.txt ... 2.EA>>varSave2.txt ....

      Sometimes we deal with situation, when EA have few critical variables and MT4 terminal must be restarted or was restarted by incident, these variables are no longer available and it can cause problems.
      Values from history trades can be obtained from trades history, but sometimes can be calculation very complicated. For this situation exist another way how to avoid loss of variables. They can be stored into text file with every variable change. For this situation I prepared small example how to do it.

      Example EA have two buttons. Try with tester.
      https://fxdreema.com/shared/HtX9lP51c
      After click on the button trade is opened (buy or sell). Here is small management with lots. When EA is inserted into chart, variable "varLotsBuy" get value from input parameter initLots1. After button click first trade (buy) is opened with "varLotsBuy". If this trade is closed with SL, variable "varLotsBuy" get value multiplied by input parameter "Lots1Multiplier". After new button click, next trade is opened with new value from variable "varLotsBuy". When trade is closed with TP, variable "varLotsBuy" is reseted from first value (initLots1).

      1. Summary: initLots1=0.1, Lots1Multiplier=1.6
      2. Buy: Lots=0.1, closed by SL
      3. Buy: Lots=0.1*1.6=0.16, closed by SL
      4. Buy: Lots=0.16*1.6=0.25, closed by TP
      5. Buy: Lots=0.1

      Example EA in chart:
      0_1506722412649_upload-eef0b83c-d92b-446f-b429-9abbc47683bc

      EA is using few input parameters:
      0_1506722484698_upload-6e5c0fd2-25b5-4241-92cc-331a2e1a02e5

      and few variables: (used are only varLotsBuy and varLotsSell, next variables are only as example)
      0_1506722509992_upload-99db7fe3-ffe9-4267-b01e-01e3a30d99ed

      on Init section draw two buttons and with Condition block (File exist) it check existence of "file with variables", if this file does not exist, EA continue with normal start (with nulled variables), but if file exist, custom code read and initialize variables from this file:
      0_1506722696116_upload-d207c06d-c088-4806-9793-b802c390d3a5

      this is how code looks like:
      0_1506722725210_upload-af7242e9-c719-4e80-a38f-229a9b98bcd2
      strArr[20] is simple temporary array where values are readed from file, each line is one variable (size of array 20 can be increased to any higher size, depends on how much variables you need, it can by much more higher as count of variables, there is no strict rule)
      at bottom of code are variables one after another, in my case they are:
      varLotsBuy = (double)strArr[0];
      varLotsSell = (double)strArr[1];
      var0 = strArr[2];
      var1 = strArr[3];
      var2 = strArr[4];
      var3 = strArr[5];
      var4 = strArr[6];
      var5 = strArr[7];
      important are order and type of variables (order must be same as in file-write code)

      on Tick section just open trades after button click:
      0_1506723117024_upload-6475960e-08e9-4340-b31e-ba7d7003bb9f

      and in on Trade section is calculation where variables are calculated/changed and re-saved into file:
      (this saving into file can be done everywhere you need, in on Tick section, on Timer, on Chart ...)
      0_1506723172046_upload-50cdb367-bc34-415a-9a0c-ff151cb593f3
      and this how code for save into file looks like:
      0_1506723258821_upload-944a12fd-7849-40c6-8fb4-15f696b3cd13
      you see, pretty easy, nothing complicated .. variables are writed one after another with FileWrite function into new lines in file ... (once again, order of values in file is important, it must be compatible with file-read code)

      File with variables is saved into MQL folder:
      0_1506723422647_upload-1d9bad30-b0b1-43ee-9bab-e414cbefedfb
      in case of tester it is file: tester\files\yourFileName.txt
      in case of normal EA in chart: MQL4\files\yourFileName.txt

      Note, that this file can be opened and edited also manually:
      0_1506723663570_upload-224652b6-5c75-4523-8320-ba33c1ba01bf

      And when you need full reset of variables, before you place EA into chart, delete this file (or create input parameter for delete function, function for this is simple:
      FileDelete(fileName,0);

      I hope my explanation was not very complicated ... have a fun ...

      Cheers ...

      posted in Tutorials by Users
      M
      miro1360
    • RE: After Compiling, New blank window opens

      are you using google chrome browser?

      posted in Questions & Answers
      M
      miro1360
    • 1
    • 2
    • 35
    • 36
    • 37
    • 38
    • 39
    • 80
    • 81
    • 37 / 81