Jul
11

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);
$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.

Share

Related Posts

  1. Ichimoku Charting
  2. Keltner Channels Ex Custom
  3. Formula 201 – #4 Using Indicators
  4. Formula 201 – #15 TP Candle Formula Indicator
  5. Writing NeoBreadth Formulas Part 2

Blog Developed
By ContentRobot