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