View Single Post
 
Old 12-16-2008, 03:48 AM
rwb181 rwb181 is offline
Junior Member
 
Join Date: Dec 2008
Posts: 12
rwb181 is on a distinguished road
One more try

Forget everything past, this is what I meant;

if(iOpen(NULL,0,1)<iClose(NULL,0,1) && iOpen(NULL,0,2)>=iClose(NULL,0,2)) siCurrentDirection = 1; //up
if(iOpen(NULL,0,1)>iClose(NULL,0,1) && iOpen(NULL,0,2)<=iClose(NULL,0,2)) siCurrentDirection = 2; //down

That's what I get for being in a hurry.

It is a good thing my head is attached.