Experts: X trader v2

 

X trader v2:

Trades when two moving averages cross each other

Author: Tonny Obare

[Deleted]  
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?
[Deleted]  
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.
[Deleted]  
 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..
 
2013.02.22 01:18:28 2012.04.10 18:00  MT4-FST Expert EURUSD,H1: expert stopped

What's wrong? 


[Deleted]  

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

[Deleted]  

Hey Tony

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

[Deleted]  

hey tonny

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

 
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);


[Deleted]  
comment coder le trailing stop please
 

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