Helper function: Exponential Moving Average (EMA)

Exponential moving average (EMA) is similar to simple moving average, but doesn’t lag the same way. It weights the data from the most recent bar. I call this a helper function since its used by some many other indicators, but it’s also used as overlay and more.

Continue reading

Posted in Helper functions | Leave a comment

Helper function: Simple Moving Average (SMA)

Simple moving averages are common tools in technical analysis. I call this a helper function because it’s used by so many other indicators. But it can also be used as overlay for price or smoothing other indicators.

Continue reading

Posted in Helper functions | Leave a comment

RSI – Relative Strength Index

ThisĀ is the first indicator that’s published here.

RSI was developed by J. Welles Wilder and its one of the most common indicators in technical analysis.

Continue reading

Posted in Indicators | Leave a comment

Welcome

Welcome to PHPTrader. This page will provide code-examples for analyzing stocks, futures and commodities in PHP. Please come back for updates.

Posted in News | Leave a comment