♥ 0 |
Hello Pete, Could you please code a green arrow that shows below the price bar when the price closes on the top 30% (have the ability to change the number) of the bar (based on a time chart – 1min – Monthly) AND it is above the 50 simple moving average (have the option to change the type of moving average and how it is calculated – like in TOS). Also, a red arrow that shows above the price bar when the price closes on the bottom 30% of the bar AND it is below the 50 simple moving average. Thank you. John
Marked as spam
|
Private answer
I’m going to steal some code from a previous post for this. Then adapt it just a tad bit to fit your request. Here is a link to the previous post: https://www.hahn-tech.com/ans/candle-closes-lower-half-compute-percent-total/ Here is that base code with a few items added to include your additional specifications:
Screenshot below shows the result. Marked as spam
|
Please log in to post questions.
Thanks Pete! Works very well. Funny thing is that I was looking at the post you referred to before asking for your help. But I couldn’t figure in how to do it.