One Take Profit by Period
-
Hello, I am triyng that my EA when hit a take profit don´t open a new trade on the same period, just in the new one, but i can´t do it work.
ex. if a have a take profit of 1000 pips/day and i get on the day i would like that it stops and just return on the next day.
Can you help me?
-
I will make some block tomorrow, because many people were asking for this and I'm tired of making examples using multiple blocks
-
Here is some example by the way, a little bit advanced because small MQL4 code is used, but this is in fact more flexible: https://fxdreema.com/shared/Mnphpsdve
But I think that it will be best if I add some filter for the time directly in "Bucket of Closed Trades" -
Sorry, I didn´t understand your ideia...or you don´t understand me.
First, i´m using Metadrader 5.
Why draw a line in the chart?i will send my ideia to you analize if possible.
The problem is that it opens just a Short trade by day. It´s ok if a take profit in the first trade, but if i´m stoped it don´t open a new trade. -
Hello, Dreema. I think that i find the problem and i thing that could be a bug.
When I use block "Check last closed type" to filter trades that have stoped it doesn´t work, even if the trades were stoped.
It consider just as buy or sell position.I think that could be a bug. Can you check please? Thanks.
-
In Time.
It seems that the same problem occurs whit block "check how it was closed". It don´t recognize that the last trade was closed by Stop Loss. -
Try to put "For each Closed Position" above that "check how it was closed" and set it's "Not more than... " parameter to 1 (so only the very last closed trade will be selected).
It's a long story, but here is some explanation for these pink blocks (for MT4, but it's similar with MT5): https://fxdreema.com/demo/mt4-loop-how-it-works
-
Hello Dreema. I did what you recomend but it still doesn´t work.
It don´t recognize that the last trade was closed by stop loss. If a set on block "how it was closed" to "no matter how" it pass.
I really don´t know if I´m doing something wrong but I don´t think so.
Can you help me? Thanks -
Fixed