View Single Post
  #7 (permalink)  
Old 12-16-2008, 03:40 AM
rwb181 rwb181 is offline
Junior Member
 
Join Date: Dec 2008
Posts: 12
rwb181 is on a distinguished road
My Mistake, this is correct;

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

Sorry for any confusion.
Reply With Quote