Quote:
Originally Posted by lcfxtrader
Wolfe,
Did you write the take profit and stop loss % to be based on account balance before the trade progressions begin (I believe this is what I requested wasn't it)? The EA has been taken profits, however, all the open positions have not added up to the % TP that I have set. Could you please explain why? All the orders should be closed on either the SL or TP being hit. I can send you print screen if needed.
Thanks,
lcfxtrader
|
I tried to code the way you explained. Not sure where the problem is yet. Maybe slippage? Maybe the time it takes to close all orders coupled with a fast moving market? Maybe my code! I'm no expert coder, that's why I am doing this for free. I am enjoying this project and am learning a lot from everyone's input.
You do need to enter your TP_Percent and SL_Percent as whole numbers. Example if you want 1% enter 1, not 0.01. The code changes to a decimal later.
Take_Profit=TP_Percent*0.01;
Stop_Loss=SL_Percent*0.01;
A new version will be posted later tonight.