Click here to Login

Trading Software Trading objects Features How-to Blog Search


                                                   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
Historical volatility regimes
Threshold Securities - NASDAQ
Dynamic Momentum Index
Indonesia Stock Exchange - Historical data
Market trading rules

How-to Lessons
How to plot arrows below/above candlesticks on a chart
How to quickly select stocks based on the last value of a databas...
How to download new quotes when selecting a chart
How to create a mobile database/account
How to create a composite index/indicator

Related Forum Threads
Thickening Candlesticks
about macd?
Modification required to Clipboard
change in account downloaded item can's see
Data feed Intraday

Blog Posts
Beta release
Day Trading: A trading system that combines intraday and EOD data
Download Trading Data using the Post-Script
Automated Parsing in QS Trading Software
Create a trading strategy using the money management tool - Part ...









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 © 2012 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items