Turn EA and Off
13 replies
ssdex
8 years ago #113947
Hello,
I’m looking to have the EA to start trading 1-hour after the market opens after the weekend. I want the EA to trade until the close on Friday.
What I’m looking for is the EA to not take any trades until 1-hour after the open after the weekend and then trade all week long. If there are trades in then those would not be affected by the times.
I’m struggling on the right way to put this down with the EA Wizard rules. Does anyone have some ideas on how to accomplish this?
Thanks for any help.
Regards,
James
tomas262
8 years ago #131315
So market opens at 2200 GMT Sunday and you want to start trading 1 hour after that (2300 GMT) and finish on Friday?
Let me know if I get it correctly so I can make up some rules for you in the Wizard.
ssdex
8 years ago #131319
So market opens at 2200 GMT Sunday and you want to start trading 1 hour after that (2300 GMT) and finish on Friday?
Let me know if I get it correctly so I can make up some rules for you in the Wizard.
Hello Tomas262,
Thanks for the reply. being able to pick your brain has helped me a lot to learn how to use the EA Wizard software. Thanks for all your help.
Yes, my broker doesn’t have a Sunday bar but should be the same. I’m looking to have the EA start looking for new trades 1 hour after the market opens on Sunday/Monday and stop looking for new trades on Friday when the market closes.
Thanks for any input. I tried a few things with the day and time but I haven’t figured out how to get it to work yet. Thanks again.
Regards,
James
MasterSye
8 years ago #131326
Hello. Have you found a solution to your problem yet? I also want the same for my EA so I won’t have to deal with gaps on weekend.
tomas262
8 years ago #131329
This should solve it. You just have to define correct logic relationships …
ssdex
8 years ago #131336
Tomas262,
Thank you for the example code. I had the right idea just not thinking i needed all the other days of the week. This should be fairly simple to put in front of my trade rules. Thank you again for all your help. 😀
Regards,
James
MasterSye
8 years ago #131382
Thank you Tomas! Will use it on my EA 🙂
Rocksolidfx
7 years ago #138683
Hey guys hope all is well. Wondering if you can help
I was reading the post and tried to include the above but it says
so i defined the int function in the strategy Home still no joy
Rocksolidfx
7 years ago #138684
hey guys this 1 worked . nut still instrested to find out the above answer
https://strategyquant.com/forum/topic/3244-off-ea-when-it-takes-profit/?hl=turn
Thank you
tomas262
7 years ago #138692
Hello, ‘sqGetPLInPipsToday()’ is a standard function included in every EA generated by EA Wizard. Can you describe exactly what you did because you should not receive such message
Rocksolidfx
7 years ago #138742
Hi Tomas Thank you for the reply
I used the other method it works fine when profit target is met but i tried to do the opposite when Account equity is negative …………..No joy what am i doing wrong
Thank you
tomas262
7 years ago #138780
Hello,
I could not make your project work. Can you describe your trading rules? Maybe I can design another version
Rocksolidfx
7 years ago #138803
tomas262
7 years ago #138872
I looked at your EA once more. You said DailyProfit works fine while DailyLoss is not working. Maybe it is because you switched order wrong way.
Instead of
AccountEquity < StopAtDailyRisk – DailyAccountBalance
you could try the opposite
AccountEquity < DailyAccountBalance – StopAtDailyRisk
Viewing 13 replies - 1 through 13 (of 13 total)