Download MetaTrader 5

Experts: X trader v2

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
183632
MetaQuotes Software Corp.  

X trader v2:

Trades when two moving averages cross each other

Author: Tonny Obare

MQL4 Comments
16319
MQL4 Comments  
Hey Tonny!
Great EA.. however TP and SL don't work properly.. I tried with TP 70 and SL 50 but they don't work.. any idea?
Tonny Obare
1025
Tonny Obare  
gianmarcosaleri:
Hey Tonny!
Great EA.. however TP and SL don't work properly.. I tried with TP 70 and SL 50 but they don't work.. any idea?
Close all trades opened by the EA and test it again.
MQL4 Comments
16319
MQL4 Comments  
 I did it.. if I put TP "30".. it turns out to be 300 pips! and if I put "3" it does not put any TP..
Pedro Pacheco
310
Pedro Pacheco  
2013.02.22 01:18:28 2012.04.10 18:00  MT4-FST Expert EURUSD,H1: expert stopped

What's wrong? 


MQL4 Comments
16319
MQL4 Comments  

i use FXPRO as a broker.. don't know how use TP and SL.. this is a great EA! Can you help me Tonny?

MQL4 Comments
16319
MQL4 Comments  

Hey Tony

can you made the same version with stop loss and closing orders at the cross of ma Please

MQL4 Comments
16319
MQL4 Comments  

hey tonny

sorry correction with trailing stop and closing orders at the cross of ma 

Assy
3
Assy  
it work fine but if TP and SL don't work try this, i didn't tested it: 

                // Calculate take profit
                double tpb=NormalizeDouble(OrderOpenPrice()+TP*10*Point,Digits);
                double tps=NormalizeDouble(OrderOpenPrice()-TP*10*Point,Digits);
                // Calculate stop loss
                double slb=NormalizeDouble(OrderOpenPrice()-SL*10*Point,Digits);
                double sls=NormalizeDouble(OrderOpenPrice()+SL*10*Point,Digits);


MQL4 Comments
16319
MQL4 Comments  
comment coder le trailing stop please
Sirru82
71
Sirru82  

SL & TP are not verified and adjusted against StopLevel. That is why you all having problems.

123
To add comments, please log in or register