Click here to Login





                                                   moving avrages

  0

0
srishail
2010-08-16 09:02:11


gURU how to write formula for screen, the moving avarages (44),(10),(20) and(100). all these MOv Ava's Merge in one point.


QuantShare
2010-08-16 09:57:56

  0

Best Answer
Here is the formula to get a signal when the maximum difference between these four moving averages is lower than a specific threshold.
The 4 moving averages merge in one point.

max(absolute(sma(44) - sma(10)), max(absolute(sma(10) - sma(20)), absolute(sma(20) - sma(100)))) < 0.3

The "0.3" is the threshold level. This means that if the difference between sma44 and sma10 is less than "0.3" then the formula considers that the value of these moving averages is the same.



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
Elastic Volume Weighted Moving Average - eVWMA
Percent of Time Spent Above a Moving Average
Equity Trading Based on Position of Moving Average
Ratio of the Short to Long-Term Moving Averages - ETF Trading Sys...
Hull Moving Average Strategy - Multi Time Frame Trading System

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 filter stocks in a market composite
How to create histogram charts
How to add a trading indicator to a chart

Related Forum Threads
moving trend line
delay in moving average
Rising moving average
Displaced moving average
Displaced Moving Average?

Blog Posts
Trend Following and Moving Averages
Trading System: Moving average crossover and few others buy and s...
Custom Indicator: Moving average spread
QuantShare Version 2.1.0 - Trading Software
QS Trading Software: Global Script









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.