how to show a specific number of an indicator's values as Points

Created at 22 Oct 2020, 19:12
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
M.

m.mohammadreza.m.s

Joined 22.10.2020 Blocked

how to show a specific number of an indicator's values as Points
22 Oct 2020, 19:12


hey, im trying to write an indicator to predict kijun Sen value for 17 candles from now and show them as points,but unlike indicatordataseries,only calculate and show them for last candle,like the picture below,what is the code for this kind of output?


Replies

PanagiotisCharalampous
23 Oct 2020, 08:30

Hi m.mohammadreza.m.s,

You can use PlotType.Points to display points on your chart. If you need to show only specific points then you can set all other values to NaN.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous