Click here to Login

                                                   Colour the region between two moving averages


2020-07-09 06:52:17

I am looking to colour the region between to moving averages in a indicator pane or price chart pane.
The colour in the region would alternate depending on whether the faster moving average is above the slower moving average and vice versa.
I have looked at the drawing tools but can't seen anything which would allow me to do this.

2020-07-09 12:07:35


Drawing tools are used to draw something on a chart.
What you want to do is create a QS formula to be applied to a chart. Right click on the chart or pane, select "Edit Formula" then add the following formula then click on "Update Graph".

a = sma(10);
b = sma(50);
plot1(a, b, "", "", colorRed, colorTransparent, colorTransparent, ChartLine, StyleSymbolNone);
plot1(max(a, b), b, "", "", colorGreen, colorTransparent, colorTransparent, ChartLine, StyleSymbolNone);

No more messages


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"


Trading Items
Ratio of the Short to Long-Term Moving Averages - ETF Trading Sys...
Percentage of Stocks that are trading between their 50 and 200-da...
Market Rule based on the Crossover Between Stock Close prices and...
Trending Up/Down using Ten Moving Averages
Buff Moving Averages Indicator

How-to Lessons
How to display two stocks on the same chart
How to plot two different time frames in the same chart
How to plot the ratio of two stocks
Difference between the watchlist and the screener tools
How to scale and move the chart Y-axis

Related Forum Threads
Moving Key Info between Computers
variance between two pairs graphically ?
Plotting the closing value one year ago? Two years ago? Three?
Basic features and some issues with the background
Why Would the Ranking Analyzer Results Differ Here?

Blog Posts
Trend Following and Moving Averages
How to Use the Percentage Scale
Buy the best/top rated stocks or how to create powerful rank base...
Create a stock index or a trading indicator using the composite t...
How to create market indicators using the composite function - Pa...

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2024
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
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.