Forex



Go Back   Forex Trading > Training > Metatrader > Metatrader 4 mql 4 - Development course
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #41 (permalink)  
Old 02-19-2008, 03:02 AM
kissaki's Avatar
Member
 
Join Date: Aug 2007
Posts: 35
kissaki is on a distinguished road
Matrix, could you help me where I can get the MTF CI indi? do you know where I can find the Stealth indies? Thank You

Quote:
Originally Posted by matrixebiz View Post
Ok, I get Shift, will have to do more reading about Mode.

Do you code? I have this indicator that I call from my EA but not sure how to set it up properly. See pic.
it just has two lines and when Blue changes and lines up with the other line, Long signal is generated (Same idea with Red)
Tried a few different codes like the one I used with the VQ indicator;
double Entry1 = iCustom(NULL, 0, "VQ", 24, 30....., 0, 1);
double Entry2 = iCustom(NULL, 0, "VQ", 24, 30....., 0, 2);
double Up2 = iCustom(NULL, 0, "VQ", 24, 30....., 1, 2);
double Down2 = iCustom(NULL, 0, "VQ", 24, 30....., 2, 2);

Just not trading right.

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #42 (permalink)  
Old 02-24-2008, 09:15 AM
Member
 
Join Date: Oct 2006
Posts: 80
Big Be is on a distinguished road
re: VQ Indicator revised for EA

Matrixebiz, and Ralph,
If you want to use VQ for an EA, it has a 2 bar lag. I strongly suggest you see my work posted here:
Volatility Quality Index
see Post 319.

Ralph, can you help me with any of my problems? I will appreciate it!
One here: How to code?
Post 702.

Another here:
Ask! Post 986

Thanks,
Big Be
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #43 (permalink)  
Old 03-31-2008, 12:16 PM
MiniMe's Avatar
Senior Member
 
Join Date: Nov 2006
Location: Montréal
Posts: 1,450
MiniMe is an unknown quantity at this point
Custom Indicators

a leasson on how to make a sexy good looking indicators
MQL4 Language for Newbies. Custom Indicators (Part 2) - MQL4 Articles
__________________

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #44 (permalink)  
Old 04-25-2008, 04:51 AM
Junior Member
 
Join Date: Mar 2008
Posts: 13
mastoto is on a distinguished road
How to get multiple values from custom indicators ?

Hi folks,
I need to get values from custom indicator using iCustom function, but it seems that iCustom can only get one return value.
If a custom indicator return more than one value, how can i get a certain value I need ?
For example, a pivot indicator will return 2 or more values of Support, Resistance ... so, how can i get each value in an indicator ?

Thanks In Advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #45 (permalink)  
Old 04-25-2008, 05:05 AM
Senior Member
 
Join Date: Oct 2007
Posts: 230
Dave137 is on a distinguished road
Smile

Normally read the amount of buffers in the indicator. If there are two buffers, then using iCustom address each buffer.

Example:

double Buff0=iCustom(NULL, 0, "Pivot",13,0,0);

double Buff1=iCustom(NULL, 0, "Pivot",13,1,0);

double Buff2=iCustom(NULL, 0, "Pivot",13,2,0);


If there is only two buffers in the indicator, buffer 0 normal relates to the indicator color that represents going up. Buffer 1 normal relates to the indicator buffer going down.

Also, if the indicator graphs various colors, you can open the indicator setup screen box on the platform and select color setup. Sometimes the buffer and color will be listed in order so you can see what buffer (and color) does what. The order may list #1, which is buffer 0, color green(or lime). and then #2, which is buffer 1, color red, and so on.



Hope this helps!

Last edited by Dave137; 04-25-2008 at 05:09 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #46 (permalink)  
Old 05-12-2008, 12:33 PM
sonicdeejay's Avatar
Member
 
Join Date: Apr 2008
Posts: 98
sonicdeejay is on a distinguished road
Guys,
I need some help on OzFX code from DGC...

Quote:
/*---------------------*/
/* OZFX REGULAR CODE */
/*---------------------*/
OzFX_Regular[k] = 0;
if (iAC(Symbol(), 0, k) > 0 &&
iAC(Symbol(), 0, k) > iAC(Symbol(), 0, k + 1) &&
iStochastic(Symbol(), 0, 5, 3, 3, MODE_SMA, 0, MODE_MAIN, k) > 50 )
{
if (iLastRegular != 1) OzFX_Regular[k] = 1;
iLastRegular = 1;
}
if iLastRegular is 1 it will release BUY to EA ...

Here I wanna add 1 more condition for the indicator called Lagurerre-ACS1 with settin 0.6,1000,2, trigger a buy after the indicator >0.15..

Is it something like that below..??

Quote:
/*---------------------*/
/* OZFX REGULAR CODE */
/*---------------------*/
OzFX_Regular[k] = 0;
if (iAC(Symbol(), 0, k) > 0 &&
iAC(Symbol(), 0, k) > iAC(Symbol(), 0, k + 1) &&
iStochastic(Symbol(), 0, 5, 3, 3, MODE_SMA, 0, MODE_MAIN, k) > 50 &&
iCustom(Symbol(), 0, "Laguerre-ACS1", 0.6, 1000, 2, 0, k)> 0.15)
{
if (iLastRegular != 1) OzFX_Regular[k] = 1;
iLastRegular = 1;
}
thx in advance

sonic
__________________
~It's not who I am underneath but, what I do that defines me!!

My FOREX Journal

Last edited by sonicdeejay; 05-12-2008 at 12:35 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #47 (permalink)  
Old 05-12-2008, 02:40 PM
Senior Member
 
Join Date: Feb 2007
Posts: 985
FerruFx is on a distinguished road
Quote:
Originally Posted by sonicdeejay View Post
Guys,
I need some help on OzFX code from DGC...



if iLastRegular is 1 it will release BUY to EA ...

Here I wanna add 1 more condition for the indicator called Lagurerre-ACS1 with settin 0.6,1000,2, trigger a buy after the indicator >0.15..

Is it something like that below..??

thx in advance

sonic
It seems to be OK according that the buffer called is the 1st (named 0). Guess that you know which one you need.

Just a suggestion. When you write multiple conditions, better to make them separately because in your case, even if only the first is valid, all the others are calculated each tick and then make the EA calculation heavy. Here's how you could write:

if(iAC(Symbol(), 0, k) > 0) {
if(iAC(Symbol(), 0, k) > iAC(Symbol(), 0, k + 1)) {
if(iStochastic(Symbol(), 0, 5, 3, 3, MODE_SMA, 0, MODE_MAIN, k) > 50) {
if(iCustom(Symbol(), 0, "Laguerre-ACS1", 0.6, 1000, 2, 0, k)> 0.15) {
then your code here
}}}}

The best would be to sort the condition with the one which give the signal the lastest at the beginning of the conditions. Like this the "loop" of conditions will be calculated in full not every ticks but when almost all are valid.

Hope that helps.

FerruFx
__________________
FerruFx / www.ervent.net - Professional Coding Services (EAs/Indicators/Alerts)

BBVPS.com - Reliable Windows VPS For MT4 Hosting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #48 (permalink)  
Old 05-13-2008, 04:26 AM
sonicdeejay's Avatar
Member
 
Join Date: Apr 2008
Posts: 98
sonicdeejay is on a distinguished road
Quote:
Originally Posted by FerruFx View Post
It seems to be OK according that the buffer called is the 1st (named 0). Guess that you know which one you need.

Just a suggestion. When you write multiple conditions, better to make them separately because in your case, even if only the first is valid, all the others are calculated each tick and then make the EA calculation heavy. Here's how you could write:

if(iAC(Symbol(), 0, k) > 0) {
if(iAC(Symbol(), 0, k) > iAC(Symbol(), 0, k + 1)) {
if(iStochastic(Symbol(), 0, 5, 3, 3, MODE_SMA, 0, MODE_MAIN, k) > 50) {
if(iCustom(Symbol(), 0, "Laguerre-ACS1", 0.6, 1000, 2, 0, k)> 0.15) {
then your code here
}}}}

The best would be to sort the condition with the one which give the signal the lastest at the beginning of the conditions. Like this the "loop" of conditions will be calculated in full not every ticks but when almost all are valid.

Hope that helps.

FerruFx
care to help me out??

Sonic System!! - Page 16


sonic
__________________
~It's not who I am underneath but, what I do that defines me!!

My FOREX Journal
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #49 (permalink)  
Old 05-14-2008, 10:37 AM
Member
 
Join Date: May 2008
Posts: 31
payback is on a distinguished road
A little help...

Hi i was trying to program an ea, and i followed your course (very intresting!)
I know quite well how to program in java and some c++

I was trying to program an ea with brain trend indicators the idea behind is
when brainTrend2stop and braintrend1stop DOTs are present buy (and viceversa)

but if i call the icustom function like this

BuyValueCurrent = iCustom(NULL,TimeFrame,IndicatorName1,NumBars,0,1) ;

i get only the value of the indicator in the present bar
is there a way to make it boolean? i'd like to write a function like

buy=true

BuyCondition = (IndicatorName1=true && IndicatorName2=true);

can someone help please please please???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #50 (permalink)  
Old 05-14-2008, 09:46 PM
Senior Member
 
Join Date: Feb 2006
Posts: 587
Michel is on a distinguished road
Quote:
Originally Posted by payback View Post
Hi i was trying to program an ea, and i followed your course (very intresting!)
I know quite well how to program in java and some c++

I was trying to program an ea with brain trend indicators the idea behind is
when brainTrend2stop and braintrend1stop DOTs are present buy (and viceversa)

but if i call the icustom function like this

BuyValueCurrent = iCustom(NULL,TimeFrame,IndicatorName1,NumBars,0,1) ;

i get only the value of the indicator in the present bar
is there a way to make it boolean? i'd like to write a function like

buy=true

BuyCondition = (IndicatorName1=true && IndicatorName2=true);

can someone help please please please???
No need to post the same question everywhere !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
icustom, icustom function, iCustom()

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 Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy iCustom and Alerts! codersguru Indicators - Metatrader 4 58 04-13-2009 09:30 AM
iCustom question .. yaniv_av Indicators - Metatrader 4 16 06-20-2008 05:37 PM
icustom maje Questions 24 12-05-2007 10:26 AM
I need help on creating an Icustom statement for my EA using this indicator as input! iscuba11 Expert Advisors - Metatrader 4 4 09-11-2006 08:18 PM
iCustom() problem billritz Indicators - Metatrader 4 5 08-23-2006 08:22 AM


All times are GMT. The time now is 01:24 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.