Thread: avg?
View Single Post
  #6 (permalink)  
Old 11-24-2005, 12:30 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Thumbs up Right!

Quote:
Originally Posted by Alex.Piech.FinGeR
Thanks

13 day simple moving average of the close 4 DAYS AGO

iMA(NULL,0,13,0,MODE_SMA,PRICE_ClOSE,4) correct ?
I think yes.

AVGC13-AVGC13.4)>0

PHP Code:
if( ( iMA(NULL,0,13,0,MODE_SMA,PRICE_ClOSE,0) - iMA(NULL,0,13,0,MODE_SMA,PRICE_ClOSE,4) ) > )
{
//do something

__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Reply With Quote