♥ 0 |
Pete Is it possible to write a code for a watch list of Hull EMA and the 43EMA cross. If the HMA is above the EMA the background is green….If the HMA is below the EMA background is red….Lastly is there a ways to add how many bars ago the cross happened…. Thanks
Marked as spam
|
Private answer
We already did this: https://www.hahn-tech.com/ans/how-many-days-ago-ema-cross-on-2hr/ Most of the time, when I provide solutions I try to anticipate all the various ways other viewers may apply the code. So I do my best to provide user inputs so the code can be applied to almost any scenario you can imagine. Oddly enough, that previous post I linked above was one of your requests. Using the code provided in that post you will simply adjust the user inputs as follows:
NOTE: You did not specify the Hull moving average length in your request. Change the default input value from 9 to whatever value you desire. The list of available moving average types are here: https://toslc.thinkorswim.com/center/reference/thinkScript/Constants/AverageType.html
Marked as spam
|
Please log in to post questions.