About prices used in real-time SMA

Created at 25 Mar 2024, 05:35
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!
BO

bolatfx

Joined 13.08.2018

About prices used in real-time SMA
25 Mar 2024, 05:35


When calculating the real-time SMA for an uncompleted candlestick, what price is used?
I want the same value for the SMA displayed in cTrader.


@bolatfx
Replies

PanagiotisCharalampous
25 Mar 2024, 07:31

Hi there,

It uses the last x prices defined by the MA period including the current one.

Best regards,

Panagiotis


@PanagiotisCharalampous

bolatfx
25 Mar 2024, 08:39

RE: About prices used in real-time SMA

PanagiotisCharalampous said: 

Hi there,

It uses the last x prices defined by the MA period including the current one.

Best regards,

Panagiotis

thank you. I use the closing price of the candlestick for SMA calculation, but in real time, the candlestick is not completed yet. What should I use instead of the closing price in such a case?


@bolatfx

PanagiotisCharalampous
25 Mar 2024, 08:40

RE: RE: About prices used in real-time SMA

bolatfx said: 

PanagiotisCharalampous said: 

Hi there,

It uses the last x prices defined by the MA period including the current one.

Best regards,

Panagiotis

thank you. I use the closing price of the candlestick for SMA calculation, but in real time, the candlestick is not completed yet. What should I use instead of the closing price in such a case?

The current bid price


@PanagiotisCharalampous