Thread: How to code?
View Single Post
  #1087 (permalink)  
Old 07-22-2008, 10:05 PM
fireslayer26 fireslayer26 is offline
Member
 
Join Date: May 2008
Posts: 57
fireslayer26 is on a distinguished road
coding question

Right now this code works by checking to see if the current opening is higher than the previous bar. My question is how would I change it if I wanted it to see if it was higher OR EQUAL TO the previous bar?

if(Open[0] > Open[0+1] &&
Open[0+1] > Open[0+2] &&
Open[0+2]> Open[0+3] &&
Open[0+3] > Open[0+4] &&
Open[0+4] > Open[0+5] &&
Open[0+5] > Open[0+6]) Order = SIGNAL_SELL

Would I just add a = next to the greater than sign, like this = >?

Thanks!
Reply With Quote