|
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.
|