Click here to Login





                                                   Displaced Moving Average?

  0

0
Dean
2015-12-23 04:33:53


Is there a displaced moving average? Is there an easy way to displace a moving average or any indicator without adjusting the script for each?


QuantShare
2015-12-24 03:21:54

  0

You have to apply the "ref" function to the indicator to displace it.
a = ref(sma(20), 2); // for example



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
Guppy Multiple Moving Average Oscillator
Hull Moving Average - HMA
Capital Allocation based on Moving Average position on Instrument
Trending Up/Down using Ten Moving Averages
Regularized Exponential Moving Average

How-to Lessons
How to create a moving average of an indicator
How to perform a basic quantitative analysis using the S&P 500
How to dynamically update the settings of an indicator
How to filter stocks in a market composite
How to plot arrows below/above candlesticks on a chart

Related Forum Threads
Displaced moving average
moving avrages
moving trend line
delay in moving average
Rising moving average

Blog Posts
Custom Indicator: Moving average spread
Trend Following and Moving Averages
Trading System: Moving average crossover and few others buy and s...
QuantShare Programming Language Tutorial
How to predict and trade the stock market using pivot points









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.