# NOT RUN {
#(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')
# }
# 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