The following code was used to produce the two indicator lines shown in the MACD crossover chart. Trade signals shown on the chart were generated at the moment the two indicator lines crossed. The parameter values provided are not those used to create the illustration chart. We encourage you to find parameter values that best suits the market, chart type and time frame you are using. ----------------------------------------------------------------- Input: series(close), len1(20), phase1(-50), len2(40), phase2(50), len3(10), phase3(100); value1 = JRC.JMA.macd.2k ( series, len1, phase1, len2, phase2 ) ; value2 = JRC.JMA.flex.2k ( value1, len3, phase3 ) ; plot1 ( value1, "JMA MACD" ) ; plot2 ( value2, "trailing MA" ) ; -----------------------------------------------------------------