extern int StopLoss=10; extern int TakeProfit=10; int StopLevel; string Symb; double loss; double minSize; double PipValue; //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ int init() { //---- StopLevel = MarketInfo(Symbol(), MODE_STOPLEVEL) + MarketInfo(Symbol(), MODE_SPREAD); Symb = Symbol(); minSize = MarketInfo(Symb, MODE_MINLOT); //---- if (Digits==3 || Digits==5) points = Point*10; else points = Point; //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { //---- int StopMultd=10; int Slippage=Slip*StopMultd; int MagicNumber1=20101,MagicNumber2=20102,i,closesell=0,closebuy=0; double TP=NormalizeDouble(TakeProfit*StopMultd,Digits); double SL=NormalizeDouble(StopLoss*StopMultd,Digits); ........ ........ ........ ........Here is where I verified the broker informations
TP = TakeProfit * StopMultd = 10 * 10 = 100. Big deal. Tells us NOTHING.
There are no mind readers here. Do you really expect an answer when all you've posted is "TP = 100"

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi guys
i have a little problem with my demo account FXCM
My EA as a parameter SL : 10 ans TP : 10
When i Backtesting the EA it's perfect, this respect the SL and TP
But, when i launch my EA on the plateform demo, and when it opens a position, the SL and TP are 24 ...
I don't understand the problem, it is there Digits ? or Other ?
I thank you in advance for your answers
have a good day !!