calling custom indicator
  #1 (permalink)  
Old 11-26-2006, 02:56 PM
Sophomore
 
Join Date: Nov 2006
Posts: 73
Thanks: 1
Thanked 22 Times in 18 Posts
hayseed is on a distinguished road
Default calling custom indicator

in metastock we call a custom indicator by using fml("custom name") but there does not seem a similar method here....

there are countless examples of calling the standard inticators,, such as,,
--------------------------
MacdPrevious = iMACD(NULL, 1440, 12, 26, 9, PRICE_CLOSE, MODE_MAIN, 1);
MacdPrevious2 = iMACD(NULL, 1440, 12, 26, 9, PRICE_CLOSE, MODE_MAIN, 2);
OsMAPrevious = iOsMA(NULL, 1440, 12, 26, 9, PRICE_CLOSE, 1);
OsMAPrevious2 = iOsMA(NULL, 1440, 12, 26, 9, PRICE_CLOSE, 2);
Williams = iWPR(NULL, 1440, WilliamsP, 1);
---------------------------------------------

but can't seem to find any example of calling my own indicator....

can anyone recall seeing an example.... i can strip out the code needed if someone has an example..... thanks.....h
Reply With Quote
  #2 (permalink)  
Old 11-26-2006, 07:49 PM
Mazoem's Avatar
Freshman
 
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Mazoem will become famous soon enough
Default

You can call one using the iCustom function. Many times it is better to build an EA with the custom indicator logic in it rather than calling it. Can be more reliable.

Jon
Reply With Quote
  #3 (permalink)  
Old 11-26-2006, 08:43 PM
Sophomore
 
Join Date: Nov 2006
Posts: 73
Thanks: 1
Thanked 22 Times in 18 Posts
hayseed is on a distinguished road
Default

hey mazoem.... perfect..... for some reason kept overlooking that term....

calling an indicator, hull ma, for an ea is just what i'm trying to do.... until i better understand the coding frame work it might be easier for me to just call the ready made formula....

in metastock i could rip it out the whole deal in just a couple minutes tops, but i'm very very new to mql4..... trying to convert some of my trading systems from metastock to mql4 is proving quite a task..... thanks again.....h
Reply With Quote
  #4 (permalink)  
Old 11-26-2006, 09:14 PM
Mazoem's Avatar
Freshman
 
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Mazoem will become famous soon enough
Default

Quote:
Originally Posted by hayseed View Post
hey mazoem.... perfect..... for some reason kept overlooking that term....

calling an indicator, hull ma, for an ea is just what i'm trying to do.... until i better understand the coding frame work it might be easier for me to just call the ready made formula....

in metastock i could rip it out the whole deal in just a couple minutes tops, but i'm very very new to mql4..... trying to convert some of my trading systems from metastock to mql4 is proving quite a task..... thanks again.....h
Glad that helped.

You may also goto MQL4 Documentation: expert advisors, custom indicators, scripts and libraries to learn more.
I also gathered all these lessons and compiled them into one .pdf. It has been very usfull (attached)

Jon
Attached Files
File Type: zip CodersGuruFullCourse.zip (1.96 MB, 319 views)
Sponsored Links Shark EA Ultimate
Actual Profits on Live Account: +975%
Since Jan 2007. View Live Statements.
Reply With Quote
Reply


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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a custom MA cross indicator... [Coded] wadeboxjr Indicator Coding 7 07-08-2008 03:47 AM
Custom indicator Dave77 MetaTrader and ZeroCode 16 07-19-2007 02:05 PM
Request custom indicator scorpion Indicators 1 09-12-2006 12:32 PM
ATR MQL II Custom Indicator Request Dave77 Indicators 0 08-08-2005 07:11 AM


All times are GMT. The time now is 05:53 AM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast