Forex Forum - EarnForex
Serving Traders Since 2005
 

Go Back   Forex Forum - EarnForex > MetaTrader > MetaTrader Indicators

MetaTrader Indicators Post and discuss the MetaTrader indicators here.

Reply
 
LinkBack Thread Tools Display Modes
  #31 (permalink)  
Old 9th February 2010, 18:39
Default Avatar
Member
 
Join Date: Dec 2009
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Enivid View Post
I know what MTF means, I just don't understand how are you going to achieve it. For example, it's H1 chart and you want to use M5 CCI arrows. How will you display 2 or more arrows generated during one 60-minute period? And what's the point?
the arrow of a higher timeframe should be displayed in a lower one

it is a question whether it is possible at all to code something like this

in MT4 a mtf MA indicator displayes a step of 4 periods in 1h when displaying a MA of 4h timeframe
Reply With Quote
  #32 (permalink)  
Old 10th February 2010, 07:15
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,445
Thanks: 6
Thanked 8 Times in 7 Posts
Default

Then it's better to create a separate single-timeframe indicator and then a separate MTF indicator that would call the former with iCustom() function and apply the data on the given timeframe.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #33 (permalink)  
Old 17th March 2010, 20:45
Default Avatar
Junior Member
 
Join Date: Mar 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Guys,

Thanks for sharing this excellent indicator !

I tried to change the value for the cross signal... default is "0" but... what I need to change if I want an arrow when it cross value of "70" ?

Thanks to you all !

Bye
Reply With Quote
  #34 (permalink)  
Old 18th March 2010, 10:43
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,445
Thanks: 6
Thanked 8 Times in 7 Posts
Default

Quote:
Originally Posted by AderFx View Post
Hello Guys,

Thanks for sharing this excellent indicator !

I tried to change the value for the cross signal... default is "0" but... what I need to change if I want an arrow when it cross value of "70" ?

Thanks to you all !

Bye
You need to change "0" to "70" in the lines below in .mq4 file and then recompile:

MQL5 Code:
 if(myCCInow>0 && myCCI2<0) //did it cross from below 50

MQL5 Code:
 if(myCCInow<0 && myCCI2>0) //did it cross from above 50
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #35 (permalink)  
Old 18th March 2010, 12:03
Default Avatar
Junior Member
 
Join Date: Mar 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Enivid View Post
You need to change "0" to "70" in the lines below in .mq4 file and then recompile:

MQL5 Code:
 if(myCCInow>0 && myCCI2<0) //did it cross from below 50

MQL5 Code:
 if(myCCInow<0 && myCCI2>0) //did it cross from above 50
Hello,

Thanks for your help,
I tried with value "100" but seems not working correctly, blue arrow are correct but there is some red arrows that are not visible.



You know why?

My code:
MQL5 Code:
 if(myCCInow>100 && myCCI2<100) //did it cross from below 50

MQL5 Code:
 if(myCCInow<100 && myCCI2>100) //did it cross from above 50

Thank you !!
Reply With Quote
  #36 (permalink)  
Old 18th March 2010, 12:12
Default Avatar
Junior Member
 
Join Date: Mar 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry... I found the error...

MQL5 Code:
if (myCCInow<0)   //is going short

Thanks !! :-)
Reply With Quote
  #37 (permalink)  
Old 18th March 2010, 21:32
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,445
Thanks: 6
Thanked 8 Times in 7 Posts
Default

Quote:
Originally Posted by AderFx View Post
Sorry... I found the error...

MQL5 Code:
if (myCCInow<0)   //is going short

Thanks !! :-)
No problem!
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #38 (permalink)  
Old 19th March 2010, 07:14
Default Avatar
Junior Member
 
Join Date: Mar 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Guys,

Little problem, When I draw a trendline in H1 timeframe and come back to M15 for example, my trendlines are deleted... if I remove indicator "CCIArrow" I haven't problems.

Any ideas?

Thank you.
Bye
Reply With Quote
  #39 (permalink)  
Old 19th March 2010, 08:05
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,445
Thanks: 6
Thanked 8 Times in 7 Posts
Default

Quote:
Originally Posted by AderFx View Post
Hi Guys,

Little problem, When I draw a trendline in H1 timeframe and come back to M15 for example, my trendlines are deleted... if I remove indicator "CCIArrow" I haven't problems.

Any ideas?

Thank you.
Bye
Just delete this line:

MQL5 Code:
      ObjectsDeleteAll();
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #40 (permalink)  
Old 19th March 2010, 08:41
Default Avatar
Junior Member
 
Join Date: Mar 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Enivid View Post
Just delete this line:

MQL5 Code:
      ObjectsDeleteAll();
Excellent ! Thank you !
Reply With Quote
Reply

Bookmarks

Tags
arrows, cci, cross, indicator, metatrader


Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 17:43.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Inactive Reminders By Icora Web Design

SEO by vBSEO 3.3.2