[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [EquisMetaStock Group] FW: metastock coding



PureBytes Links

Trading Reference Links



Ya, that helps..

 

We have an expert in which we have take care of sideways movement with the help of adx  in the overall trended system.

 

Every rise is accompanied by correction or sideways movement before a further rise and vices versa

 

If the sideways and corrective phase gets prolonged for some time on  any time frame chart then we have trouble.

 

Most importantly, the risk management plays key role in sideways market.

 

 

The issue is how do you define a sideways market in any time with automation.

 

Adx is one such tool we have been able to use.

 

You  can define a color.

 

In expert advisor go to highlight and indicate

 

 

ADX(14)<20 and give color say red and ADX(14) >20 green ADX(14)>40 say blue

 

 

 

 

From: equismetastock@xxxxxxxxxxxxxxx [mailto:equismetastock@xxxxxxxxxxxxxxx] On Behalf Of Nikhil Khetan
Sent: Tuesday, June 16, 2009 5:38 PM
To: equismetastock@xxxxxxxxxxxxxxx
Subject: Re: [EquisMetaStock Group] FW: metastock coding

 




hi,
i added adx(14) > 20 to the symbol section of expert advisor, to filter out trading during the non-trending periods, wats ur view on it

Regards
Nikhil
--- On Sun, 14/6/09, Hitendra Vasudeo <hitendra@xxxxxxxxxxx> wrote:


From: Hitendra Vasudeo <hitendra@xxxxxxxxxxx>
Subject: [EquisMetaStock Group] FW: metastock coding
To: equismetastock@xxxxxxxxxxxxxxx
Date: Sunday, 14 June, 2009, 11:23 PM

 

 

From: Hitendra Vasudeo [mailto:hitendra@ vasudeo.com]
Sent: Friday, June 12, 2009 8:49 PM
To: 'mahiya001@xxxxxx com'
Subject: FW: metastock coding

 

For first 30 minutes high and low

 

In the indicator created time

 

Copy this

DH:= (DayOfMonth( )    AND       Hour() =  10 AND  Minute() <= 30 );

 ValueWhen( 1,dh , HIGH);

 

In the indicator created time1

 

Copy this

DH:= (DayOfMonth( )    AND       Hour() =  10 AND  Minute() <= 30 );

 ValueWhen( 1,dh , LOW);

 

Rest would remain same

 

From: Hitendra Vasudeo [mailto:hitendra@ vasudeo.com]
Sent: Saturday, June 13, 2009 6:35 PM
To: 'mahiya001@xxxxxx com'
Subject: metastock coding

 

Hello,

 

I have worked on 9.55 -10.

 

This is purely intra-day and possibly to connection with overall trend and previous days movement at all.

 

This takes into account the high between 9.55-10 only

 

Create indicator called : time

DH:= (DayOfMonth( )    AND       Hour()=10 AND  Minute() >= 00 AND  Minute()  <  05);;

 ValueWhen( 1,dh , HIGH);

 

Create indicator called: time1

DH:= (DayOfMonth( )    AND       Hour()=10 AND  Minute() >= 00 AND  Minute()  <  05);;

 ValueWhen( 1,dh , LOW);

 

Create indicator called : IT-UP Buy

a:=Cross(HIGH ,   Fml( "time")    );

 

b:=Cross(   Fml( "time1"),LOW   );

 

state:=If(BarsSince (a)<BarsSince(b) ,1,0);

 

state>Ref(state,-1) ;

 

Create indicator called: IT-Down Sell

a:=Cross(HIGH ,   Fml( "time")    );

 

b:=Cross(   Fml( "time1"),LOW   );

 

state:=If(BarsSince (a)<BarsSince(b) ,1,0);

 

state<Ref(state,-1) ;

 

Create indicator called: IT-UP

((ValueWhen( 1 , Fml( "IT-UP Buy")  ,HIGH ) - ValueWhen(1 ,  Fml( "IT-UP Buy")  ,LOW ))*1.27)+ValueWhen( 1 ,  Fml( "IT-UP Buy")  ,HIGH );

((ValueWhen( 1 , Fml( "IT-UP Buy")  ,HIGH ) - ValueWhen(1 ,  Fml( "IT-UP Buy")  ,LOW ))*1.618)+ValueWhen (1 ,  Fml( "IT-UP Buy")  ,HIGH );

((ValueWhen( 1 , Fml( "IT-UP Buy")  ,HIGH ) - ValueWhen(1 ,  Fml( "IT-UP Buy")  ,LOW ))*2.618)+ValueWhen (1 ,  Fml( "IT-UP Buy")  ,HIGH );

ValueWhen(1 , Fml( "IT-UP Buy")  ,HIGH );

ValueWhen(1 ,  Fml( "IT-UP Buy")  ,LOW );

 

Create indicator called: IT-Down

ValueWhen(1 ,   Fml( "IT-Down Sell")   ,LOW )-((ValueWhen( 1 ,   Fml( "IT-Down Sell")   ,HIGH ) - ValueWhen(1 ,    Fml( "IT-Down Sell")   ,LOW ))*1.27);

ValueWhen(1 ,   Fml( "IT-Down Sell")   ,LOW )-((ValueWhen( 1 ,   Fml( "IT-Down Sell")   ,HIGH ) - ValueWhen(1 ,    Fml( "IT-Down Sell")   ,LOW ))*1.618);

ValueWhen(1 ,   Fml( "IT-Down Sell")   ,LOW )-((ValueWhen( 1 ,   Fml( "IT-Down Sell")   ,HIGH ) - ValueWhen(1 ,    Fml( "IT-Down Sell")   ,LOW ))*2.618);

ValueWhen(1 ,   Fml( "IT-Down Sell")   ,HIGH );

ValueWhen(1 ,   Fml( "IT-Down Sell")   ,LOW );

 

 

Expert Advisor

Give a name- Purely intra-day

Go to Symbols, new add and give up arrow as it is for buy

Given name B-

a:=Cross(HIGH ,   Fml( "time")    );

 

b:=Cross(   Fml( "time1"),LOW   );

 

state:=If(BarsSince (a)<BarsSince(b) ,1,0);

 

state>Ref(state,-1)

 

Go to symbols, new add and given down arrow as it is for sell

 

a:=Cross(HIGH,   Fml( "time")   );

 

b:=Cross(   Fml( "time1"),LOW );

 

state:=If(BarsSince (a)<BarsSince(b) ,1,0);

 

state<Ref(state,-1)

 

for further queries

 

call on 919820219664

 

Hitendra Vasudeo

www.stockmechanics. com

 

 

 

 




Cricket on your mind? Visit the ultimate cricket website. Enter now!



__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___