fxDreema

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

    Best posts made by miro1360

    • example: Price PullBack EA

      Notice: This is not proved EA and is not prepared for real trading. Test it only with demo account.
      All you are doing is your own responsibility, not mine.

      How to make price PullBack EA.
      It is a lot of meanings what price PullBack can be, here is one of them based on 3 exponential moving averages:
      0_1481386905286_upload-6ea479df-5124-4cb6-bdce-0bb4122a1b07

      and here is my example of EA in fxDreema how to make this one with more additional settings:

      https://fxdreema.com/shared/1IpxvLruc

      0_1481386993181_upload-0652757d-4d74-491a-bd96-407e6322a835

      I added few next options, like "OnlyOneTradeMainCross" if true, only one trade is taken on main cross and after that wait for next main cross
      EMA20 x> EMA40 for main UP (buy)
      EMA20 x<EMA40 for main DN (sell)
      if OnlyOneTradeMainCross is false, more trades are opened on one cross and for simplify cross is not needed, only condition EMA20>EMA40(buy), or EMA20<EMA40(sell)
      next option is InversePullBack, this option is probably bad named, but when it is false it wait for cross: EMA3 x> EMA20 and next condition EMA3>EMA40 for buy
      when it is true pullback for buy is when EMA3<EMA20
      With "BuyTrade" or "SellTrade" selected as false can be trading buy/sell disabled.
      These additional options shows you, how to make more alternatives for EA easily switched in EA settings.

      Default EA settings for above described strategy:
      0_1481387511032_upload-58e13a4e-5e6b-4f55-8ee6-c7ae9f8df40a

      Demo trades from EA:
      start of Sell
      0_1481387555205_upload-d5a21006-6648-4435-9a94-28083cda78c8

      completed Buy:
      0_1481387580838_upload-e131dc75-1c3a-44f9-aa39-af1ad9e211ad

      In other tutorials you can find how to work with buttons. Using buttons you can create this EA for better manual control.

      have fun!

      posted in Tutorials by Users
      M
      miro1360
    • RE: can i in fxdreema create indicator ? and how do this ( like my EA but show me buffer arrow or else )

      here was some question and answer about it 😄 ...
      https://fxdreema.com/forum/topic/4546/simple-question-print-objects-multiple-times-on-initialization-of-indicator

      for next candles (created in future) create conditions in on Tick ... but for history candles in on Init ...
      but it is not exactly as indicator, it still as EA ....

      posted in Questions & Answers
      M
      miro1360
    • RE: Tutorial 06 - My Indicators in fxDreema

      ... I dont need your money, I am not doing this for money 🙂 ...

      take this EX file indicator and import it into your indicators, - it import only its name (because it is ex file and not mq), for this reason you need type all input parameters manually:
      0_1497197693538_upload-f27a5f5d-49ce-4020-bc4d-849b09447244
      continue with adding all buffers, numers are enough:
      0_1497197724901_upload-650c0ffe-00fb-43fc-a0e0-d3ce19d5e2ca
      click update and your indicator is in fxdreema

      create easy logic to test your indicator:
      0_1497197770815_upload-a56cc384-f6a6-4b53-be97-d10b27d3546e

      and you see, that all is working:
      0_1497197789502_upload-eee232cb-ef88-4216-9f44-66a0e2c17e4b

      always observe in details how indicator is working with all buffers, in this case you need take value from candle 1 (because candle 0 have no indicator data - it is seen from chart) ... hope you do it right ...

      posted in Tutorials by Users
      M
      miro1360
    • RE: Can you Edit in this indicator , please ?

      not sure if it is ok, in tester is working 😄 ...

      0_1491005820220_pavs-indicator-buffers.mq4

      posted in Questions & Answers
      M
      miro1360
    • Tutorial: Custom Martingale 1

      important note: this is not about profitable EA, it is about custom martingale principle, do all tests only in tester or demo ...

      People are repeating question how to create martingale system.

      In this tutorial I will describe how to create simple, but less stable martingale. This is one method is ugly but is simple and is working in tester.
      Criteria:

      • separate buy and sell
      • buy trade is opened when fast MA crossed slow MA in up direction, opposite for sell
      • trade closed on fixed SL/TP
      • when trade is closed on SL, multiply volume for next trade by custom multiplier
      • perform lots reset when calculated lots value is more than some reset limit (skip reset when value is 0)
      • also reset lots on TP

      Lets start:
      Open new empty project:
      0_1528224435026_ef86ad99-e2fe-4c82-a7b6-b41b6c19ae2d-image.png

      Create few input parameters:
      0_1528224644447_e25d6dc6-b4ea-4f53-9ac9-6363cb69ece9-image.png

      Create few variables:
      0_1528224746621_3ce6d5a4-ada1-4d59-bab7-5f5cdc39f6ae-image.png

      In on Init section reset variables by lotsStart value:
      0_1528224945874_4650a257-7fc1-462a-99a9-07ef4658ad0f-image.png

      In on Tick section add few blocks based on condition, if there is no trade (separate for Buy/Sell) than open trade with variable lots:
      0_1528225163043_f66f48b0-aba9-4692-ab4b-149136d5c922-image.png

      Opposite for sell:
      0_1528225290064_e352d8da-2e9b-4e94-a6b1-408e917e667d-image.png

      Continue in on Trade section:
      Learn basic math and use custom code block in simpliest way for your math and add custom code ... for our example the logic criteria are:

      • when trade is closed on SL, multiply volume for next trade by custom multiplier
      • perform lots reset when calculated lots value is more than some reset limit (skip reset when value is 0)
        0_1528226020037_6d225e3a-3dcd-4d3f-95e3-a8410edb8183-image.png

      Do few changes for sell:
      0_1528226204381_db140127-1c30-44f2-99f3-f58e9cf23226-image.png

      And rest of blocks for TP reset:
      0_1528226331894_95519a0a-5508-4794-86ea-57e3db7648f6-image.png

      Run your EA in tester and you can see, that buy and sell are mixed and hard to find if martingale is working:
      0_1528229814538_946b9895-61b0-4dba-abdd-e961ef8922dd-image.png

      Think about input parameter for selecting trade type (only buy, only sell, or both), name this parameter tradeType and value 1 can be buy, value 2 can be sell, and 0 will representing both ... and add condition blocks into your logic:
      0_1528227355261_f09a3c77-a179-471b-b247-8961a887fc25-image.png

      Now test it. In EA settings (in metatrader tester) set tradeType = 1 (for only Buy trades) :
      0_1528227527970_fdf33295-fb7b-4362-8788-a9a6fdcc01ab-image.png

      Results are now much better to read:
      0_1528228987904_f8ef1fa6-8054-45db-b7d0-1d67850488fd-image.png

      Graph shows that we should consider to lower lotsReset value,
      0_1528229056684_a47ff8b6-10dc-42cb-ac05-f8301c75fb4f-image.png

      try lotsReset 0.17 .... see, slightly better, but still in loss, just martingale 😄
      0_1528229296244_e699ee01-8944-4831-9b6c-9c023c65c904-image.png

      try combined with sell, .... not much changed 😄
      0_1528229417474_deefae91-86bd-4fa6-9b35-6e2dc4aa9433-image.png

      anyway, this was not about profitable EA but about simple custom martingale ...

      shared link:
      https://fxdreema.com/shared/29RWlV12d

      posted in Tutorials by Users
      M
      miro1360
    • RE: Can you Edit in this indicator , please ?

      what you are doing? 😄 because it is working for me ...
      0_1491062871546_upload-9b09768f-b495-4e42-b68e-91000e4c43d3

      ... do you have in metatrader indicators folder this pavs-indicator-buffers.ex4 indicator? because missing indicator can do this issue ...

      posted in Questions & Answers
      M
      miro1360
    • RE: Here, take this profitable ea

      @roar .... start thinking about adx indicator 😄 .... turn off main line and stay only with +DI and -DI 🙂

      it is also one of best indicators to measure currency strength (along with bollinger bands % change)

      posted in Tutorials by Users
      M
      miro1360
    • RE: Is it possible to have a dropdown list for inputs?

      for this I dont know simple solution without manual adding enum things into code (if drop-down is must) ...
      but if you dont need dropdown and simple text is enough, than this:

      create inputs and add them into each management mode:

      0_1504962416988_upload-051b606b-dee4-4e36-9eb3-2d26002d8ec5

      0_1504962443342_upload-6b70cd7e-ed64-4a5e-ab57-9835d6cc9f5d

      when you are complete with each mode, add management as input:

      0_1504962498215_upload-7f912762-992f-45a4-b6f6-627fc77f5579

      and than these text values are names of modes which you add into expert properties manually in this order:

      fixed
      equity
      balance
      freemargin
      block-equity
      block-balance
      block-freemargin
      equityRisk
      balanceRisk
      freemarginRisk
      fixedRisk
      fixedRisk
      1326
      dalembert
      fibonacci
      labouchere
      martingale
      sequence

      and you change it with typing as this in EA:
      0_1504967007339_upload-0a6b0f24-df0d-439e-8320-5387f9ba46e9

      xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      in case you need it as dropdown list, this is manual editing/adding in code:
      in fxdreema this:
      0_1504963364799_upload-240ffaaa-11fb-4afa-8769-fc49ecd011ac
      this:
      0_1504963892159_upload-fc84320c-76e0-4e7e-b269-c20e90a4d675

      this in on Init section:
      0_1504966013931_upload-07e3e6ca-0d78-41d6-ae8d-cf375e0ee43c

      generate only mq4 (not ex4)
      with metaeditor add this enum structure into top of code above inputs:
      0_1504965938920_upload-28d14394-b82e-4618-ad82-0e38adbebffb

      click compile button in metaeditor and hopefully it compile without errors, this is result:

      0_1504966123549_upload-4ab3d676-16f1-42da-a937-6a94cbe23739

      problem with this manual editing in metatrader code is, that each time you generate mq4 code from fxdreema, you need do all manual changes in code with metaeditor again and again 😄 - and this is why it is not very elegant

      posted in Questions & Answers
      M
      miro1360
    • ZizZag Trendlines

      Re: How to use ZigZag [advanced]
      https://fxdreema.com/forum/topic/8876/tend-line-with-zigzag-indicator-does-t-work

      A small update how to draw Trendlines based on ZigZag in FxDreema, based on my old, very old raw trick for browsing zigzag values 😄

      As I said many times, ZigZag is tricky, ZZ sometimes overpaints itself, ZZ is not simple. Some users expect results within an hour and give up in the next hour, some will last longer. Thus is the success defined... just kidding 😄 Here you go:
      https://fxdreema.com/shared/Cxy4NP1Ub

      0_1583951699791_287fc631-495f-4ad9-9b01-89d555b961e2-image.png

      0_1583951804355_0d31f831-b6f8-41a2-a441-9e9c542988a0-image.png

      Many combinations, not all shown, some overlaps over time
      choose the ones that suit you the most or create a new one

      an old trendline can be specified as obsolete (or deleted) using the right logic ... I haven't added it here, let the user bother 😄

      posted in Tutorials by Users
      M
      miro1360
    • RE: Is it possible to change the used time-frame using input parameters (in blocks)?

      this into inputs (string Timeframes is only for info) :

      0_1522875030412_edf1c788-ada0-4774-b363-13823bcc3329-image.png

      this into variables:
      0_1522875080609_9e961250-e5f9-4e15-b0ca-aff29a3ac94b-image.png

      in on Init:
      0_1522875104801_44a454a1-d7c1-4118-afc1-45a68bc158a2-image.png
      if(TF_input == 0) { TF_used = 0; } //current
      if(TF_input == 1) { TF_used = 1; } //M1
      if(TF_input == 2) { TF_used = 5; } //M5
      if(TF_input == 3) { TF_used = 15; } //M15
      if(TF_input == 4) { TF_used = 30; } //M30
      if(TF_input == 5) { TF_used = 60; } //H1
      if(TF_input == 6) { TF_used = 240; } //H4
      if(TF_input == 7) { TF_used = 1440; } //D1
      if(TF_input == 😎 { TF_used = 10080; } //W1

      in on Tick:
      0_1522875146822_39fc95d8-2448-44c4-863d-90e9191efbbc-image.png
      (just use variable for timeframe)

      this technique can be used also for other specific parameters where optimization and its static increment is not enough (different periods - like 13, 34, 82)

      posted in Questions & Answers
      M
      miro1360
    • RE: Finding the nearest horizontal line of indicator. (Complex question)

      to guide you what to do:

      • consider custom code block
      • use an array variable big enough to all the lines
      • find an increment how the name is changed
      • using for loop you can fill this array with each value from all the lines
      • create another loop which will loops through the array of values, use a condition inside the loop to find the position of price, when the condition is true, break this loop and finally you have the "i" increment from the loop ... based on this increment you have the position of your desired values from the array ...

      this is an example based on the steps + in addition it plots the lines (from which it gets the values, for you it is done with indicator, so change the functions accordingly)

      https://fxdreema.com/shared/qfIGAMlVc

      0_1562818331614_c699ba5f-d22a-4d61-bcfe-0c19cba830ac-image.png

      0_1562818484136_0dbf0a3f-7912-43b3-ab7e-36397b1da10b-image.png

      this is only for drawing lines:
      0_1562818529532_a57eb25c-b3f7-4da7-87c9-c24cd59123f7-image.png

      0_1562818559048_8d3c68c5-a23d-48e3-921f-8914c59a36d6-image.png

      0_1562818574701_6165a697-324e-454e-82df-06ca69679454-image.png

      a tolerance should be added (to eliminate price fluctuations around the line, but this is the task where you can play :D)
      ...
      by the way, the whole code can be converted into blocks, but it takes a longer clicking time and I don't have it ... moreover, in my past replies about working with loops is covered almost everything 🙂

      posted in Questions & Answers
      M
      miro1360
    • RE: I need a loop, but don't know which one

      almost any automated hedge system will be very complex and you may not avoid a custom code (even looping) ... it may take several days (or months, or years, based on experience and complexity) to create such a workable hedge system, and you will learn that the hedge system is not a good way to go, it's just postponing an unavoidable crash 😄
      I think there is no active automated hedged system that would offer benefits, 1/3 of them are just an overcomplicated SL/TP, the next 1/3 is martingale, and the rest will be a random confusion 😄

      posted in Questions & Answers
      M
      miro1360
    • RE: need advice on using variables to select buffers of a custom indicator...

      when you escape the condition 9, the ctr should be increased, otherwise the condition 3 will never be false ...

      0_1594081600366_a2207901-581d-492a-aaab-601b668b79dd-image.png

      maybe there will be other things, I have not checked details ...
      it is possible that the indicator is working on the timer and therefore it can caused problems in any EA

      just try it in code, it is so simple although time consuming 😄
      https://fxdreema.com/shared/vcEWDohzc
      0_1594087751245_60115a60-177c-433c-b02c-50f254eda2d8-image.png
      here you have to fix a few things, for example if EUR crosses AUD, both will be alerted (EUR>AUD and AUD<EUR, because both are valid in for loop) ... but as I told you, there may be a problem with the indicator being recalculated (I think it is using recalculation based on timer)
      or I have an error somewhere, try to debug it, I didn't try it thoroughly 😄

      posted in Questions & Answers
      M
      miro1360
    • RE: getting the candle id for previous day high and low

      this? 😄

      0_1602600741987_c40425df-0df7-494d-beda-23b3298625a3-image.png

      0_1602600679558_e79b818e-ffa1-418c-9494-e32021a207f7-image.png

      posted in Questions & Answers
      M
      miro1360
    • RE: Indicator inside a sub window

      Try to find a moving average over CCI indicator.
      https://www.mql5.com/en/market/product/54067?source=Unknown

      posted in Questions & Answers
      M
      miro1360
    • RE: MT4>>MT5

      I also noticed that and I have tried it, but who know how acurate it is ... only way how to check accuracy is to create some EA which is working with candle 0 and is opening/closing enough trades, run it for 1 month (must not be profitable :D) and when is that done, try this period run with tester and compare results ...

      posted in General Discussions
      M
      miro1360
    • RE: EXPERT CLOSE WHEN I CLOSE COMPUTER

      experts are part of MetaTrader platform, when you close this platform, how can trades open?

      posted in Bug Reports
      M
      miro1360
    • RE: Add RSI as a buy/sell signal

      in free time I am working on tutorials where is this king of crossover explained, I share first of tutorials in one week or so 🙂

      posted in Questions & Answers
      M
      miro1360
    • RE: Generate a random chart

      generate data in excel, save as .csv
      import these data into metatrader (Tools - History center - Import)
      consider some dependencies (close[1] == open[0])

      posted in General Discussions
      M
      miro1360
    • RE: Re: Testing pass stopped due to a critical error in the EA

      at least I found, why it freezes while testing, set in blocks "pips away from open-price" parameters as this picture:
      0_1500930179834_upload-e7efc1e8-f70b-4187-bfd0-54714072db1e

      Reference price: Ask for Buy ...
      Open Price belongs to... ... the parent position

      ... than tester works (or at least for me on simplified model) ....

      this is simplified : : :
      because you know ... you need create simplified model where problem is replicated ... no one from here have motivation to resolve hude projects and looking for what is not ok 😄 😄

      0_1500930324061_upload-815d7cd8-c90d-4986-8b81-f76050d22d37

      posted in Bug Reports
      M
      miro1360
    • 1
    • 2
    • 3
    • 4
    • 5
    • 9
    • 10
    • 2 / 10