Draw segments in the future barindex
Forums › ProRealTime English forum › ProBuilder support › Draw segments in the future barindex
- This topic has 11 replies, 3 voices, and was last updated 6 years ago by Nicolas.
-
-
01/30/2018 at 6:12 PM #61010
How can I draw segments starting from last bar and ending in the future?
In some videos I see that someone did it01/30/2018 at 7:51 PM #6101401/30/2018 at 8:35 PM #61019For example this video:
01/30/2018 at 8:46 PM #6102001/31/2018 at 4:32 PM #61113I don’t think it’s a built-in moving average shifted to the right, anyway you are saying that it is not possible to code even a simple moving average shifted to the right in a zone where there is not yet a bar?
Only few people can use the library able to do this feature?Another question: a moving average can be applied only to Close, Open, Low, High, Typical, Total … or even to the result of another indicator?
01/31/2018 at 5:01 PM #61117A Moving Average can be applied to anything, even another MA or any other indicator.
123x = Average[200,0](close) //sma 200y = Average[21,1](x) //ema 20 of sma 200z = Average[50,2](Rsi[14]) //wma 50 of rsi 14https://www.prorealcode.com/documentation/average/
01/31/2018 at 5:21 PM #61119Yes, thanks.
But Average can be applied to everything inside the code but inside the code I can’t shift it to the right in a no-bar zone.The built-in Average can be shifted to the right but it can’t be applied to everything (only Close, Open …).
I can’t solve my problem, is it correct?
01/31/2018 at 7:50 PM #61139Since no bars exist in the future, and X coordinates is made with barindex, you can’t reference anything to be drawn in the future. Add text on the right of a last candlestick is possible if you add sufficient space before the text.
01/31/2018 at 9:13 PM #61141A text is not enough,
I would like to plot some expectation values of asset for the next bars
But it seems impossible, isn’t it?02/01/2018 at 7:58 AM #6116502/01/2018 at 8:23 AM #61168Nevertheless someone shows in video that it is possible to plot forecast.
Probably there are hidden resource that allows you to perform this.02/01/2018 at 8:39 AM #61171 -
AuthorPosts
Find exclusive trading pro-tools on