/  Forum 

Expert System 'Commentator'. Practical Use of Embedded Indicators in an MQL4 Program The article describes the use of technical indicators in programming on MQL4. 


fxcourt: adding a zero on the end of each take profit and stop would be a solution if you can't code it also, u may need to send the order withouut TP & SL & use OrderModify() for SL & TP 

spatx: Just add a zero onto the the TP & SL settings in the EA Sherry. Hence for 31, enter 310 etc.I found 100 pips a day expert advisor by Metaquotes and it works great, except with 5 digit brokers. Would anyone be willing to code it for a 5 digit broker? Here is the location where I downloaded it: http://www.mql4.com/go?http://www.fxstreet.com/metatrader/addons/ccde17176b8046798fe2639a8ee28547 Thank you! I very much appreciate it. Sherry 

You need to modify TP, SL and slippage.
//++++ These are adjusted for 5 digit brokers. double pips2points, // slippage 3 pips 3=points 30=points pips2dbl; // Stoploss 15 pips 0.0015 0.00150 int Digits.pips; // DoubleToStr(dbl/pips2dbl, Digits.pips) int init(){ if (Digits == 5  Digits == 3){ // Adjust for five (5) digit brokers. pips2dbl = Point*10; pips2points = 10; Digits.pips = 1; } else { pips2dbl = Point; pips2points = 1; Digits.pips = 0; } // OrderSend(... Slippage.Pips * pips2points, Bid  StopLossPips * pips2dbl 



In my opinion, the equity graph matters a lot more than the balance graph, despite what some people think. I would assume that the EA under consideration is one of the many that suffer large equity drawdowns that are invisible in the balance graph because of high risk (or suicidal) money management. The main problem is that as well as a good chance of steady profits, there is very likely a sizeable chance of a margin call wiping out most of your account.


spatx: Would anyone be willing to code this EA to work at Smart Trade FX? Here is the location where I downloaded it: http://www.mql4.com/go?http://www.fxstreet.com/metatrader/addons/ccde17176b8046798fe2639a8ee28547 Thank you! I very much appreciate it. Sherry extern double Lots = 0.01; // int init double gdPoint; int init() { // gdPoint = Point; // check if we are on a 5 digit broker if(Digits==3Digits==5){ gdPoint = gdPoint*10; Slippage =Slippage*10; lTrailingStop= lTrailingStop*10; } // return(0); } put this in the ea from the line extern double Lots = 5; so you replace this line with the new line at the top of this code and that will load on any broker 

Tradingjunky: extern double Lots = 0.01; // int init double gdPoint; int init() { // gdPoint = Point; // check if we are on a 5 digit broker if(Digits==3Digits==5){ gdPoint = gdPoint*10; Slippage =Slippage*10; lTrailingStop= lTrailingStop*10; } // return(0); } put this in the ea from the line extern double Lots = 5; so you replace this line with the new line at the top of this code and that will load on any broker and to add on you may need to replace Point with gdPoint every where in the code 
Would anyone be willing to code this EA to work at Smart Trade FX?
Here is the location where I downloaded it: http://www.mql4.com/go?http://www.fxstreet.com/metatrader/addons/ccde17176b8046798fe2639a8ee28547
Thank you! I very much appreciate it.
Sherry