Hi all,

I'm trying to follow a strategy outlined on the following website: http://www.forexball.com/news/view/id/127.

Would anybody be able to take a look to ensure I have the logic right and suggest if any improvements could be made? (forgive me - it's my first attempt at writing a script). It makes a pretty consistent loss....
Quote:
function Scalp()
{
vars Price = series(price());
vars EMA100 = series(EMA(Price,100));
vars EMA50 = series(EMA(Price,50));
vars SOsc = series(Stoch(5,3,MAType_EMA,3,MAType_EMA));
int OscCrossUpp = 80;
int OscCrossLow = 20;
TakeProfit = PIP*7;
Stop = PIP*2;


if(crossUnder(SOsc,OscCrossUpp) && EMA50[0] < EMA100[0] && between(Price[0], EMA50[0],EMA100[0])){
Stop = PIP*3+EMA100[0]-Price[0];
enterShort();
}
else if(crossOver(SOsc,OscCrossLow) && EMA50[0] > EMA100[0] && between(Price[0], EMA100[0],EMA50[0])){
Stop = PIP*3-EMA100[0]+Price[0];
enterLong();
}
}

function run()
{
BarPeriod = 1;
LookBack = 140;
StartDate = 2009;
Spread = 0.2*PIP;

Scalp();

}