Click here to Login





                                                   Colouring candlesticks differntly

  0

0
Raju Harchandani
2010-09-19 12:13:59


Hi
I have to colour the candlesticks(quotes)
1) green if (MACD in another pane) is above zero red and above its signal line
2) red if it is below zero and below its signal line
and
3) black for all other conditions
HELP
Raju



QuantShare
2010-09-20 05:42:48

  0

Hi,

Right click on the main pane, then click on "Edit Formula".

Under the "PlotCandleStick" function, type the following lines:

m = macd();
s = macdSignal(14);
UpdateColor(1, colorBlack);
UpdateColor(m > 0 and m > s, colorGreen);
UpdateColor(m < 0 and m < s, colorRed);



Raju Harchandani
2010-09-20 08:40:37

  0

That is great ... now one more request
How do i put green up arrows below the green bars (above) which meet the following condition rsi above 70 and like wise red arrows pointing downwards above the red bars when rsi is below 30
Thanx in advance...
Raju



QuantShare
2010-09-21 06:30:24

  0

Best Answer
Here is the formula you should add to create up and down arrows:

PlotArrow(m > 0 and m > s and rsi(14) > 70, "", BelowLow, colorGreen);
PlotArrow(m < 0 and m < s and rsi(14) < 30, "", AboveHigh, colorRed);



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
Thicken Candlesticks
Enhanced Candlestick Chart with Volume Variation
+ve signals for short entry
Intraday Data for US Stocks
Moving Average Trends - Market Indicator

How-to Lessons
How to plot arrows below/above candlesticks on a chart
How to automatically arrange charts?
How to create a moving average of an indicator
How to print a chart
How to scale and move the chart Y-axis

Related Forum Threads
Thickening Candlesticks
Ability to remove fill colour for rising candlesticks only.
Graphing hypothetical candlesticks into the future?
i need daily price bars, when Stock is trading | INDIA(NSE)
Can you share your main (candlestick chart) formula? Here's mine!

Blog Posts
QuantShare Trading Software: New Features in the 3.4.3 Version
Backtesting All Candlestick Patterns in 10 Minutes
QuantShare Programming Language Tutorial
Fundamental analysis: How to track economic indicators in the For...
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.