The resource loading... loading...

For beginners, the EMA indicator can only calculate the EMA of the K line, but not the EMA of other values?

Author: belove1100, Created: 2021-01-27 10:38:42, Updated:

var2:=LLV ((LOW 10); Var3: = HHV ((HIGH, 25); The power line: = EMA (((CLOSE-var2)/(var3-var2) * 4,4); This is how it is written in the Malay language. How to write in python, if you are new to learning, please teach. I'm trying to translate some of the information I wrote myself, but I can't use it: close1 = bar_arr[-2][]
hh25 = TA.Highest ((bar_arr, 25, High) ll10 = TA.Lowest ((bar_arr, 10, Lowest) Dong = (close 1-ll10) / ((hh25-ll10) * 4 if dong and len ((dong) > 4: Ema = TA.EMA ((dong, 4)) is the name of the Log ((ema)) I hope there's a God who can help me.


More

The grassIf you need to input an array yourself, it is recommended that you learn js or python. You can learn by following https://study.163.com/course/courseMain.htm?courseId=1006074239&share=2&shareId=400000000602076 I'll be in for two or three weeks.

belove1100Okay, thank you. I'll take it slowly from the basics.