MA cross with shift?????????

 

hi ,is it possible to make an indicator that alerts to when 2 moving averages with shift added cross each other? i.e....sma 14 with shift of 8 cross with a sma 7 with a shift of 5. any help would be great even if its just a NO it cant be done,thanks

 

yes

Wouldn't be too hard, I think: the last argument tells which bar of the indicator to read off, and you would read off the same bar as you shift the indicator in order to get its value for "this bar".... iMA( NULL, 0, 14, 8,MODE_SMA,PRICE_CLOSE,8) versus iMA( NULL, 0, 7, 5,MODE_SMA,PRICE_CLOSE,5).