Plotting Lunar Cycle

Received a number of request on the lunar cycle plot I showed in the blog article Lunar Cycle – First Look in DaytradingBias.com

Here it is. It is done with the formula indicator with the following formula code.

$utc := datetime2utc (date + 0.5);
utc2julian ($utc, $jd, $jt);
moonphase ($jd, $jt, $mp);

Nothing fancy. Just calling the built-in functions to do the job.

It will be a simple exercise for the readers to create a custom indicator based on the code provided.

Blog Developed
By ContentRobot