Click here to Login





                                                   delay in moving average

  0

0
John Bocchetti
2012-01-20 08:16:26


How do i delay the moving average ie efectively advance forward


QuantShare
2012-01-20 08:39:32

  0

Best Answer
You can use the "Ref" function to delay the moving average

a = sma(30);
a = ref(a, 10);




No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
GMMA - Guppy Multiple Moving Average
Moving Average Relative Strength Index (RSI)
Moving Average States Indicator
Multiple Time Frames Trading System - Price / Moving Average Cros...
Derivative Moving Average Strategy

How-to Lessons
How to create a moving average of an indicator
How to calculate the average of a time series using the money man...
How to create a volatility-based Stop - Dynamic stop based on the...
How to create a hatched area in a chart
How to add a trading indicator to a chart

Related Forum Threads
Rising moving average
Displaced moving average
coding a moving average
Volume Adjusted Moving Average
Displaced Moving Average?

Blog Posts
Custom Indicator: Moving average spread
Trading System: Moving average crossover and few others buy and s...
Trend Following and Moving Averages
Using Average True Range to Measure Intraday Volatility
The average maximum drawdown metric









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.