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
The Lunar phase indicator calculates lunar cycles and highlights occurrences of new moon and full moon phases on a chart.
A new moon happens when the moon/lunar phase indicator returns 1 and a full moon happens when the lunar phase indicator returns -1.
Example of usage:
To plot dots on a chart (corresponding to new/full moon occurrences), right click on the main chart, select "Edit Formula", add the following line then click on "Upgrade Graph":
a = LunarPhase(0);
In the first parameter you should set your local time zone offset (Example: 1 for Europe, -5 for New York...). Don't forget to add 1h for daylight saving time.
Example of NY:
a = LunarPhase(-5);
This will plot yellow dots for new moon occurrences and black dots for full moon occurrences.
Trading System Example:
To trade only between a full moon and a new moon, you can type:
a = LunarPhase(0);
a = LSwitch(a == -1, a == 1);
buy = a;
You can also type the above formula in a chart to get a visual confirmation on how the LunarPhase and LSwitch indicator works.
You can learn more about moon phase by reading the following Wikipedia article:
http://en.wikipedia.org/wiki/Moon_phase
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.