restart a strategy
-
hi, there is a way to restart a strategy:
es ..
after a close restart the strategy from beggining,
restart also
group number,
history trades,
profit,
loss
ecc... like start a new EA again -
Of course. Just reinitialize all variables within the EA to their original values. Do you have any specific project to take a look at?
-
thanks for the reply,
not at all ... just trying to do it... do you have some advise for me ? -
Well, it depends on your project. In general this is what you need to consider when creating an EA:
- What constants do I need?
- What variables do I need?
- What initial value will variables have?
- What values will variables have while active?
- When will my variables be restarted?
Ask yourself questions 2 to 5 all the time. That way you will have a permanent control of your EA. I will be more than happy to help you if you want to begin your project. Share it here and we'll work on it.
-
hi, I have an EA with a Ryan Jones Money Managment system, and I want to Restart the initial balance when I make 5 profitable trades.
any idea how can I do it?
Thanks
-
Obviously I cannot give you the specific answer without seeing your project. It will depend on your current variables distribution. Could you please share it?
-
@l-andorrà Yapp a bit too abstract question.
-
@l-andorrà 0_1568258649259_AMLO RYAN ON-OFF.mq4
ok This is the project, on the buy option I used The fixed ratio by Ryan Jones System so, the lot size will increase when the balance gain certain value. but it starts with initial balance on your account
What I want to do is , when I reach 5 profitable trades in a row the EA take the balance at that time and take it as the new initial balance for the next trades
I hope I explain because I speak spanish so I do my Best in english
Artpat
-
Before looking at your balance I recommend you the following:
-
Block ID 12 should be renumbered as Block ID 1. This is the first think you need to do every day and now it's the last thing the EA will do according to its ID.
-
'Once per tick' block is unnecessary. Every block on the 'On tick' tab, as is your case, will be executed every single tick, so that's redundant.
-
You should write something on the 'Label' box on the 'Alert message' block. If not, the block will not be activared.
-