Hello.For one powerful Martingale system we need to conserve your Equity- for example open one sell, but the tendency is in additional direction, following 50 pips we replie- open sell but with dual price, if the tendency continue we replie ect.Well following one correction we get the profit... simple and transparent, But When we begin this correction following 50 or following 5 000 pips?How many pips we can expect 5 or more 500 pips at other direction?Hmmm I know many more people alredy think before for this... yes this isn't The Holy Graill, But- if you can become bit more analytics information, we can build decent egy.My idea and we desire of EA for this- just how many pips is Maximum trend without retrace of 10-20-50 pips?Yes just for Before, for Background interval but this is will be great base for prospective work.I'm not mql developer and please no laught, however I provide discription for my ideia-This EA is Not for trading, we only need of stat Information;One factor- $reverse- in this factor we can write How many pips we desire after the tendency ( this value is on your MM and we produce egy for this results) and EA compute the evaluation for this worth- For my instance $reverse=30 pips; Well this is actually the process- EA start and get current price- for example 1.5000 ok in second bar ( in tick, 1m, 5m or more although little time period provide more accurate results ) get the price again for example 1.5050 and establish that the bullish trend ok.Next bar EA assess- price is 1.5100, evry current Max pair worth is addin in one Current Temp $curentmaxprice, next price is 1.5080=$currentprice the difference between... sorry I'm php/mysql developer but I never compose mql code however I think we want simmilar for this


$reverse=30; // the pips reverse factor who we desire for x2, x4, x8, x16 ect alongside profit
$currentprice=0; //we begin with 0 but in evry period check precision this
$currentmaxprice=0; //we begin with 0 but following evry new check we compute
$maxpricetotal=0; / //maximum tendency movement without undo with 30 pips
//could be one while here
if($currentpricegt;$currentmaxprice)$currentmaxpri c e=$currentprice;
if($currentmaxprice-$currentpricelt;=$reverse){$currentmaxprice=$maxpr ic etotalcurrent;
$newagain=1; //factor to get epty currentmaxprice and begin again the count that the pips in oher direction
if($maxpricetotalcurrentgt;$maxpricetotal)$maxpric e totalcurrent=$maxpricetotal;

in the long run in $maxpricetotal we have the utmost value pips for a single tendency without retrace from 30 pips... In this interval is 300 and we now utilize a 50 pips to your martingalle system we stop to the 6 level 1, 2, 4, 8, 16, 32, and this is on your MM;When the results will be 600 but we cannot conserve the capital for 20 levels your measure will be for example 100 pips- 6 levels again.

Well... thats it... in advance really thanks if anyone can help for programing and provide many more ideas- if we have a stat calculation for quite long time behind 10 years for example and if the focus is one exotic pair AUD/CAD or even AUD/NZD with 2 500 - 3 000 pips movement for last couple of years we can produce good and ... little of little more safetly egy for your own capital.