Click here to Login








Lunar Phase Indicator - New and Full Moon Cycles

by The trader, 2002 days ago
Share |






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



Share This ->
Share |


You have to log in to bookmark this object
What is this?
Additional Information




Type: Trading Indicator

Object ID: 1472


Country:
All

Market: All

Style:
Technical Analysis

Reviews
You must log in first

Join now
and get instant access for free to the trading software, the Sharing server and the Social network website.
Click here


Related objects

Empty

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object

Technical Analysis


Fundamental Analysis



Random Blog Posts

The Ultimate Guide to Create Trading Systems in QuantShare

QuantShare New Website Feature: Groups

QuantShare Trading Software: New Features in the 3.1.2 Version

Create Your Own Technical Stock Rating System

Speed Up Optimizations by Saving Ranking Data into a Custom Database

How to Calculate and Display the Bid/Ask Spread on a Chart

How to Backtest an Intraday Stock Trading System with EOD Ranking

How to Detect Potential Issues/Errors in Your Historical Data?

Show All

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object






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