Completed

Need PHP Function to Calculate Math Algorithm

This project was successfully completed by stnsolutions1 for $49 USD in a day.

Get free quotes for a project like this
Employer working
Completed by:
Skills Required
Project Budget
$30 - $250 USD
Completed In
1 day
Total Bids
17
Project Description

I need a PHP function written to calculate the MACD technical indicator for stocks.

[url removed, login to view]

the url above goes to a php function that crashes on my server when I try to run it for what ever reason. There is little to documentation for this function. There for I need to build my own function that mimics this above function.

Here are some URL's that explain the MACD algorithm in order to calculate.

[url removed, login to view]:technical_indicators:moving_averages

[url removed, login to view]

[url removed, login to view]

Below is a link to a yahoo stock chart on apple with the MACD algorithm in place so you can see it in action.

[url removed, login to view]+Interactive#symbol=aapl;range=5d;compare=;indicator=volume+macd%2845,30,30%29;charttype=area;crosshair=on;ohlcvalues=0;logscale=off;source=undefined;

I need a function that will take the same input as the function below and output the MACD array.

array trader_macd ( array $real [, integer $fastPeriod [, integer $slowPeriod [, integer $signalPeriod ]]] )

SUBMIT DATE

LAST UPDATED

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online