|
Shorter yet
I have learned that this will work as well;
if(iOpen(NULL,0,1)<iOpen(NULL,0,2) && iOpen(NULL,0,2)>=iClose(NULL,0,2)) siCurrentDirection = 1; //up
if(iOpen(NULL,0,1)>iOpen(NULL,0,2) && iOpen(NULL,0,2)<=iClose(NULL,0,2)) siCurrentDirection = 2; //down
A little shorter than the first I made.
I believe I can use the "TimeFrame" standard constant inside these to get
data from other time frames. But, this will work for now.
Have a great day Everyone!!
|