Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 10-11-2009, 06:20 AM   #1

Join Date: May 2009
Location: hong kong
Posts: 34
Ignore this user

Thanks: 9
Thanked 2 Times in 2 Posts

Chaikin Money Flow Index in MC

As title , Can anyone post here the code for multichart ?
I cannot find it in the newest MC and their homepage .
thanks in advance .
emptyvault is offline  
Reply With Quote
Old 10-11-2009, 10:13 AM   #2

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: Chaikin Money Flow Index in MC

have you tried G-O-O-G-L-E ?
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
Old 10-11-2009, 10:35 AM   #3

Join Date: May 2009
Location: hong kong
Posts: 34
Ignore this user

Thanks: 9
Thanked 2 Times in 2 Posts

Re: Chaikin Money Flow Index in MC

no , because I suppose MC will put it on their web page data base since it is a popular indicator .
emptyvault is offline  
Reply With Quote
Old 10-11-2009, 12:22 PM   #4

Join Date: May 2009
Location: hong kong
Posts: 34
Ignore this user

Thanks: 9
Thanked 2 Times in 2 Posts

Re: Chaikin Money Flow Index in MC

I found the following code from a web page , but unluckily , it did not plot anything in the multicharts .
Anyone know what is the bug ? I am using in on index so there is volume . After I read the code, I can't sure if the mistake caused by the volume" if and else " . Here is the code ;

inputs: len(21) ;

var: den(0), den2(0);

// Currencies don't always track volume, so this sets the value to zero if there isn't volume
den = summation(V,len);
den2 = H-L;

if den = 0 or den2 = 0 then begin
value1 = 0;
end
else begin
value1 = summation(((( C-L ) - ( H-C )) / ( H-L )) * V,len) / den;
end;

if value1 > 0 then begin
plot1(value1, "CMF_Hist", red);
plot2(value1, "CMF_Line", red);
end
else begin
plot1(value1, "CMF_Hist", blue);
plot2(value1, "CMF_Line", blue);
end;

plot5(0, "Mid");
emptyvault is offline  
Reply With Quote
Old 10-11-2009, 12:33 PM   #5

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: Chaikin Money Flow Index in MC

Quote:
Originally Posted by emptyvault »
I found the following code from a web page , ...


First order in forum etiquette:

Always give credit.
i.e. cite the source !


Second order in forum etiquette:

Give as much info as possible, so that people can start helping you immediately.
i.e. annotated charts, notes, inputs variables, samples outputs, expectations, etc.,
don't expect people to read your mind, or to search for the info you already have.


Third order in forum etiquette:

Don't ASSUME anything
because when you ass-u-me, you make an Ass out of U and Me


.
__________________



Only an idiot would reply to a stupid post

Last edited by Tams; 10-11-2009 at 12:39 PM.
Tams is offline  
Reply With Quote
Old 10-17-2009, 06:18 AM   #6

Join Date: May 2009
Location: hong kong
Posts: 34
Ignore this user

Thanks: 9
Thanked 2 Times in 2 Posts

Re: Chaikin Money Flow Index in MC

hello ;
Finally I got the help from the Customer Service of multicharts and here is the solution .
Before this there is error at the first time I receive help from them too and after several times of ask and help it was fixed .
The problem maybe because of tick and minutes data . The following codes work in MC , both intraday data and EOD data .
Wish it can help to all MC users . thanks


{ Chaikin Money Flow }
inputs: len(20);
var: den(0), den2(0);

var: vol(0);
if BarType >= 2 then
vol = Volume
else
vol = Ticks;

den = summation(vol,len);
den2 = H-L;
if den = 0 or den2 = 0 then begin
value1 = 0;
end
else begin
value2 = ((( C-L ) - ( H-C )) / ( H-L ) * vol);
value1 = summation(value2, len) / den;
end;
if value1 > 0 then begin
plot1(value1, "CMF_Hist", green);
plot2(value1, "CMF_Line", green);
end
else begin
plot1(value1, "CMF_Hist", darkmagenta);
plot2(value1, "CMF_Line", darkmagenta);
end;
plot5(0, "Mid");
emptyvault is offline  
Reply With Quote
The Following User Says Thank You to emptyvault For This Useful Post:
aaa (10-24-2009)

Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Smart Money Index pimind Coding Forum 8 06-09-2009 02:23 PM
Twiggs Money Flow walterw Trading Indicators 25 12-29-2008 06:20 AM
Money Flow Index for CQG Soultrader Trading Indicators 0 12-16-2008 11:26 PM
Chaikin Money Flow for CQG Soultrader Trading Indicators 0 12-16-2008 11:23 PM
Money flow index with up/down tick volume neustaju Technical Analysis 18 05-23-2007 09:19 AM

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