Welcome to the Traders Laboratory Forums.
Trading Indicators Post your custom trading indicators. If you download, remember to click INSTALL.

Reply
Marney Volume Indicator Details »»
Marney Volume Indicator
Platform: , by kamus kamus is offline
Developer Last Online: Apr 2011 Show Printable Version Email this Page

Platform: MultiCharts Rating:
Released: 09-04-2010 Last Update: Never Installs: 1
 
No support by the author.

Hi,

Can someone convert below Multichart language to Metatrader MQL4 or MQL5

It is indicator from marney that given in fx magazine for july-september 2010.

thank you in advance.

Marney Volume Indicator

input: avgLen(10), mins.
in.session(1440), autobars(True),
upcolor(cyan), dncolor(red);
var: start(0), end1(0), end2(0),
x(0), p(-1), count(0), avg(0),
barsinday(0), DayNumber(0);
array: xv[199,1440](0);
if bartype < 2 then begin
start= (Sessionstarttime(1,1));
end1= (sessionendtime(1,1));
end2= (sessionendtime(1,2));
value1 = timetominutes(start);
value2 = timetominutes(end2);
if start > end2 then
value3 = 1440+(value2-value1);
if start < end2 then
value3 = -(value1-
value2);
if autobars = false then value3 =
mins.in.session;
barsinday = ceiling(value3/
barinterval);
if d<>d[1] then begin
if count=barsInDay then begin
p=iff(p<avgLen-1,p+1,0);
for x=1 to barsInDay
begin
xv[p,x]=ticks[barsInDay+1-x];
end;
end;
count=1;
end else count=count+1;
if xv[avgLen-1,count]>0 then
begin
avg=0;
for x=0 to avgLen-1 begin
avg=avg+xv[x,count];
end;
avg=avg/avgLen;
plot2(ticks,”ticks”,defau lt
,1);
plot1(avg,”avg”,yellow,de fau
lt,1);
end;
if close > open then setplotcolor
(2,upcolor);
if close < open then setplotcolor
(2,dncolor);
end;
if bartype > 1 then begin
avg =
averagefc(v,avglen);
plot2(v,”ticks”,default
,1);
plot1(avg,”avg”,yellow,
default,1);
if close > open then setplotcolor
(2,upcolor);
if close < open then setplotcolor
(2,dncolor);
end;

MARNEY RANGE INDICATOR

input: avgLen(10), mins.
in.session(1440), autobars(True),
upcolor(cyan), dncolor(red);
var: start(0), end1(0), end2(0),
x(0), p(-1), count(0), avg(0),
barsinday(0);
array: xr[50,1440](0);
if bartype < 2 then begin
start= (Sessionstarttime(1,1));
end1= (sessionendtime(1,1));
end2= (sessionendtime(1,2));
value1 = timetominutes(start);
value2 = timetominutes(end2);
if start > end2 then
value3 = 1440+(value2-value1);
if start < end2 then
value3 = -(value1-
value2);
if autobars = false then value3 =
mins.in.session;
barsinday = ceiling(value3/
barinterval);
if d<>d[1] then begin
if count=barsInDay then begin
p=iff(p<avgLen-1,p+1,0);
for x=1 to barsInDay begin
xr[p,x]=truerange[bar
sInDay+1-x];
end;
end;
count=1;
end else count=count+1;
if xr[avgLen-1,count]>0 then begin
avg=0;
for x=0 to avgLen-1 begin
avg=avg+xr[x,count];
end;
avg=avg/avgLen;
plot2(truerange,”range”,d efau
lt,1);
plot1(avg,”avg”,yellow,
default,1);
end;
if close > open then setplotcolor
(2,upcolor);
if close < open then setplotcolor
(2,dncolor);
end;
if bartype > 1 then begin
avg = averagefc(trueran
ge,avglen);
plot2(truerange,”range”
,default,1);
plot1(avg,”avg”,yellow,
default,1);
if close > open then setplotcolor
(2,upcolor);
if close < open then setplotcolor
(2,dncolor);
end;

Show Your Support

  • If you like to thanks you by the author -> Click Thanks to the Author
  • This modification may not be copied, reproduced or published elsewhere without the author's permission.
The Following 2 Users Say Thank You to kamus For This Useful Post:
berrob (10-24-2011), klonney (09-05-2010)

Reply

Thread Tools
Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tradestation Has Just Added 96 New Indexes, Including $ADD and $VOLD thrunner Brokers and Data Feeds 8 05-01-2012 02:23 PM
VSA Official Summary Part 2 Soultrader Volume Spread Analysis 8 12-25-2010 03:36 PM
High Volume Spike Reversal Indicator Development davem1979 Coding Forum 27 02-07-2010 04:25 AM
VSA Official Summary Part 1 Soultrader Volume Spread Analysis 1 08-01-2008 05:29 AM
Jperl's Trading With Market Statistics Summary Soultrader Day Trading and Scalping 0 01-27-2008 03:56 AM

All times are GMT -4. The time now is 11:02 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.