Thank you for your patience, jcl. The script is a simple script which depending on the parameters of Stop Loss and Target gives around 100% Anual Return for EUCHF:


A1,A2,A3 Ar62% compiling...............
Error 055: EUR/CHF 2009 price history missing
Error 055: EUR/CHF 2010 price history missing
Error 055: EUR/CHF 2014 price history missing
BackTest: A1,A2,A3 Ar62% EUR/CHF 2009..2014
Profit 4013$ MI 118$ DD 1015$ Capital 3554$
Trades 4280 Win 42% Avg +11.6p Bars 56
AR 107% PF 1.55 SR 0.78 UI 9.3% Error 12%

The script is the following:

function run()
{
BarPeriod = 240;

vars A1 = series(priceClose(2));
vars A2 = series(priceClose(1));
vars A3 = series(price(0));
//Vlr = 10*PIP


if (A1 < A2 and A3 < A1) enterLong();
if (A1 > A2 and A3 > A1) enterShort();

Stop = 35*PIP;
TakeProfit = 80*PIP;
//ExitTime = 1;

}

I have been testing it with different values of stop loss and target, and after your clarification I understand that when Test doesn't give any result it is because some previous result was the same as present one. The trick I had to do for keep on giving results is to change slightly the values of Stop Loss and Target, like one more figure or so, and after some runs, I can put back the values which I was interested to know and then it picks them up and gives a result. Result which I forgot from the first run it gives it back again doing this trick.

Last edited by Mangal; 01/03/14 01:58.