Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Dec 14, 2016
PHP tutorial showing how to calculate a stock's Simple Moving Average using PHP. #2
This PHP tutorial is part 2 out of a 3 videos series demonstrating how to calculate a stock's Simple Moving Average using PHP. This PHP script will show you how to calculate the Simple moving averages prices for the 20, 50, 100 and 200 moving averages.
Simple moving averages (SMA) are the most basic of the moving averages used for trading. The SMA formula is calculated by taking the average closing price of a stock over a set period of time. The 50, 100 and 200 period moving averages is probably the most commonly found on analyst's charts.