Thread: EMA in color
View Single Post
  #3 (permalink)  
Old 09-17-2006, 01:15 PM
FX_Sniper's Avatar
FX_Sniper FX_Sniper is offline
Senior Member
 
Join Date: Jan 2006
Location: South Africa
Posts: 201
FX_Sniper is on a distinguished road
Ok, why not? The one in the previous post is just some knock-off of some code I did called the LSMA which got slaughtered by the wolves who never even realized it had a fundamental coding error in it. Here is a cleaner and better version of a simple colored moving average indicator, ready for the gallows

SETTINGS:

MAType
  • 0 - Simple Moving Average
  • 1 - Exponential Moving Average (Default)
  • 2 - Smoothed Moving Average
  • 3 - Linear Weighted Moving Average
MAPeriod
  • Whatever period you like (Default = 34).
MAShift
  • Shift Moving average forward how many bars (Default = 0).
PriceType
  • 0 - Close Price
  • 1 - Open Price
  • 2 - High Price
  • 3 - Low Price
  • 4 - Median Price, (high+low)/2.
  • 5 - Typical Price, (high+low+close)/3.
  • 6 - Weighted Close Price, (high+low+close+close)/4.
So long.

FX Sniper
Attached Files
File Type: mq4 FX Sniper's MA.mq4 (2.1 KB, 375 views)
__________________
"I do not need a compass to tell me which way the wind is shining."

Last edited by FX_Sniper; 09-17-2006 at 01:29 PM.
Reply With Quote