Shift Indicators Forward
Forums › ProRealTime English forum › ProBuilder support › Shift Indicators Forward
- This topic has 12 replies, 4 voices, and was last updated 7 years ago by Nicolas.
-
-
09/21/2016 at 10:07 AM #13448
Hi All,
I am adding some custom indicators to a chart and coding them in the probuilder. I need to shift a couple of indicators forward[n] periods and shift one back[n] periods.
The easiest way to explain this is to look at the Ichimoku indicators. This set of indicators has 2 lines shifted 26 periods into the future forming a cloud and it also has current price plotted 26 periods in the past as a “range” check.
I originally tried this which I put together from another query:
123456789101112myTKD9 = CALL TKD9myKD9 = CALL KD9a=myTKD9b=myKD9c=a+bd=c/2y=d[598]return yHowever this hasn’t achieved what I wanted.
Would be very grateful for any help or advice.
Many Thanks
Liam
09/21/2016 at 10:31 AM #1345311/06/2016 at 12:24 PM #1603411/07/2016 at 9:53 AM #16054This is a very often asked question here 🙂
Ichimoku is calculated and rendered directly by the platform itself, because of a rendering engine limitation on client side, it is not possible actually for customers to achieve the same things by code. I don’t know if its plan to modify it in a short term, but PRT is aware of this and so they should do something for it in the future .. but don’t know when sorry.
11/07/2016 at 3:08 PM #16087Hi Nicolas,
Thank you very much.
OK, I’d like to find a workaround.
What about arrays?
Can I create one ?
Can I overwrite a system array that I don’t use for my indicator?
I have read about you can’t create array, but the situation could be changed.
THX a lot,
Regards,
Mauro
11/07/2016 at 3:35 PM #16091If you have been able to build arrays, it should have solve the problem, at least to have these values in memory. Unfortunately, it is not possible to build your own arrays, the best you could do is to set your values into different variables names .. but of course fetch them within a loop is no way possible.
11/08/2016 at 5:56 AM #1613011/08/2016 at 8:54 AM #1613512/23/2016 at 11:16 AM #1902912/23/2016 at 11:38 AM #1903012/23/2016 at 2:32 PM #1904410/05/2017 at 3:35 PM #48308Is it possibile to obtain the shifted value of an indicator in PRT ver 10.3?
i.e. I need MovingAverage of the x periods in the past… (like x bars before current in MT4, “shift” parameter)
Thanks
10/05/2017 at 3:50 PM #48309 -
AuthorPosts
Find exclusive trading pro-tools on