A little help with Marney Volume Indicator for MC - EasyLanguage Programming | futures io social day trading
futures io futures trading


A little help with Marney Volume Indicator for MC
Updated: Views / Replies:1,726 / 6
Created: by Laurus12 Attachments:5

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

A little help with Marney Volume Indicator for MC

  #1 (permalink)
Elite Member
Norway
 
Futures Experience: Advanced
Platform: MultiCharts, CQG, NinjaTrader
Broker/Data: CQG, DTN IQFeed
Favorite Futures: EURO
 
Laurus12's Avatar
 
Posts: 376 since Nov 2010
Thanks: 557 given, 349 received

A little help with Marney Volume Indicator for MC

I am wondering if someone could please help me with the layer order of the volume bars and time adjusted moving average in Marney's volume indicator. With the original code and MC the time adjusted moving average is in the back of the volume bars, but I would like to have it in the front.

I am aware that TS and MC has opposite layer order from which order the plotting is set up in the code, but with this indicator I am not able to figure out how to reverse it.

Another thing is that it is not possible to change the weight of the time adjusted average line. If this could be done something with, that would have been nice.

I have only added RGB color control to the code, which is not in the original code:

 
Code
{***********************************************}
{Marney Indicator(TM) - Marney Volume Indicator(TM)
Copyright Caspar Marney, Marney Capital 2010(C)} 
{***********************************************}

input: avgLen(25), mins.in.session(1440), autobars(False), upcolor(RGB(0, 140, 0)), dncolor(RGB(230, 0, 0));
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",default,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(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;
Thanks,
Laurus

“If you wish to see the truth, then hold no opinions for or against anything.” - Hsin Hsin Ming
Attached Thumbnails
A little help with Marney Volume Indicator for MC-moving-average-front.png  
Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,351 given, 83,221 received


Maybe I am not understanding.... but if Plot2 is "on top of" Plot1, then why not just make Plot2 -> Plot1, and Plot1 -> Plot2.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following user says Thank You to Big Mike for this post:
 
  #4 (permalink)
Elite Member
Norway
 
Futures Experience: Advanced
Platform: MultiCharts, CQG, NinjaTrader
Broker/Data: CQG, DTN IQFeed
Favorite Futures: EURO
 
Laurus12's Avatar
 
Posts: 376 since Nov 2010
Thanks: 557 given, 349 received

Thank you for the reply Mike.

I have tried the normal layer order procedure, but for some reason I do not understand the coloring becomes wrong.

When I do like in the code below the average is on top and both the volume and the average displays correct values as shown in the attached picture, but as one can see the coloring is somewhat reversed. The insert settings is correct.

 
Code
avg=avg/avgLen; 
   plot1(ticks,"ticks",default,1);
   plot2(avg,"avg",black,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(v,avglen);
       plot1(v,"ticks",default,1);
       plot2(avg,"avg",black,default,1);
               
if close > open then setplotcolor(2,upcolor);
if close < open then setplotcolor(2,dncolor);
 
end;
Laurus

“If you wish to see the truth, then hold no opinions for or against anything.” - Hsin Hsin Ming
Attached Thumbnails
A little help with Marney Volume Indicator for MC-average-ok-but-colors-wrong.png  
Reply With Quote
 
  #5 (permalink)
Elite Member
Norway
 
Futures Experience: Advanced
Platform: MultiCharts, CQG, NinjaTrader
Broker/Data: CQG, DTN IQFeed
Favorite Futures: EURO
 
Laurus12's Avatar
 
Posts: 376 since Nov 2010
Thanks: 557 given, 349 received

For those interested in knowing some more about Caspar Marney's Volume and Range indicators I would recommend starting here.

Caspar Marney's website with more articles are here.

Note that Mr. Marney is mainly going into the relationship between actual trade volume and tick volume for Spot FX, but his indicators and the principle behind them can be used with other markets and volatility also.


Laurus

“If you wish to see the truth, then hold no opinions for or against anything.” - Hsin Hsin Ming

Last edited by Laurus12; October 31st, 2011 at 10:10 PM.
Reply With Quote
 
  #6 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,351 given, 83,221 received

the SetPlotColor() code would need to be updated to the new plots (2 --> 1, 1 --> 2). Also you need to be removing the indicator and re-adding it to MultiCharts, as changing Plots without doing so doesn't always work.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following 2 users say Thank You to Big Mike for this post:
 
  #7 (permalink)
Elite Member
Norway
 
Futures Experience: Advanced
Platform: MultiCharts, CQG, NinjaTrader
Broker/Data: CQG, DTN IQFeed
Favorite Futures: EURO
 
Laurus12's Avatar
 
Posts: 376 since Nov 2010
Thanks: 557 given, 349 received

Great! That's more like it. Thanks a lot Mike. Learned something new here.


Attaching both the Volume and Range indicators in "MC style" with the time adjusted moving average on top.

With Futures one have to set "autobars" to "true". Then for the FX futures I have set average to 24 periods and "mins.in.session" to 1380.

Unfortunately the indicators are only meant to be used with 60 minute bars. From what I have read Mr. Marney has not come up with a solution for like 15 and 5 minute bars yet.


Laurus

“If you wish to see the truth, then hold no opinions for or against anything.” - Hsin Hsin Ming
Attached Thumbnails
A little help with Marney Volume Indicator for MC-marney-volume-euro.png  
Attached Files
Register to download File Type: pla _Marney Volume Indicator.pla (5.6 KB, 27 views)
Register to download File Type: pla _Marney Range Indicator.pla (5.6 KB, 23 views)
Reply With Quote
The following user says Thank You to Laurus12 for this post:

Reply



futures io > > > > > A little help with Marney Volume Indicator for MC

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
TS/MC DoubleMA indicator ptcm EasyLanguage Programming 10 October 6th, 2016 06:07 PM
Looking for Marney Volume and Range Indicator janson MetaQuotes MetaTrader MQL Programming 12 December 20th, 2015 11:34 AM
[Other]       100 volume - NT vs MC vs SC Jonson Platforms and Indicators 6 September 26th, 2011 01:02 PM
Economic indicator MC iwannatoscript EasyLanguage Programming 7 July 4th, 2011 09:47 PM
TS / MC : Basic Indicator Help? Micardo EasyLanguage Programming 2 February 27th, 2011 12:30 PM


All times are GMT -4. The time now is 12:53 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-13 in 0.10 seconds with 20 queries on phoenix via your IP 54.82.79.109