• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 1:22pm
  • Search
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 1:22pm
Search
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Search

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

Forex Trading: Incorporating Price Behavior into a Forex Trading System 4 replies

Am I incorporating higher time frames the correct way? 13 replies

Importing live data into excel? 19 replies

Incorporating Slippage Assumption in backtesting 4 replies

I shot an Arrow into the air.... 14 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 1
Attachments: Incorporating Damiani_volatmeter v3.2 into EA
Exit Attachments

Incorporating Damiani_volatmeter v3.2 into EA

  • Post #1
  • Quote
  • First Post: Jul 15, 2012 7:23pm Jul 15, 2012 7:23pm
  •  N_na_nah
  • | Joined Jun 2010 | Status: Member | 41 Posts
Hi Friends from all over the globe.........

I have this great and unbelievable indicator called "Damiani_volatmeter v3.2"
which I am using with the following values;

Vis_atr 24
Vis_std 5
Sed_atr 24
Sed_std 42
Threshold_level 1.65
lag_supressor true
max_bars 2000

My question is how to incorporate this iCustom indicator into EA, when the gray line slope down for the last 2 bars, that's all.

I will be very grateful for any kind of help or suggestion.
Thank you
Attached File
File Type: ex4 Damiani_volatmeter v3.2.ex4   5 KB | 2,979 downloads
  • Post #2
  • Quote
  • Jul 15, 2012 8:31pm Jul 15, 2012 8:31pm
  •  CodeMeister
  • Joined Sep 2009 | Status: Making Code While Making Pips | 1,672 Posts
First let me say, I did not load your indicator into a chart.

The problem I have found with most unbelievable indicators is that they repaint the chart - that is why they are unbelievable. They are also useless in an EA. Some repainting indicators can be used manually if you understand how it works, but to incorporate that kind of knowledge into an EA is very difficult if not impossible.

How to tell if it repaints? There is a web site that lists the tests for you to run for repainting indicators. I remember using it a year ago, but cant' remember the link. But it was easy to find and I think there's a FF thread about it.
  • Post #3
  • Quote
  • Jul 15, 2012 9:15pm Jul 15, 2012 9:15pm
  •  hayseed
  • Joined Nov 2006 | Status: Member | 3,235 Posts
hey na na nah..... there is no way for me to verify your "ex" version matches my "mq4" version, but providing they are the same, use buffer 0.....

rough example.....

Inserted Code
 
 
if(iCustom(Symbol(), 0, "Damiani_volatmeter v3.2",0,3) > iCustom(Symbol(), 0, "Damiani_volatmeter v3.2",0,2)
  && 
 iCustom(Symbol(), 0, "Damiani_volatmeter v3.2",0,2) > iCustom(Symbol(), 0, "Damiani_volatmeter v3.2",0,1)

//----

luis damiani was one of the early active coders..... search for him, zeeman or kustus osentogg...... most of the early guys are gone, but some of the code still lives......h
to trade and code, keep both simple... no call to impress....h
  • Post #4
  • Quote
  • Jul 15, 2012 10:03pm Jul 15, 2012 10:03pm
  •  N_na_nah
  • | Joined Jun 2010 | Status: Member | 41 Posts
Quoting CodeMeister
Disliked
The problem I have found with most unbelievable indicators is that they repaint the chart - that is why they are unbelievable. They are also useless in an EA.
Ignored
Hi my dear !
To tell you the truth, I never give credit to any indicator. The only way for me to give a superlative statement like the above is by its scalping accurate.
  • Post #5
  • Quote
  • Jul 15, 2012 10:20pm Jul 15, 2012 10:20pm
  •  N_na_nah
  • | Joined Jun 2010 | Status: Member | 41 Posts
Quoting hayseed
Disliked
hey na na nah..... there is no way for me to verify your "ex" version matches my "mq4" version, but providing they are the same, use buffer 0.....

rough example.....

Inserted Code
 
 
if(iCustom(Symbol(), 0, "Damiani_volatmeter v3.2",0,3) > iCustom(Symbol(), 0, "Damiani_volatmeter v3.2",0,2)
  && 
 iCustom(Symbol(), 0, "Damiani_volatmeter v3.2",0,2) > iCustom(Symbol(), 0, "Damiani_volatmeter v3.2",0,1)
//----
Ignored
Thank you. I appreciate your help
Your input helped me to avoid to write the whole thing. like this..
Inserted Code
 
  iCustom(NULL,0,"Damiani_volatmeter v3.2",Vis_atr,Vis_std,Sed_atr,Sed_std,Threshold_level,lag_supressor,max_bars,2,0);
//----
  • Post #6
  • Quote
  • Jul 15, 2012 10:53pm Jul 15, 2012 10:53pm
  •  N_na_nah
  • | Joined Jun 2010 | Status: Member | 41 Posts
I appreciate very much any help !
I will be glad if any one would instruct me how to add my "own" values of Damiani indicator into an ea,
My own values are;
Vis_atr = 24;
Vis_std = 5;
Sed_atr = 24;
Sed_std = 42;
Threshold_level = 1.65;
lag_supressor = true;
max_bars = 2000;
  • Post #7
  • Quote
  • Jul 15, 2012 11:13pm Jul 15, 2012 11:13pm
  •  hayseed
  • Joined Nov 2006 | Status: Member | 3,235 Posts
your using buffer 2 in your code and unless version is different than mine, the silver line is buffer 0.....

in my code example above, i did not designate any values for the variables so the ea would use the default values....

you can use extern inputs or just hard code the values in the icustom line such as below...

//---
Inserted Code
 
 
// Vis_atr = 24;
// Vis_std = 5;
// Sed_atr = 24;
// Sed_std = 42;
// Threshold_level = 1.65;
// lag_supressor = true;
// max_bars = 2000; 
 
iCustom(NULL,0,"Damiani_volatmeter v3.2",24,5,24,42,1.65,true,2000,0,1);
to trade and code, keep both simple... no call to impress....h
  • Post #8
  • Quote
  • Jul 16, 2012 12:00am Jul 16, 2012 12:00am
  •  N_na_nah
  • | Joined Jun 2010 | Status: Member | 41 Posts
Quoting hayseed
Disliked
your using buffer 2 in your code and unless version is different than mine, the silver line is buffer 0.....
Ignored
hayseed
I really appreciate for taking the time to clarify this matter, as I have only the ex4 and no way to know which buffer is the silver line.

Your input is very valuable to me.
Thanks
  • Post #9
  • Quote
  • Last Post: Mar 17, 2014 9:20am Mar 17, 2014 9:20am
  •  fxdaytrader_
  • Joined Jan 2011 | Status: UberTroll | 1,847 Posts
Quoting N_na_nah
Disliked
as I have only the ex4 and no way to know which buffer is the silver line
Ignored
use the forumsearch and find the mq4-version (latest version?) here: http://www.forexfactory.com/showthre...54#post7156654

PM me with coding requests and I'll probably put you on my ignore list
Thread Tools Search this Thread
Show Printable Version Show Printable Version
Email This Thread Email This Thread
Search this Thread:

Advanced Search

  • Platform Tech
  • /
  • Incorporating Damiani_volatmeter v3.2 into EA
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2019