Click here to Login





                                                   Calculate bars between dates?

  0

0
Dennis Schutten
2016-05-04 10:02:23


How do I calculate the number of bars between dates?

Regards,

Dennis



QuantShare
2016-05-06 03:23:24

  0

a = barssince(stringequal(date(), "01/06/2014")) - barssince(stringequal(date(), "01/06/2015"));
plot(a, "");



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
Unexpected Short Selling Bars
Number of bars since the beginning of the month
Trading Indicator: True between the first and last signal
Market Rule based on the Crossover Between Stock Close prices and...
Consecutive Up and Down Bars - Works With Any Trading Indicator

How-to Lessons
How to add future bars to plan for market scenarios
How to calculate the average of a time series using the money man...
Difference between the watchlist and the screener tools
How to filter stocks in a market composite
How to use the Fibonacci retracement drawing tool

Related Forum Threads
Counting bars after a condition has been met
ROC between Specified Dates
Moving Key Info between Computers
numer of bars not scaled
Calculate total volatility of portfolio

Blog Posts
Correlation Between Multiple Trading Systems
How to Calculate and Display the Bid/Ask Spread on a Chart
How to Scan for Parallel Resistance and Support Lines
Backtesting a Strategy Based on Bond and Stock Index ETFs
How to create a trading system, screen and composite using earnin...









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.