@jstap ok, I will give that a try.
Thanks
@jstap ok, I will give that a try.
Thanks
@jstap That's odd, dont know how that got pasted.
I have posted the correct link now.
https://fxdreema.com/shared/yzy6Gcasc
Thanks
@jstap Thanks for the help on this.
This is the part of the EA that does all the figuring of the lots size, stop size, tp size and the trailing stop and places the trades.
Thanks very much!
Hi,
When I run my EA live, in a demo, I am seeing the journal 3 lines for each placed order that say:
06:57:02.435 Trades '1496304': deal #247838169 buy 1 ENQZ24 at 21966.50 done (based on order #268632533)
06:57:02.435 Trades '1496304': order #268632533 buy 1 / 1 ENQZ24 at 21966.50 done in 120633.523 ms
06:57:02.435 Trades '1496304': modify #268632533 buy 1 ENQZ24 sl: 21936.25, tp: 22020.25 -> sl: 21952.50, tp: 22036.50
I also at the same time, sometimes not on every trade, see the experts tab show:
"Correcting stops because of slippage."
Is this something that my EA is doing? If so anyone know why and how/if I can change it?
Thanks!
@sktsec Thanks!!! I think this is the problem, since this turns false once a trade is on, I moved this out and it seems to be counting now!!
@Byens Thanks for the suggestion but that stops counting as soon as the trade is put on and it does not count again until the trade is closed.
There has to be a way to get the blocks to function once a trade is on. I do not get it, but its not working.
@jstap I did this and when the buy is put on it still stops counting during the trade and resumes once the trade is closed.
Any idea on how to overcome that problem? I have tried a bunch of different combos and I can not get the count to keep counting bars during any trades.
@jstap Sorry for the delay. Here is an example of what I am trying to do and it stops counting with the pass once the trade is put on. I looked into it further and it seems it is not the once per bar that is the problem, as it stops the count even without the once per bar on.
https://fxdreema.com/shared/JZ4099bP
I am just trying to count CID from a previous candle so I can use that candle later in the future. I dont know of any other way to keep CID from a past candle.
Thanks for the help
Hi,
I have an "Once Per Bar" block that is working, once every bar, except when there is an active trade, it stops working for each candle that occurs while the trade is live. As soon as the trade closes the "Once Per Bar" block activates again.
I have the "Once Per Bar" block connected to an hours filter and nothing else.
Anyone know why this is happening?
Thanks
@l-andorrà Ok, I will give that a try. Thanks for the help
@l-andorrà yes. That’s what I need to do to get the percent of stop to work?
Thanks for the response!
Hi,
I am trying to get a trailing stop to move the stop after it reaches a 1:1 profit and it is not working.
I set my stop loss for a sell, based on the high of the candle the the trade is entered on. Then once the trade gets to 1:1 I want the trade to move to BE and every time the profit jumps 100 percent I want the stop to move again.
So for example, lets say the stop is set to 10 points because that is how far away the current candle high is from the open price of my sell. Then I would like, once my trade is at 10 points profit (1R), the stop to be moved to Break even. Then when my trade moves to 20 points profit (2R), I want the stop to move up 10 more points, which would put the SL at 10 points of profit (1R) and I need this to keep going until I get stopped out.
Here is a link to how I have the sell and then the trailing stop setup, I do not know what part I have wrong.
This is obviously not my whole project just the sell portion, everything works except the trailing stop.
https://fxdreema.com/shared/jxgtqF39c
Any help would be greatly appreciated.
Thanks for the response. Yeah that’s just the variable parts. It’s just odd that it works in back testing and during the week when love but does not restart after the weekend.
Do you know of a way to check the variables on MT5 for the live forward testing to see what they are on Friday?
Hi, thanks for the response. Here is a link to how I reset the variable and to how I take the buy and sell:
https://fxdreema.com/shared/FUfxWzwAc
Thanks for your help on this
Hi,
I have my EA resetting variables at 2 different times once at 16:30, on the day after trading and then the last variables resets the next day at 8:00 before trading for that day.
This all works fine starting on Monday and trades through Friday, but after the weekend, it did not take any trades, Monday, Tuesday, and Wednesday, this week.
Any Ideas why this might be happening, I am wondering if it has to do with the fact that the 8:00 time period after Friday trading does not exist on Saturday. Could this be the problem? Does the EA just stop since there is no 8:00 on Saturday?
All of this works fine when I backtest it for a whole year, but then live it trades until the weekend then does not restart.
Thanks for any help
Hi,
Is there a way to use the MT5 Economic Calendar to get the days that certain news events happen for an EA?
I just want to be able to pick which days to not have the EA take a trade based on the specific new events during the day.
Is this possible?
Thanks
yes, I know that thanks.
I want to know if I can run 2 different timeframes at the same time with the same EA using the timeframe drop down, under the once per bar.
once per tick does not have this option
If I use the once per bar filter and set the timeframe to the 5 minutes will every candle that is connected to that run only on the 5 minute chart, no matter what the current chart is?
I would like to get an EA to run on both the 5 minute and the 1 minute chart, at the same time and wonder if that is the way to do that.
Also can I make this work but using every tick, rather than once per bar?
Thanks