AFTER Those problems fixed, I will enchanted my EA with C.O.T.L system...
So It can be more agresive
Hi. I have just had a very quick look at your code and there are serious problems with the way you are dealing with open orders. (that's as far as I got)
Check out the use of the keywords 'Point' and 'Digits'.
You are trying to close orders using the price of a moving average which will undoubtedly be far away from what the current Ask and Bid are - in other words, you must use the Ask and Bid prices to close (unless those are meant to be Limit orders)...
I agree with you omelette...
do you have any idea how to edit it??
if i use order limit, can the EA do the cut loss action??
I agree with you omelette...
do you have any idea how to edit it??
if i use order limit, can the EA do the cut loss action??You haven't outlined precisely what your strategy is so I am not sure what needs changing. As you have posted the EA I presume you are not worried about other knowing it so you can either post what the rules are and someone will (might) fix it or you can PM them to me and I will have a go when I have time - I am knee-deep trying to debug my own code atm and just check out TSD when it all gets too much...
Okay... I will pm you omelette.
I need your help here to finish the EA development.
=======================================
If Anybody else here in the forum also have the solutions, please paticipate in.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I've made this EA based on my Gambling Experience & Strategy in Casino.
And I use MA as the trigger to place an order.
This is the first time I develop an EA and I faced 3 great problems.
I need solutions from you whom are more senior and expert than me.![](https://c.mql5.com/forextsd/smiles/nerd.png)
My 1st Problem : My EA can't place order at the exact price I've set ( with mod 10) ex: 115.11 , 116.89 which should be 115.10 , 116.90 (I've used NormalizedDouble ( X ,1) but it failed).
My 2nd Problem : My EA shouldn't place more order if there's been an order with the same price. I've tried to put every OpenOrderPrice in memory but still not working properly.
My 3rd Problem : My EA should cut loss all possition and calculate the total loss of the cut loss action. Cut loss will occur if the bar crossed MA and hit the lowest entry price ( with mod 10 ).And then new order will be placed at the cut loss price but with the reverse action ( buy become sell , sell become buy). The quantity of the new order = total lost from cut loss + lots
I will attach the EA, and I hope this topic will be usefull for all of us...
==MAY GOD LOVES ALL THE TRADERS==
Rudi Saputra
rudi.saputra@gmail.com