Now reverse the rule and do these operations in the current candle when the previous candle is 20 pips or more 
Posts made by fxDreema
-
RE: bear candleposted in Questions & Answers
-
RE: 2 small bugs / custom indicators.posted in Bug Reports
I think that "Delete" worked before, who knows what happened, but I will check.
I think I actually noticed once that something wrong is going on when there is only 1 indicator in the list
-
RE: Cant find EA in metatrader folderposted in Bug Reports
Whatever problems you have, in the way you explain them to me I can't say much, because there can be many reasons. It's different if you show me a project and tell me "I expect this to work this way, but it does something else".
And you are showing me some project, but what is the problem in it? You say "Also cant get my closing rule for pending orders or trades to work", but what is that rule? Now there are some blocks and they probably do some logic that can be right for someone else, but not for you. Why? What do you expect to happen and doesn't happen?
-
RE: bear candleposted in Questions & Answers
I don't understand the question. "Bear candle" compares Open vs Close price + additional options. Yes, this check can be done in "Condition"
-
RE: Several conditions needs to be fullfiled to proceed with buy or sellposted in Questions & Answers
This is the idea: https://fxdreema.com/shared/cC2xjD8Kb
http://prntscr.com/9s9nc4There is one variable with values like 0, 1 or -1
1 => MACD was < -0.001 and we are ready to check if MACD > 0 and Buy
0 => Not ready to buy or sell
-1 => MACD was > 0.001 and we are ready to check if MACD < 0 and SellIt can be made with less blocks and connections, but I am presenting the idea.
Download .mq4 file and then import it into your projects.
There is also one block "Indicator moves within limits". This one is going back in the history and checks indicator values candle by candle. But I only got the idea that it can be probably used to do the same thing, I was not thinking about how to do it. The downside of looking back in the history on every tick is that the backtest becomes more slower.
-
RE: EA to buy and sell after MACD cross confirmationposted in Questions & Answers
Use two "Condition" blocks with crossovers inside. If both indicators cross at the same candle, there should be no problem. But first try with one of them and then add the other.
-
RE: Compliation Errorsposted in Questions & Answers
Make it at the beginning of the current bar. Here is why: https://fxdreema.com/help/-/working%20w ... e%20closes
-
RE: Problem to compile in ex5posted in Bug Reports
It was coming from "Close losable position". I guess this block is rarely used, because this problem was there for months and you are the first to report it

-
RE: To use engulfing candle high/low values to trigger signalsposted in Questions & Answers
Really? Indicator that finds n-th High/Low of ZigZag? I can't believe that

-
RE: Several conditions needs to be fullfiled to proceed with buy or sellposted in Questions & Answers
Under "on Tick" everything happens in a single tick! If Conditions are connected this way, then all must be true at the same time and only then you will reach block 5.
Recently I worked on something that I called "on Hold" where things works the way you imagine, but the results were very slow and I dropped that work. In MQL4/MQL5 EAs are programmed in such a way that things happen within a single tick, then again on the next tick, then again on the next tick...
One workaround, is to define some variable and use it to remember the current step of the logic.
But some things are not needed. If MACD now goes above some level, this also means that just a moment ago it was below that level. And if MACD crosses some level below, this also means that it was above that level second ago. So why do you need to check 2 things when one of these 2 things is well known and it's true

This level 0.001 is so close to 0, so I don't get your idea

-
RE: Compliation Errorsposted in Questions & Answers
Where?
Try to turn off those some of the checkboxes used to send parameters to the inputs of the EA. The one that is responsible for this error is some drop-down menu that has values like "<" and ">".
-
RE: To use engulfing candle high/low values to trigger signalsposted in Questions & Answers
There are 2 components of each point - Time and Price. Time is not a price and Price is not a Time. Time values are like this: http://www.epochconverter.com/ Price values are like 1.23456 (depends on the symbol). This ZigZag thing returns only the Price component, but I have no idea to develop it more

-
RE: Cant find EA in metatrader folderposted in Bug Reports
I don't understand the problem. "I can find the ea in my meta trader folder" sounds like the way it should be. EAs must go in "Experts" folder, but where is this folder located... long story http://caetara.dev/help/-/you%20should% ... 20terminal
For the web version of fxDreema I made special plugin for Chrome to write files directly into the right folder: https://chrome.google.com/webstore/deta ... mkdhjdgdkp
-
RE: condition and formula Block with user define timeframeposted in General Discussions
Is it possible to use custom timeframes anyway? I know that when something like Renko is used, some fake timeframe is generated, but this is only for the offline chart, from the code this timeframe is not approached. I think that only periods who appear in the "Period" selector (in Tester) can be used. Well, I'm not 100% sure, but this is what I think at the moment.
-
RE: self updating/refreshing grid, compare two groups of tradesposted in Questions & Answers
Enable is not the same as Run. Enable blocks = allow them to work if another block approach them, make them part of the game. If a block is disabled, it's like it doesn't exists, like it's not connected. Enabled blocks are ready to work, disabled are not. Using "Turn ON blocks" does not run blocks, only makes them ready to work if they were disabled, for already enabled blocks this does nothing at all.