Thread: Martingale EA
View Single Post
  #97 (permalink)  
Old 01-16-2008, 01:19 AM
wolfe's Avatar
wolfe wolfe is online now
Senior Member
 
Join Date: Jan 2006
Posts: 820
wolfe is on a distinguished road
Quote:
Originally Posted by lcfxtrader View Post
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.

Last edited by wolfe; 01-16-2008 at 01:28 AM.
Reply With Quote