This is a trading item or a component that was created using QuantShare by one of our members.
This item can be downloaded and used by QuantShare Trading Software.
Trading items are of different types. There are data downloaders, trading indicators, trading systems, watchlists, composites/indices...
You can use this item and hundreds of others for free by downloading QuantShare.
Top Reasons Why You Should Use QuantShare:
Works with US and international markets (stock, forex, options, futures, ETF...)
Offers you the tools that will help you become a profitable trader
Allows you to implement any trading ideas
Exchange items and ideas with other QuantShare users
Our support team is very responsive and will answer any of your questions
We will implement any features you suggest
Very low price and much more features than the majority of other trading software
Here is another date function that can be used to make correspondence between trading bars and actual dates in the calendar. It is named 'EndOfMonth' and it returns 1 for the trading bar that corresponds to the last day in the month. Its principle is simple; it loops through the trading bars, gets their corresponding days of month in the calendar; if the value corresponding to the next bar is lower than the one corresponding to the current bar, the end of month is detected and the function returns. For example, for the month of October 2009, 31st was a Saturday; therefore the function will return 1 for October 30th and 0 for the other bars of the same month.
Example:
To detect the end of a month:
EndOfMonth() == 1
To detect the beginning of a month:
ref(EndOfMonth(), 1) == 1
To create a rule that returns 1 for the first 10 bars of the month:
hhv(ref(EndOfMonth(), 1), 10)
>>>> More trading objects? click here to search for trading sytems, downloaders, screens, custom drawing tools, indicators... by country, market or style.