Deduction price for simple moving average
Forums › ProRealTime English forum › ProBuilder support › Deduction price for simple moving average
- This topic has 7 replies, 3 voices, and was last updated 3 years ago by CHEN CHEN.
-
-
04/22/2021 at 12:06 PM #167780
Hi:
please see attached, I wonder if anyone can help me to create the tool could be use from tool bar. the principle is to find the deduction price date of the 20, 60, 120 day simple moving average.
I used the Fibonacci time zone tool to create the one I could use, but once I change the instruments I have to reset it. ideally if can create one tool and add in the tool bar, each time to use it just put it on the chart.
it is very simple idea, four vertical lines, from first to second 20 days distance, from second to third 40 days distance, and from third to fourth 60 days distance.
ideally if can create a tool not a indicator, as a tool I could move it to different start date with same period on the chart to help me to predict how the simple moving average to go in the certain time period.
but if the platform not allow to add tools in the tool bar, then a indicator can do the same job is ok too.
I hope I have explained clear, hopefully someone can help to create the tool or indicator for me, really appreciate it
Thanks
Andy
04/22/2021 at 12:12 PM #167782Tools cannot be created by users.
04/23/2021 at 7:55 PM #167918Thanks Robertogozzi, what about indicator? I believe that can be done, as I use the indicator in different platform.
Please see the code I use in different platform attached, but I don’t know how to translate it in pro-realtime
04/23/2021 at 10:08 PM #167929Sorry, I don’t know that language.
I can see it’s about a group om MA’s, but nothing else.
04/24/2021 at 4:05 PM #16796004/26/2021 at 10:15 AM #168040Please see the attachment, pink line is 20 ma, blue line is 60 ma, green line is 120 ma, and red is 200 ma.
the numbers 20, 60, 120, 200 in the red circle means those days before today’s date.
it can help me to predict how the MA moving average is going to do in following days, for example 60 ma 60days ago price is above current price in next 25+ days,
if current price stay same level, the 60 ma should trend down in next 25-30 days, it will put pressure on the current price
not sure my explanation is clear enough ? let me know
Thanks
Andy
04/26/2021 at 10:50 AM #168046So that code should do what you require:
1234567defparam drawonlastbaronly=truedrawtext("20",barindex-20,low[20]-averagetruerange[14][20],dialog,bold,20)drawtext("60",barindex-60,low[60]-averagetruerange[14][60],dialog,bold,20)drawtext("120",barindex-120,low[120]-averagetruerange[14][120],dialog,bold,20)drawtext("200",barindex-200,low[200]-averagetruerange[14][200],dialog,bold,20)return04/26/2021 at 11:53 AM #168052 -
AuthorPosts
Find exclusive trading pro-tools on