Click here to Login





                                                   Change of color in point graph

  0

0
Piotr
2014-08-30 11:15:03


I cannot change a color of points in point graph. UpdateColor is not changing the color. Bellow is a code snippet:

Plot( 0, "Squeeze", colorBlack, ChartPoint, StyleSymbolCircle|StyleBringToFront );
UpdateColor( Squeeze(20, 1.5, 2 ), colorRed ) ;
momentum = Mom(14) ;
Plot( momentum, "Momentum", colorGreen, ChartBar, StyleSymbolNone );
UpdateColor( momentum < 0, colorRed) ;

The second UpdateColor works OK, while the first one is not changing anything.

Please help ;



QuantShare
2014-09-01 14:34:12

  0

Probably > or < with the Squeeze function.
"UpdateColor" changes color on bars where the specified rule is true.



Piotr
2014-09-07 12:21:35

  0

I changed to first two line to:
Plot( Squeeze(20, 1.5, 2 ), "Squeeze", colorBlack, ChartPoint, StyleSymbolCircle|StyleBringToFront );
UpdateColor( Squeeze(20, 1.5, 2 )>0, colorRed ) ;
No change in color. However, some of the points have value 1,

When I change the chart type as bellow
Plot( Squeeze(20, 1.5, 2 ), "Squeeze", colorBlack, ChartBar, StyleSymbolCircle|StyleBringToFront );
UpdateColor( Squeeze(20, 1.5, 2 )>0, colorRed ) ;
Colors are OK, Bars are red



QuantShare
2014-09-08 04:49:50

  0

Didn't notice you were using "ChartPoint". You should choose other chart style in order to change colors.


Piotr
2014-09-08 08:39:43

  0

Does it mean, that chartPoint does not support color?
I would like to have colored circles and bars showing other information. That is why it is crucial to color dots. Any suggestion?



QuantShare
2014-09-09 04:23:18

  0

You can use something like this:

PlotSymbol(a, "", 1, 1, AboveHigh, colorTransparent, colorRed, PlotSymbolCircle);
UpdateColor(close > open, colorGreen);



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
Rate of Change Horizontal Line
Fibonacci Trader - Fixed Balance Point
Percentage of Stocks Trading Above their Pivot Point
Pivot Point Breakout Scanner
Rate of Change Volume

How-to Lessons
How to dynamically change the number of positions in a portfolio?
How to change volume bar colors when the price closes down
How to plot news on a chart?
How to create a Monte Carlo simulation
How to rename a ticker symbol

Related Forum Threads
Change volume color based on criterion
how to add buy condition when the color change
change color of Ichimoku Cloud and plot the cloud in future 26 ba...
Cross Hairs Color
QS language functions color & font

Blog Posts
Example of advanced rule
Compare Multiple Securities in a Single Chart
How to Create a Custom Real-Time Table using QS Trading Software
Real Time Alerts: Support and Resistance Lines Breakout
Getting Accurate Backtesting Results: Survivorship bias-free S&P ...









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.