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: Multiple Trades

      ______Thanks for your reply πŸ™‚

      However Close trade block doesn't cause the trades to close immediately (It's something acceptable in real version which would allow trade to earn enough profit).

      I don't know if you tested the example: it opens nearly 30-40 trades back to back without closing any.[/quote:1sxrzgl4]

      I am sure, that your idea with open/close trade is not ok. Because in other words, you are doing this: in the same time, you close trade when condition for close is true, and this situation make true your next condition for open trade (because no trade exist), so you open/close/open/close/open/close...trades .... what you need to do for your logic, can be add some condition before "open trade", this condition can be negative condition from close trade :D[/quote:1sxrzgl4]

      But if you look at the print screen you would see that there are open trades back to back regardles of no trade block. I mean they are not closed and opened back to back... Maybe my logic is wrong I don't know, but if there is a no trade block and and there are 40 trades something is definitely wrong. Maybe I don't know the logic behind the blocks completely...[/quote:1sxrzgl4]

      yes you are right simultanously opening, so I checked your logic again and this is result:

      1. No trade (parameters Buy and Sell)
      2. if No trade == True --- Open Buy
        ... and here you have opened Buy trade, so new tick and next to logic:
      3. No trade (parameters Buy and Sell) ... and this is important, No trade will be true, if Buy or Sell not exist, it means that one of both can be enough to make "No trade" true, and you previous opened only Buy, so we continue:
      4. if No trade == True --- Open Buy ... next buy is opened ....

      and here can somebody say about parameter "Buy and Sell" means that "both of them make it true" but it seems be that one of them is enough, so better would be rename it to "Buy or Sell", admin, what you mean? ... but ... hard to say πŸ˜„

      so I suggest you to avoid using this negative form of logic and instead of that you can use this form of logic - positive logic and its output compare to true or false:
      https://fxdreema.com/shared/FeTuv9NL

      or if you will stay with block No trade, better if you set parameter in this block to "only buy" .. or "only sell" .. not both πŸ˜‰
      https://ctrlv.cz/shots/2016/11/01/8fX1.png

      and again, in block is "Buys and Sells" and in code is "Buys Or Sells" - so I was not sure about this and for this reason I am using this block only for "only buy" or "only sell" ...

      https://ctrlv.cz/shots/2016/11/01/payc.png

      posted in Questions & Answers
      M
      miro1360
    • RE: Multiple Trades

      __Thanks for your reply πŸ™‚

      However Close trade block doesn't cause the trades to close immediately (It's something acceptable in real version which would allow trade to earn enough profit).

      I don't know if you tested the example: it opens nearly 30-40 trades back to back without closing any.[/quote:1pk0kt1d]

      I am sure, that your idea with open/close trade is not ok. Because in other words, you are doing this: in the same time, you close trade when condition for close is true, and this situation make true your next condition for open trade (because no trade exist), so you open/close/open/close/open/close...trades .... what you need to do for your logic, can be add some condition before "open trade", this condition can be negative condition from close trade πŸ˜„

      posted in Questions & Answers
      M
      miro1360
    • RE: Send Email - but ignore pending orders

      __

      I might give this a try when I have a clear head tomorrow - what you did here definitely makes sense. Thank you very much for the idea!

      -Scott[/quote:3m46rfok]

      the first one is with bad connected blocks, this one is closer to reality:
      https://fxdreema.com/shared/2t3NZtEIb

      posted in Questions & Answers
      M
      miro1360
    • RE: Send Email - but ignore pending orders

      nice work πŸ™‚
      I am not tried this, but you can, this way working in OnTimer:
      https://fxdreema.com/shared/xdSGKe0ad

      posted in Questions & Answers
      M
      miro1360
    • RE: Send Email - but ignore pending orders

      you are working with "trade" - trade is result of order (order can be created, modified, deleted, etc.)
      you can try to work with block "Order created" (in this block are separeted settings for pendings) ...

      posted in Questions & Answers
      M
      miro1360
    • RE: Drag .EX4 to chart -> Nothing happens

      I have seen files much larger as you mentioned and was working great, so it is not file size issue.
      If possible, your friend can recompile his project with same metaeditor version as your matatrader.
      If .ex file exist and will not give you settings window, most often it is version incompatibility (if placed folder is right - indicator in indicators, expert in experts, etc).

      posted in Bug Reports
      M
      miro1360
    • RE: each candle condition

      you can work with "Once per bar" block and in this block you select your prefered timeframe

      posted in Questions & Answers
      M
      miro1360
    • RE: Pass n times; general question about counters

      __So this can be used to stop EA from trading for a certain period?[/quote:390w9c1t]

      yes, with few conditions you can do this

      posted in Questions & Answers
      M
      miro1360
    • RE: Delet TakeProfit from a running trade

      __oh yes the answer why I first set a TP and then I delete this. In my trading-idea I am looking for hammer in DAX. Sometimes a hammer starts a big move, and I only get a little part of this move. So first I set a TP, and when the PAR SAR works, I set the trailing stop on the PAR SAR and delete the TP.[/quote:17v83jqy]

      ok so you need working in onTick section, here you can try delete TP when you set to 0.

      posted in Questions & Answers
      M
      miro1360
    • RE: Pass n times; general question about counters

      __Thanks a lot for your time and responses πŸ™‚

      It would be great if you can add sleep or pause blocks in the future.

      Regards[/quote:1eetvj59]

      you can do your own count with minutes (hours etc.) easy,

      1. you create variable to count, lets say minutes count, so your variable: int variableMinute=0
      2. you place block "Once per bar" and set in this block timeframe M1, this block connect with another one "Custom block" and here you place: "variableMinute=variableMinute+1;"
        now this block with modify variable will be executed once per minute and variable increased +1 once per minute (minutes count)
      3. another group of blocks is your condition where you compare variableMinute

      see this example here, it executes 1 trade every 10 minutes:
      https://fxdreema.com/shared/fYIkHbZ8c
      (dont forget, variableMinute is defined in Variables)

      posted in Questions & Answers
      M
      miro1360
    • RE: Help with Custom MQL4 code

      __... (but I should add some)...[/quote:208gbq4r]
      that would be perfect ⚑

      posted in Questions & Answers
      M
      miro1360
    • RE: Delet TakeProfit from a running trade

      is possible he needs delete TP only if "his special condition is true"?
      I have not this tried, but you can try set TP to 0 with blocks: Trade created +(your conditions) if true + For each Trade (set not more than 1 trade) + modify stops (here you set for TP 0 and for SL without change)
      (place this in on Trade section)

      posted in Questions & Answers
      M
      miro1360
    • RE: Buttons donΒ΄t work

      try this: blocks 8 and 5 place into on Init section and delete it from on Tick section

      posted in Questions & Answers
      M
      miro1360
    • RE: Enabling multiple time frames in strategy tester

      easiest way how to visualize higher TF is use of "MTF Candle indicator" - you can find through google ... of course, if you will indicator for this TF, google for MTF indicator ... when you start visual testing, place this indicator into your chart ...

      not all is working perfect
      something like:
      https://c.mql5.com/31/7/mtf-candles-screen-9122.png

      posted in Questions & Answers
      M
      miro1360
    • RE: Where do I start?

      __hello
      I have an custom indicator that send email when two 2 MAs are crossing I have it so the email can be sent on the bar or next bar, I would like to open or close a trade once the alert is sent...how I do I transform my indicator to an ea.. or creating an EΓ€ with my indicator..thanks[/quote:15rwiply]

      you can do this crossing MA directly using fxdreema without your custom indicator, because all blocks are ready for this ...
      Use block Condition (set MA crossing) and after this use block with filter (like once per bar or once per minutes etc) and after this connect block Send e-mail

      posted in Questions & Answers
      M
      miro1360
    • RE: How to use enum
      1. first you make your EA in fxdreema with this way:
        in constants define one that can be in future changed to your enum, so you define constant:
        int MYmode = 0

      2. and now you continue in creating blocks - you can with Condition compare logic:
        if(MYmode==0)
        //if true - orange output pass, if false yellow output pass

      3. next Condition compare next logic:
        if(MYmode==1)
        //if true - orange output pass, if false yellow output pass

      if(MYmode==2)
      ...
      etc. ...

      1. you generate mq code with fxdreema, after this open your code with MetaEditor and do this:
        you write in code your enum structure, need write it in top level - in place where is #property, or functions (not inside functions):

      enum ENUM_MY_MODE
      {
      CCI,
      RSI,
      Stoch
      };

      1. you delete your old constant-input which was defined in fxdreema "int MYmode = 0", - replace this constant-input with type of your enum:

      input ENUM_MY_MODE MYmode=CCI;

      1. compile this with MetaEditor into your working EA and have fun πŸ˜‰
      posted in Questions & Answers
      M
      miro1360
    • RE: Enabling multiple time frames in strategy tester

      I am not sure about switching charts in tester, it possible can be done using offline charts, theory:

      1. EA in 1min chart - EA must have function to create offline charts
      2. when is EA running in tester, offline charts are creating and now you can switch between offline charts and in offline charts can be created these lines
        ... creating offline charts you need do manually with custom code block, but is not easiest

      second way can be:

      1. use tester only with primary TF and here you can print Higher TF candles, or use indicator to create higher TF candles - they can be created from objects (lines, rectangles ...) or with buffers "histogram", you can google for few indicators
      2. print on this primary TF these lines, you can change colors which can represent TF, lets say: clrOrange for H4, clrBlue for D1, etc. ...

      in MT4 tester is not possible open trades for another pair like tested one (eurusd in tester, so you can open only eurusd trades), but is possible working with offline charts
      in MT5 tester is not possible open offline charts, but it is possible to open multiple pair trades

      posted in Questions & Answers
      M
      miro1360
    • RE: Save new version of EA

      I make it so, let say name EA is MyProject1 and for MT4

      1. Project - Import Project - MyProject1.mq4 file
      2. Rename this imported file (click on its name) and type MyProject2
        now you have new version πŸ˜‰
      posted in Questions & Answers
      M
      miro1360
    • RE: How to use enum

      I made it manually into code πŸ˜‰
      instead of enum you can use numeric values like 0,1,15,... - depends on how they are used in code

      posted in Questions & Answers
      M
      miro1360
    • RE: No trade nearby - case 1: and case 2: something missing

      https://ctrlv.cz/shots/2016/09/23/Sko1.png

      https://ctrlv.cz/shots/2016/09/23/iSIQ.png

      I can not explain it better πŸ™‚

      If somebody meet same problem as I, he can read first post and find solution πŸ™‚

      posted in Bug Reports
      M
      miro1360
    • 1
    • 2
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 77 / 81