View Single Post
  #49 (permalink)  
Old 06-16-2008, 03:45 PM
TheRumpledOne's Avatar
TheRumpledOne TheRumpledOne is offline
Banned
 
Join Date: Nov 2006
Posts: 802
TheRumpledOne is an unknown quantity at this point
TRO_MULTI_TREND_BOXES

tro_mulit_trend_boxes1.gif

_TRO_MULTI_TREND_BOXES
plots the trend for the time frames selected in the inputs:

Code:
extern bool USE.M1  = TRUE;
extern bool USE.M5  = TRUE;
extern bool USE.M15 = TRUE;
extern bool USE.M30 = TRUE;
extern bool USE.H1  = TRUE;
extern bool USE.H4  = TRUE;
extern bool USE.D1  = TRUE;
extern bool USE.W1  = TRUE;
extern bool USE.MN  = TRUE;

I know it's not the most elegant way but it works...LOL!

_TRO_MULTI_TREND_BOXES computes the trend for each time frame, adds it up and divides by the number of time frames used.

ENHANCEMENT

User can specify the multiplier or "weight" for each time frame via input:

Code:


extern int MULT.M1  = 1 ;
extern int MULT.M5  = 1 ;
extern int MULT.M15 = 1 ;
extern int MULT.M30 = 1 ;
extern int MULT.H1  = 1 ;
extern int MULT.H4  = 1 ;
extern int MULT.D1  = 1 ;
extern int MULT.W1  = 1 ;
extern int MULT.MN  = 1 ;

I give more weight to D1 and H1 for scalping.

MT4 CODE ATTACHED.

Attached Files
File Type: mq4 _TRO_MULTI_TREND_BOXES.mq4 (20.9 KB, 306 views)

Last edited by TheRumpledOne; 06-16-2008 at 04:09 PM.
Reply With Quote