Multiple MAs within 5% of each other


Category:
0
0

Trying to create a scan with multiple moving averages within 5 % of each other. I thought I would use min and max of each set to do this but cant get it to work. I see min/max is only for two variables. Is there a command that looks at an array of like 5-7?  Any thoughts?

Attachments:
Marked as spam
Posted by (Questions: 5, Answers: 1)
Asked on March 8, 2020 2:01 pm
74 views
0
Private answer

This question has already been posted:

https://www.hahn-tech.com/ans/scan-for-stocks-who-price-is-stacking-around-multiple-emas/

I will not be able to provide a solution here in the forum out of respect for clients who have already paid for a professional solution similar to this request.

I can tell you the Max() and Min() functions only take two parameters. Which explains why your code is generating an error. Details here:

https://tlc.thinkorswim.com/center/reference/thinkScript/Functions/Math---Trig/Max

https://tlc.thinkorswim.com/center/reference/thinkScript/Functions/Math---Trig/Min

 

Marked as spam
Posted by (Questions: 37, Answers: 4087)
Answered on March 8, 2020 2:02 pm