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: EA malfunction

      was something in journal, message or info why it was stopped?

      posted in Questions & Answers
      M
      miro1360
    • RE: Modify stoploss, not takeprofit

      use loop For-each-trade with modify

      https://s32.postimg.org/9xp32mbxh/foreach.jpg

      https://fxdreema.com/examples/#Loop-(For-each..

      posted in Questions & Answers
      M
      miro1360
    • RE: Place line at Highest open and Lowest open?

      into block you can set candle number from where you will read these values

      posted in Questions & Answers
      M
      miro1360
    • RE: Candles percent

      this is possible with fxdreema

      posted in Questions & Answers
      M
      miro1360
    • RE: mark past MA crossovers

      it is possible with fxdreema, but first you need learn working with fxdreema on easier way to understand logic

      posted in Questions & Answers
      M
      miro1360
    • RE: Apply indicator

      I dont think this is possible, or I have not seen it yet, but it is possible to make "something" on chart, where you type values and indicator and EA will read this values from same place - for this you need rebuild indicator code -- great for fully worked system, bad idea for tested system because it is not easiest for time 🙂

      posted in Questions & Answers
      M
      miro1360
    • RE: Manage trade

      set in your EA Magic nr to 0 and your EA can manage manually opened trades

      posted in Questions & Answers
      M
      miro1360
    • RE: Backtesting with time filters does not work

      better if you post here what exactly is not working, because from my experience it is working fine, post here exactly how you tried it and what was not working

      posted in Bug Reports
      M
      miro1360
    • RE: 5 digit brokers are real

      what about play with settings in:
      Options - This Project - Project Options - "Point format rules"?
      🙂

      posted in Bug Reports
      M
      miro1360
    • RE: MTF Backtesting on MT4 StrategyTester

      properly made indicator can handle this way, fxdreema work with indicator buffers, you can read from multiple timeframes (M1,M5,M15,etc.) and from multiple pairs like (M5 EURUSD + M15 GBPJPY, etc.), but take into heed, that tester is not very accurate and if you will test multiple tfs and multiple pairs, you need to count with bigger flaw in testing result
      be sure to have downloaded enough history data from all tested tfs and pairs before testing
      in MT4 tester you can not open trades in multiple pairs (like EURUSD+GBPJPY at one time) but you can read data from multiple tfs and multiple pairs and open trade only on pair selected in tester window
      in MT5 you can do all this + opening trades in multiple pairs, but dont forget that MT5 is primary working in "nonHedge" mode (more with google), secondary is working in hedge mode (depends on account type) but you need make a lot of things into EA manually when you will working in hedge mode (hedge account type), so once again, be careful on this 😄
      hope this was enough helping for you 😉

      posted in Questions & Answers
      M
      miro1360
    • RE: How to add pips to a price level for both JPY and non-JPY prices?

      you can use fxdreema function in adjust field:

      • PipValue(Symbol())
        or adjust with MQL4 function:
      • MarketInfo(Symbol(), MODE_POINT)) (but here you need know if you are quoted in 5 digits or 4 (3 or 2)) 🙂

      or MarketInfo(Symbol(), MODE_TICKSIZE) ... I am not sure now what will be better, you can try both 😄

      posted in Questions & Answers
      M
      miro1360
    • RE: Slippage features

      yes, this can be problem with real ecn brokers (real is even discutable :D)
      have your broker this option? Enable maximum deviation from quoted price (I think it works only with instant order, with market order(ECN) it is not working - because you become warning that order will be executed with market conditions and there can be significantly difference between prices)
      fxdreema make EA in sending orders with slippage option (function OrderSend()), so I mean (in my opinion) all depends on your broker, when he rejects order because slippage difference - I think it make nonECN broker with instant orders, but ECN broker with market orders accept your order and open it at market conditions directly (guaranted opening but on not guaranted prices)
      there was hard safe method how to avoid this problem with market conditions

      onTick section:

      old_Ask = x_Ask;
      x_Ask = Ask;
      if (MathAbs(old_Ask - x_Ask) < (my_slippage * PipValue(symbol)) EA_can_Trade = true;
      x_Ask = MarketInfo(symbol,MODE_ASK);
      // PipValue() is function from fxdreema, instead you can use MarketInfo(Symbol(), MODE_POINT)) but you need know if you broker is quoting pairs standard with 4 or 5 digits (2 or 3)

      if difference between x_Ask and old_Ask is more than your slippage then it looks better not to trying place the trade

      you can play with 8-)

      posted in Questions & Answers
      M
      miro1360
    • RE: Unconventional Grid (Hedge or Trades Nearby)

      If I look on logic:

      1. check profit >= TPAll ...
        next blocks run only when this condition is true, now it depends on your opened trades and in case how you open trades
        if your opened trades are +10, -10 & +10 and you have only these 3 trades and not more (depends on filter in 1. check profit), your TPAll=10, open trades profit = 10,
        first block pass, so now we go to 2. and 3. block

      save profit from last 3 closed trades (say it was +10) into TPAll_Variable=TPAll-(+10) = 0

      check profit >= 10

      conditions meet and we close with blocks 5. and 6.

      ....
      back to blocks 2. + 3. with scenario
      save profit from last 3 closed trades (say it was -50) into TPAll_Variable=TPAll-(-50) = +60
      now your profit from open trades needs be > +60
      check profit >= +60
      when it is true, closing is in action

      ....
      back to blocks 2. + 3. with scenario
      save profit from last 3 closed trades (say it was +50) into TPAll_Variable=TPAll-(+50) = -40
      now your profit from open trades can be in loss to meet condition
      check profit >= -40
      when it is true, closign is in action - but when your actual profit from open trades is in loss - first condition is false and next conditions does not run because first is false (when TPAll=10)

      is this logic correct?

      (I think, you mean another Miro, I am registered on that site with same nick, but nothing posted)

      posted in Questions & Answers
      M
      miro1360
    • RE: Check last position...

      when you trade only one pair with EA and you need test it with tester, I suggest you for now stay with MT4
      MT5 in hedge can work but you need code a lot of things manually, after this you need broker which allow you trade in "hedge" mode, otherwise you need remake your EA into MT4 and again test it 😄

      posted in Questions & Answers
      M
      miro1360
    • RE: Slippage features

      you can save ask/bid price into variableA before block for opening trade, and into variableB save price opened trade (after opening block), you make difference into variableC = variableA-variableB in pips and variableC is now something you are requested.

      posted in Questions & Answers
      M
      miro1360
    • RE: Unconventional Grid (Hedge or Trades Nearby)

      are you trying to open trades into grid - opening against trend and wait for trend-turn into opposite direction and when it happens, close most lossable trade using profit from bucket of already profit trades?

      posted in Questions & Answers
      M
      miro1360
    • RE: i want protect my code in EA.ex4 how i do that ?
      1. you can use newest MT4 compiler
      2. you can give important logic manually into DLL (but a lot of people will not DLLs because of security reasons)
      3. you can use signal service
        ......
        😉
      posted in Questions & Answers
      M
      miro1360
    • RE: CHECK LAST CLOSED TRADES

      try it this way, not easiest, but can work 😄
      https://ctrlv.cz/shots/2016/07/03/XB8e.png

      posted in Questions & Answers
      M
      miro1360
    • RE: How to separate the last 2 real digits

      or you can play with strings, like:

      double Price1 = 1&#46;12345; 
      string PrepareX=StringSubstr(DoubleToStr(Price1,4),5,2);
      double PriceX = StrToDouble(PrepareX);
      // PriceX value is "34"
      // beware of probably change position in StringSubstr when pairs are like 96&#46;1234, 10000&#46;1, etc&#46; 
      
      posted in Questions & Answers
      M
      miro1360
    • RE: Heavy EA in backtesting

      you was right to put into "on tick", and if it is slow, it is because on every tick runs all your blocks in "on tick" event, if you will speed up it in tester, you can try you conditions with candle ID[1 and >1] runs with block "once per bar" 😉

      posted in Questions & Answers
      M
      miro1360
    • 1
    • 2
    • 77
    • 78
    • 79
    • 80
    • 81
    • 80 / 81