As a means to seperate when the market is trending or moving sideways, I like Welles Wilders indicators, directional movement. In one system test I want to limit trades to trending markets and have the following buy signal
(ADX(14)>25) and (Ref(ADX(14) ,-1 )>25) and (Ref(ADX(14) ,-2 )>25) and (PDI(14)> MDI(Opt1) )
My understanding is that this should place a buy order if the last three days ADX(14) value is above 25 and the positive direction indicator is above the negative direction indicator. But, when I view the results I am getting buy trades when the ADX(14) is below 25!
Can anyone see where I'm going wrong, or is this a metastock bug!
Thanks Stephen
(ADX(14)>25) and (Ref(ADX(14) ,-1 )>25) and (Ref(ADX(14) ,-2 )>25) and (PDI(14)> MDI(Opt1) )
My understanding is that this should place a buy order if the last three days ADX(14) value is above 25 and the positive direction indicator is above the negative direction indicator. But, when I view the results I am getting buy trades when the ADX(14) is below 25!
Can anyone see where I'm going wrong, or is this a metastock bug!
Thanks Stephen