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
  #1 (permalink)  
Old 13th December 2008, 13:39
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,444
Thanks: 6
Thanked 8 Times in 7 Posts
Default VarMovAvg

Discuss VarMovAvg indicator (signals based on several moving averages) in this thread. You can ask any questions about this indicator here.
Reply With Quote
  #2 (permalink)  
Old 6th November 2009, 14:49
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,444
Thanks: 6
Thanked 8 Times in 7 Posts
Default

VarMovAvg indicator has been updated and is now available for MetaTrader 5.
Reply With Quote
  #3 (permalink)  
Old 13th November 2009, 11:10
Default Avatar
Member
 
Join Date: Jun 2009
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Seems nice, but many MAs look good and function very bad.
Have you backtested this trading strategy?
Reply With Quote
  #4 (permalink)  
Old 13th November 2009, 12:59
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,444
Thanks: 6
Thanked 8 Times in 7 Posts
Default

Quote:
Originally Posted by ChartSecret View Post
Seems nice, but many MAs look good and function very bad.
Have you backtested this trading strategy?
I haven't backtested it, because I've never created an EA out of it. But this is not a traditional MA. It's entirely custom indicator that resembles MAs somehow.
Reply With Quote
  #5 (permalink)  
Old 8th March 2010, 17:46
Default Avatar
Junior Member
 
Join Date: Mar 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default VarMovAvg update not correctly

Hi,
I like very much this indicator, I encounter some troubles when it changeds the candle I have to refresh always the view to have the right representation.
Is there anything I can change in the code to ask for refresh at new period?

Should you have any questions do not hesitate to contact me.
Thank you
G.org
Switzerland
Reply With Quote
  #6 (permalink)  
Old 9th March 2010, 08:50
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,444
Thanks: 6
Thanked 8 Times in 7 Posts
Default

Quote:
Originally Posted by giorgenio View Post
Hi,
I like very much this indicator, I encounter some troubles when it changeds the candle I have to refresh always the view to have the right representation.
Is there anything I can change in the code to ask for refresh at new period?

Should you have any questions do not hesitate to contact me.
Thank you
G.org
Switzerland
It refreshes with each new candle, not tick. There is no point for it to refresh with each new tick, since you'll get so many different values during one candle.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #7 (permalink)  
Old 7th May 2010, 10:32
Default Avatar
Junior Member
 
Join Date: Mar 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Enivid,
thank you for your answer but unfortunately doesn't resolve my problem.
I haven't mentioned of refreshing at every tick, it would be useless for this indicator to do so, I have no refresh at period change, have a look at 1234.png that is the situation before period change and 1235.png is after the period change without manual refresh, and finally the 1236.png is after refresh on the current period (which is the correct representation).

This happens on all timeframes.

Can this help to understand?

There is any possibility to tell the indicator code to refresh at period change?

Let me know
Thank you
Have a nice day
g.org
CH
Attached Images
File Type: png 1234.png (18.4 KB, 24 views)
File Type: png 1235.png (19.8 KB, 17 views)
File Type: png 1236.png (17.6 KB, 16 views)
Reply With Quote
  #8 (permalink)  
Old 7th May 2010, 14:18
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,444
Thanks: 6
Thanked 8 Times in 7 Posts
Default

Quote:
Originally Posted by giorgenio View Post
Hi Enivid,
thank you for your answer but unfortunately doesn't resolve my problem.
I haven't mentioned of refreshing at every tick, it would be useless for this indicator to do so, I have no refresh at period change, have a look at 1234.png that is the situation before period change and 1235.png is after the period change without manual refresh, and finally the 1236.png is after refresh on the current period (which is the correct representation).

This happens on all timeframes.

Can this help to understand?

There is any possibility to tell the indicator code to refresh at period change?

Let me know
Thank you
Have a nice day
g.org
CH
Just remove this line from the code:
if (prevbars==Bars) return(0);
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #9 (permalink)  
Old 10th May 2010, 12:36
Default Avatar
Junior Member
 
Join Date: Mar 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Enivid,
this applies certainly to mq4, I haven't tried yet. What about mq5? I could not find it in the code.

Let me know
Thank you
g.org
CH
Reply With Quote
  #10 (permalink)  
Old 10th May 2010, 15:30
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,444
Thanks: 6
Thanked 8 Times in 7 Posts
Default

Quote:
Originally Posted by giorgenio View Post
Hi Enivid,
this applies certainly to mq4, I haven't tried yet. What about mq5? I could not find it in the code.

Let me know
Thank you
g.org
CH
Remove this line in mq5:
if (prev_calculated == rates_total) return(rates_total);
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
Reply

Bookmarks

Tags
indicator, metatrader, moving average, mt4


Currently Active Users Viewing This Thread: 1 (0 members and 1 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 05:03.


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