Re: Helps with lot size in EA
Hi, I created an EA using FXPRO QUANT but I can�t get a particular condition to work. I want the lot size to increase in steps if the previous operation with that same magic number was won. And it�s restarted at the initial value if the operation was lost. Could anyone give me a hand? Believe in your analysis and keep the plan, don�t panic with the moves.
Re: Helps with lot size in EA
I think it would be useful for you to share more specific details about how you want to calculate lots. When should they increase? How much? When to reduce? How? How and when to restart? Without that data, we can only guess what you need.
Re: Helps with lot size in EA
Sorry, I forgot to attach the EA. I want the lot to double (either by fixed steps or multiplication)
Re: Helps with lot size in EA
Change the "lot size" and the "lot step" as you like, compare it and try it.
Re: Helps with lot size in EA
Thanks, but for some reason it's not working for me, bro. When I compile these errors, I get these errors: The statement of ''MagicIndex'' hides the global statement on line 19 It's missing to check the returned value of ''OrderSelect''' on line 232 Believe in your analysis and keep the plan, don't panic with the moves.
Re: Helps with lot size in EA
Can no one really add that function to the EA? Believe in your analysis and keep the plan, don't panic with the moves.
Re: Helps with lot size in EA
Maybe you could look for an EA that is already working well and modify it with the conditions you�re looking for. The code you have is not a good starting point, you can�t even run a sales order correctly. Also, you need to have operations in the history to start operating. I started cleaning it but honestly I don�t care to continue. It compiles error-free now, and the magic number is consistent in all functions (before it wasn�t.
Re: Helps with lot size in EA
Here's another sign crossing EA. Double the lots when there's a winning streak. It's generic, you can buy, sell or both. It includes plenty of info for debug, so you can edit it yourself and adjust it as you like.
Re: Helps with lot size in EA
Thank you very much, brother. I appreciate your help. You�re very close to what I asked for, only a minor detail is missing, I don�t know if it can be implemented or not. The EA you shared just doubles the lot in the second operation. The third one comes back to the minimum. I wanted it to continue to increase after every win, not to restart after one time. Believe in your analysis and keep the plan, don�t panic with the moves.
Re: Helps with lot size in EA
Hello everyone, Does anyone have an indicator that allows placing multiple purchase/sale orders or limits on a chart? Thank you. The fool�s work exhausts it because he doesn�t know how to enter the city.