Page 1 of 1

MA multimeter

Posted: Sun Jun 06, 2010 12:52 pm
by noushina
Learning to Code from TRO. That's what I think when I play with his cool indicators.

I could not find a TRO version, but I probably just missed it. So I took a public released TRO multi-meter that did keyreversal and changed it to be moving averages.

You can of course change the type of MA and the time frame


If you have the donationals, you can mod a dashboard as follows (I can't post the Dashbaord since it is donatonal):

EXTERNALS at the top:
extern string notetype = "0=SMA,1=EMA,2=SMMA,3=LWMA" ;
extern int MAType = 1;
extern int maPeriod = 17;


Then mod the subroutine:
void DoWork( string myPair, int TimeFrame )
{


// Define the variables That are unique to this test
double MA0,MA1;

MA0 = iMA(myPair, TimeFrame,maPeriod,0,MAType,PRICE_CLOSE,0) ;
MA1 = iMA(myPair, TimeFrame,maPeriod,0,MAType,PRICE_CLOSE,1) ;

Bull = MA0 > MA1;
Bear = MA0 < MA1;

if ( Bull ) {thevalue = ArrowHeadUp ; theColor = UpColor ; } else
if ( Bear ) {thevalue = ArrowHeadDn ; theColor = DnColor ; }
else {thevalue = ArrowHeadRt ; theColor = NoSignalColor ; }



}

Posted: Sun Jun 06, 2010 9:18 pm
by bredin
Welcome to the ranks of the "cut and paste" coders!

G.

Posted: Mon Jun 07, 2010 12:23 am
by Humble
Did you use TRO_MM_Maxover?

Posted: Mon Jun 07, 2010 11:11 pm
by TheRumpledOne
Humble wrote:Did you use TRO_MM_Maxover?


He said, " So I took a public released TRO multi-meter that did keyreversal and changed it to be moving averages. "

I also cut and paste.