| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Chaikin Money Flow Index in MC I cannot find it in the newest MC and their homepage . thanks in advance . | ||
| |
|
| | #2 | ||
![]() | Re: Chaikin Money Flow Index in MC
__________________ Only an idiot would reply to a stupid post | ||
| |
|
| | #3 | ||
![]() | Re: Chaikin Money Flow Index in MC | ||
| |
|
| | #4 | ||
![]() | Re: Chaikin Money Flow Index in MC 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"); | ||
| |
|
| | #5 | ||
![]() | Re: Chaikin Money Flow Index in MC Quote:
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. | ||
| |
|
| | #6 | ||
![]() | Re: Chaikin Money Flow Index in MC 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"); | ||
| |
|
| The Following User Says Thank You to emptyvault For This Useful Post: | ||
aaa (10-24-2009) | ||
![]() |
| Thread Tools | |
| Display Modes | 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 |