SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Wed Jan 29, 2020 7:08 pm

All times are UTC + 3 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Moving average offset
PostPosted: Fri Nov 19, 2010 5:08 am 
Offline

Joined: Thu Jul 23, 2009 2:02 pm
Posts: 22
Hi,
Is there a way to offset moving average function ?
I am trying to do calculate 10 bar SMA offset 3 bars into the future.
Thanks.


Top
 Profile  
 
PostPosted: Fri Nov 19, 2010 12:19 pm 
Offline

Joined: Wed Oct 08, 2003 1:06 pm
Posts: 833
Hi,

If I understand your question correctly you want to calculate an SMA the same way as it is done in Alligator Indicator calculation?
http://forex-indicators.net/bill-willia ... -indicator

If yes - then it is possible to calculate, but it is not possible to see the "tail" of the sma on the BarChart, I mean those values that are "in the future". You will be able to see on the BarChart only SMA values that correspond to some bars.

As to the calculation - there are several ways. First is to implement a custom indicator. Another is easier - you can create a normal SMA and use sma.Ago(3) instead of sma.Last when you need SMA offset 3 bars into the future value.

Or I maybe you mean something else by SMA offset 3 bars into the future?

Regards,
Sergey.


Top
 Profile  
 
PostPosted: Fri Nov 19, 2010 8:37 pm 
Offline

Joined: Thu Jul 23, 2009 2:02 pm
Posts: 22
Yes. you are right. I am trying to do alligator calculation. Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 3 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group