Stop making orders after closing previous one
-
Hello ,
Does anyone know how I can make the EA stop placing another order for specific time just after closing the previous one
I tried with on trade function then put " skip ticks ' block after it but that doesn't work , I don't know whyThanks
-
That block doesn't work right now. I have exactly that same problem. fxDreema is fixing it now (I hope).
-
There's a new block called no trades nearby
I'd like to have some time filter in that block @fxDreema Like I don't want any trade near that one regarding price or near the last closeed trade regarding time , so after a trade is close , no more new trades for 5 minutes in example and the option to chose if that was a running trade or closed tradeThanks mate for your efforts
-
@isp00rt
all On Trade blocks stop working just now even the one I used to use in my robots , I just put a simple log message after them and it doesn't work at all -
Sounds weird. I tried a few 'On Trade' blocks a few weeks ago and they worked perfectly. Maybe if you share your project we could help.
-
@isp00rt
No mate I used them all the time in all my project , it just from the past week they stop working , Can you try with yourself , just put a log message block after " Trade Created " or " Trade Closed " block and it won't pass -
You can check the age of the previous trade. Something like:
For each Closed Trade (with "not more..." set to 1) -> check age
And after that you can continue to buy or sell.
-
@fxdreema
That what I thought at the first , I did what you said the very first thing but it didn't pass at all , then I though maybe it check for the last closed trade and at start there's no last closed trade so I made a flag which only be true after the closing of the first trade Under " On Trade " tab , if that flag become true , it will start to check for the last closed trade so I only skipped the first trade but there I found that On Trade block don't work although I used to use it all the time , I put two simple blocks under onTrade tab to check , the first is " Trade Created " with the require magic number and then a simple log message to check but it didn't pass and nether for " Trade Closed " block , that's why I report that in Bug reports section but you just told me it works properly which is very strange situation now -
This may meet your requirement
https://fxdreema.com/shared/CIXCfRk8 -
@traderz I saw the report in the Bugs forum, but I tested these blocks and they work for me. I don't see problems with this. I also tested your latest project where you have 3 "Trade closed" blocks. They work only for groups 2 and 1 and you have many different groups, but I can change the number and it works.
But I don't know what is going on there. I see you calculate the difference between two Open prices, but you are doing this over trades from group 2 only. And then you are using the calculated values (GapAuto1 and GapAuto2) for other groups.
For the Tester you can just open and close some trade. Sometimes I do that. There is a block to check if the EA is working in the Tester.
The biggest problem I see is in the name of the project, it contains the word "Hedging". And no wonder that in the project you have the same group of blocks copied multiple times. Those hedging strategies only lead to such complexity and nothing good

-
Please help. I am having this same issue.