MA multimeter

Moderator: moderators

User avatar
noushina
rank: 50+ posts
rank: 50+ posts
Posts: 147
Joined: Fri Sep 25, 2009 10:50 pm
Reputation: 0
Location: Fukushima Japan
Gender: None specified

MA multimeter

Postby noushina » Sun Jun 06, 2010 12:52 pm

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 ; }



}
Attachments
MA multi-meter.mq4
(7.76 KiB) Downloaded 31 times

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.

User avatar
bredin
rank: 1000+ posts
rank: 1000+ posts
Posts: 1032
Joined: Mon Feb 16, 2009 10:41 pm
Reputation: 0
Gender: None specified
Contact:

Postby bredin » Sun Jun 06, 2010 9:18 pm

Welcome to the ranks of the "cut and paste" coders!

G.
Welcome to the era of "Guns and Maskies" Trading!
The previous message contains discretion. Viewer nudity is advised.
Insanity Industries Indicators Here
Insanity Industries on YouTube!

Humble
rank: 500+ posts
rank: 500+ posts
Posts: 576
Joined: Fri Mar 20, 2009 10:29 am
Reputation: 0
Gender: Male

Postby Humble » Mon Jun 07, 2010 12:23 am

Did you use TRO_MM_Maxover?
Is price closing higher or lower than something? Simple yet powerful question. ..MO

User avatar
TheRumpledOne
rank: 10000+ posts
rank: 10000+ posts
Posts: 11405
Joined: Sun May 14, 2006 9:31 pm
Reputation: 45
Location: Oregon
Real name: Avery T. Horton, Jr.
Gender: None specified
Contact:

Postby TheRumpledOne » Mon Jun 07, 2010 11:11 pm

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.
IT'S NOT WHAT YOU TRADE, IT'S HOW YOU TRADE IT!

Please do NOT PM me with trading or coding questions, post them in a thread.

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.


Return to “MetaTrader”