Macd is off the code.

Author: xu6700568, Created: 2019-07-05 01:48:46, Updated:

Previously on Baidu online, the formula for the deviation DIFF: = EMA (close to 12) - EMA (close to 26); DEA: = EMA ((DIFF, 9); MACD:= ((DIFF-DEA) *2); B: =BARSLAST ((REF ((CROSS ((DEA, DIFF, 1)); The top back: REF ((H, B+1)


More

xu6700568Sorry, it's my own fault, it's an if question, I know.

xu6700568Hi, can you tell me if the Ma language can perform both functions?

The Little DreamFor more information on the strategy design, you can search Baidu for information on the drafting design of the Malay language.

xu6700568DIFF:EMA (close to 12) -EMA (close to 26); DEA: EMA ((DIFF, 9); MACD: (DIFF-DEA) *2; B: BARSLAST ((REF ((CROSS ((DEA, DIFF), 1)); // IF ((REF ((H, B+1)

The Little DreamYour code, re-testing, can run, please report an error? Are you running a backtest or an analog disk? The test can be run.