Current Bar touches EMA


Category:
0
0

Hello Pete. Can you assist me with a script that helps me to identify stocks in my watchlist that are currently trading near the 9 period EMA?  I would like the background color of the watchlist to appear as white if the current bar has touched the EMA. If the price has not touched the EMA I would like the background to appear as black. Thank you Sir!

Marked as spam
Posted by (Questions: 19, Answers: 18)
Asked on April 11, 2020 2:41 pm
113 views
0
Private answer

This is very simple to construct using the Condition Wizard. Please review the examples provided in the following video.

https://www.hahn-tech.com/thinkorswim-condition-wizard-watchlist/

Examples include how to modify the code generated from the Condition Wizard to dynamically set the background color.

The only detail you need to cover is the high is greater than the ema while at the same time the low is less than the ema. So, two simple conditions to add using the Condition Wizard. Followed by some very simple modifications to generate your background colors.

 

 

Marked as spam
Posted by (Questions: 37, Answers: 4089)
Answered on April 11, 2020 4:32 pm