View Single Post
  #10 (permalink)  
Old 06-29-2005, 04:38 AM
rondio rondio is offline
Freshman
 
Join Date: Jun 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
rondio is on a distinguished road
Default

Quote:
Originally Posted by rondio
Scorp,
is there a simple way to add a time function to a ma a cross? i had tried many variations on the code below, but i can not get it to work. seems like it should not be that hard. any ideas?

// Check for BUY, SELL, and CLOSE signal
IsBuying = (ma2_0 > ma3_0 >= (15)Minute);
IsSelling = (ma2_0 < ma3_0 >= (15)Minute);

the logic i am trying to code is to buy if ma 2 is greater than ma3 for 15 minutes or more.
anybody know any resources on the net i can use to solve this problem? i believe i could have a very powerful system if i could get this to work. i have not been able to find anything simular. if anybody could help i would appreciate it.

thanks
Reply With Quote

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now