fxDreema

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

    Posts made by fxDreema

    • RE: Check Profit > Close Trade - What am I doing wrong.

      The yellow output in most blocks is "else". The yellow output of a block named "If trade" is the opposite, it's like "No trade exists". And then from the yellow output of block 167 you have connected "For each Trade". But there is no trade at that moment, how can "For each Trade" work, if there is not a single trade?

      You probably want to put both "check profit" under 161. I'm not exactly sure that "check profit" worked for negative values... if not, try "check loss" with positive value.

      Otherwise now that group under block 161 should work, but not the group of block 164.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: NOTHING working on .EX5

      I think I fixed one of the problems!

      But the history data of these symbols is so weird, too much is missing. I have days without a single candle and then 1 or 2 candles for the whole day in H1. I don't see even a single day with all it's candles. And you want to work with 4 symbols of these... How?

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Time Filters

      Sounds does not work in the Tester. Here are more limitations - https://fxdreema.com/help/-/you%20shoul ... n%20limits
      Otherwise "Time Filter" should work. I just tested it between 00:01 and 23:59 with "Draw Arrow" connected to it, it works for me - https://fxdreema.com/shared/yAEoByVnd

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Turing Off EA after set $/Pips made

      Well, Variables are not that hard. I'm not saying that one should use them for everything, but if there is one task that does not exists as a block, why not? Variables are just some names that hold some values. The most complicated thing about them is their data type, but even this is not that hard. The one that is mostly used is "double" - this is for numbers.

      I don't even recommend to use many Variables. I have seen some people using big list of Variables, but I think this makes everything much more complex, because you need to remember more things. But 1-2 Variables... this is almost nothing.

      There are obviously some situations that the only way is to store some information in a Variable, like your situation. There is no way to know what was the Equity few hours in the past, because there is no history of Equity prices. Candles are some sort of history prices, but there is no such thing for Equity and Balance. Well, if you keep at least 1 trade opened, then Balance is actually a history value of Equity. Otherwise if you want to remember the value of Equity for later use, how can you do that? You use Variable. Again, there is no block that does something like "Give me Equity at 02:34", only because Equity is not something that MT automatically keeps into a history database.

      Other things can be get from MT's database, things like candle prices (OHLC, Time and Volume), indicators data (which is modified version of OHLC), parameters of all orders and trades (SL, TP, Lots, OpenPrice, ClosePrice and others...). These values can be get from the past without using Variables, but sometimes the EA can be made faster if you store some of them in a Variable and thus make something like cache.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Binary Options?

      Isn't it working? There is expiration option. Make sure that no stops are used. It worked before for that broker... what was it's name, something with C...

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Trade depending the last candle

      I think you want to open new Sell on every new candle:
      https://fxdreema.com/shared/3g1KDPbxc
      http://prntscr.com/acssib

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: WHY IS THIS TRIGGERING?

      Instead of wondering what is going on, you can just backtest the EA in Visual mode and you will be able to see exactly what was the value of CCI at that moment.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: how can i hide the input parameters?

      What says "buy", "sell" and "indicator"? I don't really understand the question here, but if you want to get rid of those inp_ prefixes, just use Constants - https://fxdreema.com/demo/mt4-constants

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: NOTHING working on .EX5

      __DP 2 20:09:23.114 setup_pedrina99 (VALEC44,H1) 2008.02.18 11:02:00 zero divide in 'tmp.mq5' (5842,50)[/quote:2qplqgbj]

      At this row I have:

      CandleID = (int)MathCeil((double)mins_diff/(double)mins_tf);
      

      mins_tf is some timeframe that is calculated and normally it should be different than 0. I can get the same error if I use symbol that does not exists. But what is wrong with this VALEC44, I don't know exactly. And I prefer to try to fix things when I can experience the problem by myself, I don't really want to try changing something in the code just like that - I can break something else.

      Is there something strange in the candles around that time 2008.02.18 11:02:00? Missing candle maybe... What if you only use VALEC44?
      Or is there a way for me to check how this thing works? Broker name, demo account, TeamViewer, something...

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Trade depending the last candle

      Candle ID refers to the latest Candle, it has nothing to do with any trade. With this parameter you point to the candle you want to work with. Candle 0 is the current candle, candle 1 is the previous one in the history, then candle 2, then 3 and so on...

      Do you want to put a new trade N minutes after the previous trade?

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: HOLD INDICATOR CONDITION FOR PERIOD OF TIME BEFORE MAKING TRADE

      If you want to pause the EA for a while when CCI becomes > than 100, there is this "Delay" block, but note that it stops the whole EA for a while. But this will not work as expected in a backtest.

      Otherwise maybe something with some of the "Once per..." blocks, or using a Variable, or Flag... it depends.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Block Condition (Lowest Point - Candle Period) not work

      You use the lowest price between candles 0 and 199. Candle 0 is the current candle. Candles are built from the Bid price, so you actually see history of Bid prices. The lowest price in "Condition" is alco calclated from those Bid prices.

      Mid is Ask-Bid/2, which means that as a value it's bigger than Bid.

      So, what happens is that you can never have a moment when Mid is below the lowest Bid price when you work with Candle 0. Bid can fall deeper and deeper, but in the same time the lowest price is actually the same thing, it's that Bid price. And you even have Mid, which is above Bid.

      The answer is to calculate lower price starting from older candle, but not Candle 0.

      Everything works with Sells, because Mid is > Bid. Even if the current highest price is the current Bid price, Mid will be bigger with half spread.

      posted in Bug Reports
      fxDreema
      fxDreema
    • RE: Help, the condition 6 does not works

      __not work, open an order when the EA start[/quote:3u5bbkcb]
      Yes, obviously. When backtesting you start with 0 trades back in the histry, so then "For each Closed Trade" have no chance to work. For that reason I am creating a single trade to start with something.

      Now you added Condition. You can add new and new ideas, but I can't show you all the things in a single post. If you add a block, the whole logic may change, it depends. So if you want to know something specific, ask me for it and I will show you very specific case, not a whole complete EA

      posted in Bug Reports
      fxDreema
      fxDreema
    • RE: Help, the condition 6 does not works

      Try this - https://fxdreema.com/shared/REwhx7Rzb
      This gets Open Price of the latest closed trade and check if the price moved N pips away from it.

      Also you can work with pending orders. There are block named like "Buy pending orders in grid".

      But if you don't want to have gap between TP of the old trade and OpenPrice of the new trade, then you can just open that new trade when no trade exists. This is as simple as No trade -> Buy now

      posted in Bug Reports
      fxDreema
      fxDreema
    • RE: counting bars that have been losing

      There is no special block to calculate this, but there is one block that can compare values in N candles - Indicator moves within limits. Yes, there is "indicator" in the name of this block, but whatever.

      https://fxdreema.com/shared/uF78pfrI

      Here block 4 should pass if in the 4 past candles (candles with IDs 1-to-4) at least 3 candles are bull. You can see in the properties that the block is set to look into the last 4 candles and allows exception of 1 candle.
      How we check for bull candle? Candle Close must be > Candle Open. As you can see, Candle Open is the lower level for this block. There is no upper level and that's why Candle Close can be even 10000

      Why 4 candles? I was working on M15 and 4 candles in M15 are 1 hour. I think you are working with this timeframe as well. Otherwise what is the point of searching for 3 bull candles in one hour in M5 or H1 🙂

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: BACKTESTING MULTIPLE TIME FRAMES

      In the EA if you don't specify timeframe (where timeframes can be specified), it uses the current timeframe. If you specified certain timeframe everywhere, then I think it doesn't matter what is your current timeframe

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: NOTHING working on .EX5

      I don't know what is the problem now, but I assume that no trades are created. In my tests I can't pass blocks 9 and 10. Are you sure about the value of adjust_entrance? If I print the values with which both conditions (9 and 10) are working with, I have this:
      http://prntscr.com/aboj9o
      I used these blocks to print this - http://prntscr.com/abokfb
      adjust_entrance is 0.03 and this is 300 pips. I was working on H1, but even for Daily in EURUSD this is sometimes a big number.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: virtual stop problem

      Can you give me simple project where this problem happens?

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: comments text sizes

      Comment, which comment? That white small comment in the upper left corner that is native for MetaTrader has no settings at all. No color, no size, nothing. That's why I made another type of Comment, which is built out of few label objects, but in this block there is "Font size" setting.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Condition: Market Properties: Backtest vs Live

      Not at all. Candle Close of candle 0 is actually the current Bid price. It changes until the candle is closed and becomes candle 1. I prefer to work with Candle Close instead of Bid, because it sounds more natural

      posted in Questions & Answers
      fxDreema
      fxDreema
    • 1
    • 2
    • 166
    • 167
    • 168
    • 169
    • 170
    • 374
    • 375
    • 168 / 375