What amount of time separates both crosses? Do they happen in the same candle, on in neighbor candles, or there can be 10 candles in between, or infinite number of candles?
Posts made by fxDreema
-
RE: two condition to meet ( in order)posted in Questions & Answers
-
RE: MT5 VA MALposted in Questions & Answers
Give me some EA so I can test it here. I can't say what is wrong just like that. But yes, MQL5 is more unpredictable and often when there is a problem, I have more troubles to find how to fix it. I want some EA that will stop working on my MT5

-
RE: How can you establish a curce of moving averages in two time framesposted in Questions & Answers
Can you provide picture of what you need to do, because I can't really understand what is the question?
-
RE: After profitable position pass n positionposted in Questions & Answers
You have "No trade -> Condition" under "on Tick" and until new trade is created and the rules in Condition are true, these blocks will continue to pass over and over again. Then you have the counter, which will run multiple times very quickly and is useless. Not to mention that both of your conditions can be true over and over again multiple times in the same candle.
Also, you have this buy-sell-buy-sell configuration where the existence of trades controls the whole process. You want to somehow skip trades, which breaks the whole idea.
I made this - https://fxdreema.com/shared/zcOfXb3Pc
This has 2 variables. To control the buy-sell-buy-sell process I use one of the variables instead of Buy and Sell trades. The top part of this is almost the same as this example - https://fxdreema.com/demo/mt4-buy-sell-buy-sell-opposite-conditions - but instead of trades I'm working with the value of the variable, so the variable can be either "buy" or "sell".
For the main conditions I'm using MA, because it's easier for me to see what is going on in the chart. But I use the previous candles, because if I work on the current candles I notice multiple changes between "buy" and "sell" at the same candle. Those Draw arrow blocks draw some arrows, so you can see the final signals - white arrow for buy and red arrow for sell.
Then over this strategy I have the other strategy that involves counting consecutive profits and making trades. Even I am confused of what I did
But it seems to work. Here is what I got:
To add this EA in your projects, download it as .mq4 file and then import that file.
-
RE: Price today 10AM higher than yesterday 02PM. Then buy !!! How can I do that?posted in Questions & Answers
@patermike When you set Candle ID to 19 (in More settings)
-
RE: Two line cross overposted in Questions & Answers
For finished crossover, use Candle ID = 1.
For ATR stops, use Custom (price fraction) instead of Custom (pips). I call these values such as 0.0010 price fractions, because if you imagine all prices in a vertical line, small part such a 0.0010 is like a fraction of the whole... if that makes sense

The condition block should not care about past signals at all, this block check the values at the current moment only. I don't see reason for it to work 2 times and then to fail. Check if you have any error messages. Also put Trace block to see the actual indicator values, in case something is wrong with the indicator. It also depends on other blocks, if you have
-
RE: Trailing stop after sometime of opening tradeposted in Questions & Answers
Instead of the trailing stop block put the pink "close" block. But in fact in the Buy/Sell blocks there are expiration settings, so you won't need the right part
-
RE: Trouble with opening buys with a custom indicator (arrows)posted in Questions & Answers
< 100 should be the same as > 0 in this case, because if any of the sides of Condition equals to EMPTY_VALUE, the block doesn't pass.
-
RE: how to build a layer on ea martingaleposted in Questions & Answers
Try with Buy and Sell blocks instead of "add to volume"
-
RE: Draw Shape on conditionposted in Questions & Answers
I feel that you want to control the same object, to change its color multiple times. Try this:https://fxdreema.com/shared/CGpYT0LSb
What I changed here is that I use name for the object. Without this, each block creates and controls its own object. -
RE: How to do buy stop above 10pips hi candle bullposted in Questions & Answers
I don't know which candle you want to use, but it sounds to me like something like this:

-
RE: Need help backtestingposted in Questions & Answers
This is mystery for me as well, the data in MT4 always have some problems. You can delete some files and folders where the data is stored, but who knows. Now I wonder whether the brokers will keep providing old data, because they stopped working on MT4 it I'm not wrong
-
RE: can i add custom indicatorposted in Questions & Answers
Some indicators are not correctly recognized by fxDreema, sometimes it happens that input parameters are wrong. Is this your problem?
-
RE: Price today 10AM higher than yesterday 02PM. Then buy !!! How can I do that?posted in Questions & Answers
I was going to suggest this:

But this one uses the current day. Maybe if you are using let's say H1 and you get the value from... I think it's the 19th candle in the past. This will not work correctly if the day is Monday of course.
-
RE: Reverse order with martingaleposted in Questions & Answers
This is what I made (using 0.05 lot instead of 0.5): https://fxdreema.com/shared/ZxmYpIOtd
-
RE: How put Profit amount in Variable?posted in Questions & Answers
Not exactly. I expect this to fail the first time it runs, because the order of the blocks is like this - 147, 148, 149. After that it may work most of the time, but better connect the bucket blocks one after another.
-
RE: DESCARGAposted in Questions & Answers
The question is how to download for MT5. I see you already have MQL5 project, so you found the way. It's interesting that I'm getting this question more lately
-
RE: I'm having a compilation errorsposted in Questions & Answers
This is not the same problem that you have now. Now the problem comes from "Adjust" fields, but I don't really know how you got them. In your previous project I can find this situation:

In your current project I see this:

Even these 2 problems are not exactly the same. What do you want to do in "Adjust"?
By the way, to fix the problem in the previous projects, open Custom (price level), fix or remove the Adjust field and then go back to the original setting. The thing is that each block has more input parameters than what you can see, some are invisible, but still there.
To fix the current project just remove that . symbol after *2