#(For complete demo see parameterTestMACD.R)
#In a MACD strategy, we want to fast macd calcuated from less time periods (days)
#than slow macd signal:
## Not run:
# x<-setParameterConstraint(constraintLabel='macdPC',
# paramList=c('nFast','nSlow'),relationship='lt')
# ## End(Not run)
#The object x then can be used as one of the inputs to applyParameter function to specify the
#constraints between parameters.
Run the code above in your browser using DataLab