@od i've tested your last project, no problem for me

@od i've tested your last project, no problem for me

@od how much is the spread?
@richestcousin You'd better ask to the moderator of MQL5 COM, in any case the products on sale are tested on different products and on different time frames, so if you limit anything within your Expert this will not be validated. It's not a Fxdreema fault
@od in the buys block put Ask price

@od said in Why is this EA not taking trades when it is supposed to:
@ambrogio I was using the mid price since each of the two pending orders can open a buy or sell. After changing as said it now takes the trades even if with spreads but sometimes the other order is not cancelled.
For example the orders highlighted above should both be deleted when the sell stop and buy limit orders (86&87) open trades. But order 85 is not deleted and it ends up opening a trade when it should not.https://fxdreema.com/shared/L2dT0Ck4
I repeat myself: DON'T use the mid price. Please, make as i suggested you, try it and check.
@od i see that you are using "mid price" for pending orders only now. Don't do it. Always use Ask price for buys orders and Bid price for sells orders. You will see that all is fine. The spread will be calculated by the platform (in my case spread = 1.5 pips). Look at this screenshot, orders #13 #14 #15 #16

@od this happens because you have choose "create OCO order" (One Cancels Other)

when one buy order is triggered, a sells pending order is deleted, and viceversa
@kallamamran said in Finally , Integration of News Filter
[ MT4 Only ]:
@ambrogio Hello,
I have managed to open the MQ4 in MetaEditor and compiled it with the manually created Boolean trade-variable, but I do get a warning compiling the script.
I don't know if I need to do something about this or what to do. Can you please advice?! <<< Doesn't matter, it's a warning only >>>
Also what's meant by "You will have to copy that 2 block from Oninit() and other 2 also from Deinint()". Where are these supposeed to be copied?! <<< I Don't unterstand this question, i don't see where is placed this suggestion >>>
Best regards // Kallamamran
@pipologist check out the input and data type in "my indicator" of fxdreema (MODE_SMA)

@nk0815 you have to put 200% because the block counts the pips from the stop loss, so if you put 100% of the stop loss you will find yourself at the opening price
@bouhali said in BUG - MT5 the Martingale function does not multiply?!!!:
@ambrogio No, it's not all that.
my broker: Deriv and index: Volatility 75.
it works very well with 0.001, 0.002,
but the problem is at the Block Multiplication level !!!!
I've tested just now on Deriv. You are right !!!!!!!!
But you started the topic like a MT5 bug, you should have specified that you are using Deriv DMT5 platform, so the problem happens with this broker that uses the smallest lot size on some synthetic indices. I advise you to report the bug to the administrator email directly.
The administrator unfortunately does not show up too often here. @fxDreema
@vhager It's not a bug. Eg.: If you use "once per bar", should you start counting the current candle right? This is because in the candle ID1 maybe we have a triggered condition, so a possible trade failure because we have not counted the current candle. If you don't want to count the first candle simply skip it.
@bouhali No, nothing else to do, 0.01 is the minimum lot size allowed by almost all brokers on the market. My MT5 do not consider 0.001 and put 0.01 automatically.
@fxdreema-8 said in detect arrow help
:
Hey , this is free from the market , how do i detect the arrows 228 and 230 i believe.
Do i use indicator appear then what ? thanks
Cannot load your indicator on MT4
@bouhali it works for me, what's the problem exactly?
@vhager said in Every n bars pass once at the start when it shouldnt:
Hi,
I'm using the block Every "n" bars in my project, and it seems the first time it is executed, it will pass no matter the number of bars. I use it in live mode not in backtest mode.
After that, if it is executed again, then it seems to work as expected.Here is a little test i made:
https://fxdreema.com/shared/RAe5HW65cThe EA displays a message "2 bars counted" every 2 bars.
I ran it on the 1M chart, and as you can see, the message is displayed as soon as the EA is started.
Then the message is displayed every 2 minutes as intended.
When i check the code, it seems the value bartime is set to 0, therefore this condition will always set pass to true:
Does it work as intended or am i mistaken somewhere? Can you fix this ?
Thank you in advance,
Valentin
You could create a variable counting candles, and place a condition like this:
