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