Click here to Login





                                                   Unwanted Decimal Places

  0

0
dare2
2012-11-15 15:32:01


What do I need to add to a Dynamic Watchlist formula so that the results under an AddColumn for an indicator do not come out to 'x' number of decimal places. I do not want any decimal
places. I would like them rounded or just dropped.

Thanks,
Darrell Allen



QuantShare
2012-11-15 17:52:48

  0

Best Answer
Use the following function:
round( [Your value], 0)



dare2
2012-11-15 22:17:00

  0

I have tried the following with no success:

round(sma(volume,30),0);



dare2
2012-11-16 03:38:57

  0

Got it: addcolumn("AvgVolume",round(sma(volume,30),0));


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
US Historical Quotes from NASDAQ website
Swing Index Indicator
Fixed Bucket Calculation
Channel Position
Economic Data - Retail Trade Report

How-to Lessons
How to download historical EOD data for penny stocks
How to display two stocks on the same chart
How to download and use U.S. stocks earnings data
How to display notes/commentaries on a chart
How to associate an index with a list of stocks

Related Forum Threads
Chart Decimal Point
Plot solid decimal numbers
Trading system/formula that only places entry orders in the morni...
Urgent Question
Analyst Ratings (and Broker Recommendations)

Blog Posts
6 places to download historical intraday Forex quotes data for fr...
How to Scan for Parallel Resistance and Support Lines
4 Links to Download Free Historical Stock Prices Data by Date
Download historical EOD data for the stock, futures, ETF and Fore...
German Stock Exchanges: 5 free ways to download historical EOD/In...









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.