Click here to Login





                                                   Volume Negative

  0

0
Raju Harchandani
2010-09-24 22:43:22


Sir,
I have Quantshare loaded on 2 pCS and the problem seems to be on both....Volume in certain scrips and views arbitrarily is shown downward(negative)...in another view tfor the same tick/bar it shows as positive (value displayed on top is the same though)



QuantShare
2010-09-25 05:08:52

  0

The bar is shown downward, however the volume is not negative.
This occurs if you plot on the same pane two or more indicators where each indicator plot style is set to "StyleOwnScale", one of these indicators have negative values and the volume indicator is shown using "ChartBar" style.

To fix this, simply update the style of the volume indicator from "StyleOwnScale" to "StyleSymbolNone".



Raju Harchandani
2010-09-25 06:30:49

  0

I tried that in the formula below


**************************************************************************************
PlotCandleStick("Quotes", colorBrown|255|colorViolet|255|0, StyleSymbolVdash|StyleWidth2);
m = macd();
s = macdSignal(14);
r=rsi(14);
UpdateColor(1, colorBlack);
UpdateColor(m > 0 and m > s, colorGreen);
UpdateColor(m > 0 and m > s and r > 70, colorBlue);
UpdateColor(m < 0 and m < s, colorRed);
UpdateColor(m < 0 and m < s and r <30, colorBrown);
PlotArrow(m > 0 and m > s and r > 70, "", BelowLow, colorDarkGreen);
PlotArrow(m < 0 and m < s and r < 30, "", AboveHigh, colorRed);

Plot(volume, "Volume", colorOrange|26, ChartBar, StyleOwnScale);

****************************
Did not work
The upper graph disappeared (the Candlesticks etc)

Also I wanted the bars with rsi=50 to have adiff colored arrow so i used the following in the blank line above
PlotArrow(m > 0 and m > s and r = 50, "", BelowLow, colorViolet);

I don't get any change in the graph....Help
Actually I want that with the 2 conditions(m>0 and m>s) the rsi decreases from 70 to 50 then the 50 should have a down arrow of Violet Color
Better still if the word "Sell" in Red Comes on top of this bar(asking for too much ain't I)

Likewise with the 2 conditions(m<0 and m<s) the rsi increases from 30 to 50 then the bar should have a up arrow of Cyan Color
Better still if the word "Buy" in Blue Comes on top of this bar

Thanx

Raju



QuantShare
2010-09-25 07:02:28

  0

Best Answer
I did use this exact formula and everything was ok. Are you sure this is the exact formula?

See what happens if you change the first line to:
PlotCandleStick("Quotes", colorBrown|255|colorViolet|255|0, StyleSymbolVdash|StyleWidth2|StyleOwnScale);

The relative strength index RSI values are almost never exactly equal to 50. You should use this formula instead:
PlotArrow(m > 0 and m > s and r < 50.1 and r > 49.9, "", BelowLow, colorViolet);

And here is the formula for the word SELL on top of this bar:
PlotSymbol(m > 0 and m > s and r < 50.1 and r > 49.9, "SELL", 1, 0, AboveHigh, colorRed, colorRed, PlotSymbolCircle);

For the "Buy" and Cyan Color:
PlotArrow(m < 0 and m < s and r < 50.1 and r > 49.9, "", AboveHigh, colorCyan);
PlotSymbol(m < 0 and m < s and r < 50.1 and r > 49.9, "BUY", 1, 0, BelowLow, colorGreen, colorGreen, PlotSymbolCircle);



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
Price and Volume Trend
Volume Trend Index - Market Indicator
Volume Ratio of Advancing to Declining stocks
Up/Down Volume Spread
Volume * Price Momentum Oscillator

How-to Lessons
How to create trading rules based on Put and Call volume data
How to change volume bar colors when the price closes down
How to create volume bar charts
How to filter stocks in a market composite
How to plot two different time frames in the same chart

Related Forum Threads
Average Volume
Intraday Volume Discrepancies
Show Comma Separators in Volume
Plot Volume with different Colours?
Customize Trailing StopLoss & Volume Summation

Blog Posts
Different Types of Trading Indicators: Trend, Momentum, Volatilit...
QuantShare Programming Language Tutorial
Fundamental Stock Analysis: Rank stocks based on a valuation rati...
Profile Graphs
6 ideas to implement in your portfolio to reduce your trading ris...









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 © 2025 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.