Click here to Login





                                                   conditional color not working

  0

0
Andrew B Levin
2018-01-15 11:44:59


Any ideas why conditional color wouldn't be working correctly? Here's what I've got:

I've got a bar chart of:

sma(mom,14)
Period: 5

Plotting that as a bar chart and in viewing it have the following color condition:

close> ref(close, 1)

That should mean that if the current close is greater than the previous close it should color green. However, it's all over the place. Sometimes it works,
but other times the condition is clearly not met and it's still coloring it green, or vice versa and not coloring it.

Any ideas?



QuantShare
2018-01-16 08:44:37

  0

Please send me the formula you are using. Right click on the chart, select "Edit Formula".


Andrew B Levin
2018-01-16 08:55:47

  0

a = Sma(Mom(14), 5);
Plot(a, "Sma", colorBlue, ChartBar, StyleSymbolNone);
UpdateColor(close> ref(close, 1), colorGreen);



QuantShare
2018-01-17 06:26:14

  0

I have used your formula and everything is correct. Bars are green when today's close is higher than yesterday's close.
If you still have issues, please contact support with a screenshot of what you think is wrong.



Andrew B Levin
2018-01-17 07:34:52

  0

Sent the screen shot thanks.


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
Set the First Trading Bar Values to Not a Number
Conditional Trailing Stop Exit 2013-10-18
Base or Counter Currency
Hull Moving Average - HMA
AccuTrack Indicator

How-to Lessons
How to speed up watchlist and screener plug-ins when working with...
How to detect whether price movements are predictable or not
How to plot a time-series that do not update the chart scale
How to install the previous version of QuantShare
How to draw an horizontal segment line using QS language

Related Forum Threads
Intraday data download is not working
Yahoo historical stock market data downloader not working
Tiingo EOD data not working properly
comp function not working ok in 2.0.2?
CHM help documentation not working

Blog Posts
Programming skills are not that important
Working with the formula editor
How to Create a Custom Real-Time Table using QS Trading Software
Create a Pivot Table that displays the Relative Strength Index - ...
Lock, Link and Undock your Charts









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 2021 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.