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.
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