Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
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
  #11 (permalink)  
Old 02-01-2008, 12:47 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
Will this work if I add?;
Code:
double VQ0 = iCustom(NULL, 0, "VQ", false,0,5,3,1,5,true,false,true,true,false,true,1485, 0,0);
double VQ1 = iCustom(NULL, 0, "VQ", false,0,5,3,1,5,true,false,true,true,false,true,1485, 0,1);
double QQEA0 = iCustom(NULL, 0, "QQEA",5,14,4.236, 0, 0);
double QQEA1 = iCustom(NULL, 0, "QQEA",5,14,4.236, 0, 1);
Code:
//Buy
   if (VQ0>VQ1 && QQEA0>QQEA1 && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) {
      if(!IsTrade) {
So when VQ and QQEA buy signal agree at the same time, place a Buy trade?

EDIT: Looks like a trade was placed but not when they both triggered a sell at the same time but just when both indicators are in a downward motion. How do I set it to only place the trade at the moment they signal and not later?
Attached Images
File Type: jpg NewEA.JPG (177.3 KB, 963 views)

Last edited by matrixebiz; 02-01-2008 at 01:18 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
  #12 (permalink)  
Old 02-01-2008, 06:07 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
Ok, why did this trade happen? (Red line)
Here is the EA
Attached Images
File Type: jpg what.JPG (178.3 KB, 947 views)
Attached Files
File Type: mq4 My First EA MOD 2indi.mq4 (9.2 KB, 335 views)
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
  #13 (permalink)  
Old 02-02-2008, 02:56 PM
Member
 
Join Date: Mar 2006
Posts: 47
derikb is on a distinguished road
Entry code for two indicators

double VQ0 = iCustom(NULL, 0, "VQ", false,0,5,3,1,5,true,false,true,true,false,true,14 85, 0,0);
double VQ1 = iCustom(NULL, 0, "VQ", false,0,5,3,1,5,true,false,true,true,false,true,14 85, 0,1);
double QQEA0 = iCustom(NULL, 0, "QQEA",5,14,4.236, 0, 0);
double QQEA1 = iCustom(NULL, 0, "QQEA",5,14,4.236, 0, 1);

This code will buy when the previous value of both indicators moved up. So lets say VQ0=1.02 (shift is current bar) and VQ1 = 1 (shift is 1), QQEA0=2.5 and QQEA1 =2.4 then the rule will be true because VQ0>VQ1 and QQEA0>QQEA1. The entry will happen on te following bar. This is why the sell tade happened. Both moved down on previous bar.

So when you program entries in EA think about what you actually program.

double QQEA0 = iCustom(NULL, 0, "QQEA",5,14,4.236, 0, 0); means you use the custom indicator Null = any pair (current pair you test on) 0=any timeframe, "QQEA" is the indicator you use, 5,14,4.236 is your extern inputs for the indicator and 0 is the buffer (it can be 0 to 7) and 0 is the shift (is it the current bar, previous or say 10 bars ago. The shift can be anything.

So when you use icustom you must decide which buffer you want to use. So look at the values on your indicator and decide which buffer you want to use and how to use it. I hope this help you.
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
  #14 (permalink)  
Old 02-02-2008, 03:08 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
Quote:
Originally Posted by derikb View Post
double VQ0 = iCustom(NULL, 0, "VQ", false,0,5,3,1,5,true,false,true,true,false,true,14 85, 0,0);
double VQ1 = iCustom(NULL, 0, "VQ", false,0,5,3,1,5,true,false,true,true,false,true,14 85, 0,1);
double QQEA0 = iCustom(NULL, 0, "QQEA",5,14,4.236, 0, 0);
double QQEA1 = iCustom(NULL, 0, "QQEA",5,14,4.236, 0, 1);

This code will buy when the previous value of both indicators moved up. So lets say VQ0=1.02 (shift is current bar) and VQ1 = 1 (shift is 1), QQEA0=2.5 and QQEA1 =2.4 then the rule will be true because VQ0>VQ1 and QQEA0>QQEA1. The entry will happen on te following bar. This is why the sell tade happened. Both moved down on previous bar.

So when you program entries in EA think about what you actually program.

double QQEA0 = iCustom(NULL, 0, "QQEA",5,14,4.236, 0, 0); means you use the custom indicator Null = any pair (current pair you test on) 0=any timeframe, "QQEA" is the indicator you use, 5,14,4.236 is your extern inputs for the indicator and 0 is the buffer (it can be 0 to 7) and 0 is the shift (is it the current bar, previous or say 10 bars ago. The shift can be anything.

So when you use icustom you must decide which buffer you want to use. So look at the values on your indicator and decide which buffer you want to use and how to use it. I hope this help you.
OK, thank you. So should I use a shift of all '1' because I want the EA to check on candle open what the previous candle did then trade if all indicators agree? How do I make sure it only trades at first signal and not later if indicators continue in a direction?
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
  #15 (permalink)  
Old 02-02-2008, 09:56 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
Quote:
Originally Posted by derikb View Post
Hi, I've changed the code so that it enter trades. Two versions. One only trade when their is an up or down arrow (My first EA2) and the other one trades when the indicator moves upward so if previous trade was profitable or loss and VQ still moves up it will enter another buy trade. I hope this help.It isn't the best coding but then the EA is spagetti code.

Regards
Derik
Derik, what is wrong here? I'm trying to add another indicator.
Code:
double Entry1 = iCustom(NULL, 0, "VQ", false,0,5,3,1,5,true,false,true,true,false,true,1485, 0, 1);
double Entry2 = iCustom(NULL, 0, "VQ", false,0,5,3,1,5,true,false,true,true,false,true,1485, 0, 2);
double Up2 = iCustom(NULL, 0, "VQ", false,0,5,3,1,5,true,false,true,true,false,true,1485, 1, 2);
double Down2 = iCustom(NULL, 0, "VQ", false,0,5,3,1,5,true,false,true,true,false,true,1485, 2, 2);

double Entry3 = iCustom(NULL, 0, "QQEA",5,14,4.236, 0, 1);
double Entry4 = iCustom(NULL, 0, "QQEA",5,14,4.236, 0, 2);
double Up3 = iCustom(NULL, 0, "QQEA",5,14,4.236, 1, 2);
double Down3 = iCustom(NULL, 0, "QQEA",5,14,4.236, 2, 2);
Code:
//Buy
   if (Up2==Down2 && Entry1>Entry2 && Up3==Down3 && Entry3>Entry4 && .....
Looks like the QQEA indicator doesn't like the up3 down3 stuff What should I use with this indicator so it only trades once per first signal? Gives this error in the Journal tab;
2008.02.02 18:09:52 TestGenerator: unmatched data error (high value 1.9634 at 2008.01.24 11:38 and price 1.9651 mismatched)

Last edited by matrixebiz; 02-02-2008 at 11:10 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
  #16 (permalink)  
Old 02-04-2008, 07:10 PM
Member
 
Join Date: Mar 2006
Posts: 47
derikb is on a distinguished road
I think this is what you want.

double Entry3 = iCustom(NULL, 0, "QQEA",5,14,4.236, 0, 1);
double Entry4 = iCustom(NULL, 0, "QQEA",5,14,4.236, 0, 2);
double Up3 = iCustom(NULL, 0, "QQEA",5,14,4.236, 1, 2);
double Down3 = iCustom(NULL, 0, "QQEA",5,14,4.236, 2, 2);

If I understand correctly you want a cross. When the QQE indicator cross up or down you want an entry. The code should be:

double QQE1 = iCustom(NULL, 0, "QQE",5, 0, 1);
double QQE2 = iCustom(NULL, 0, "QQE",5, 1, 1);
double QQE3 = iCustom(NULL, 0, "QQE",5, 0, 2);
double QQE4 = iCustom(NULL, 0, "QQE",5, 1, 2);

Add the following to the buy entry:
QQE1>QQE2 && QQE3<QQE4

Add the following to the sell entry:
QQE1<QQE2 && QQE3>QQE4

So I think the custom indicator name is wrong.... it must be QQE according to your graph - QQE is the compiled name of the indcator.

The indicator give two values for each bar stored in buffer 0 and 1. So the previous bar value1 (iCustom(NULL, 0, "QQE",5, 0, 1) must be higher than value2 (iCustom(NULL, 0, "QQE",5, 1, 1) and value1 two bars ago must be smaller (iCustom(NULL, 0, "QQE",5, 0, 2) the value2 two bars ago (iCustom(NULL, 0, "QQE",5, 1, 2). This is for a buy signal.

Hope this help.
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
  #17 (permalink)  
Old 02-04-2008, 07:12 PM
Member
 
Join Date: Mar 2006
Posts: 47
derikb is on a distinguished road
My QQE indicator only have one extern in the indicator - iCustom(NULL, 0, "QQE",5, 0, 1); It is equal to 5 if you have more than one extern you have to add it.
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
  #18 (permalink)  
Old 02-04-2008, 09:06 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
Quote:
Originally Posted by derikb View Post
My QQE indicator only have one extern in the indicator - iCustom(NULL, 0, "QQE",5, 0, 1); It is equal to 5 if you have more than one extern you have to add it.
Ok, thank you.

One more please See pic, three different indicators what Two of them do is it has two Lines with Red and Blue. On each indicator, when they both Turn blue at the same time trade Long or when they both turn Red at the same time go short. See pic. The third one only has one line. Please tell how to iCustom these ones, please. Thanks again.
Attached Images
File Type: jpg Indicators.JPG (47.4 KB, 849 views)
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
  #19 (permalink)  
Old 02-27-2008, 08:32 AM
Junior Member
 
Join Date: Oct 2007
Posts: 14
yappe is on a distinguished road
hi matrixebiz,

that indicator on your last picture you posted, wich is it please, is this one of steinitch has indicators ?
Cold you be so kind, to post it maybe?

Thanx a lot,
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
  #20 (permalink)  
Old 03-12-2008, 01:55 PM
Shogo's Avatar
Junior Member
 
Join Date: Jul 2007
Posts: 10
Shogo is on a distinguished road
Smile Question

Hello. I am interested in this EA. Personaly, I am also using VQ Trade on FX market. How is this EA result actually ?

In my case, VQ and RCI (Spearman.mq4) is good combination for me.

Do you guys think VQ and RCI mutch for FX market ?

Attached Images
File Type: jpg ima.jpg (68.9 KB, 1236 views)

Last edited by Shogo; 03-12-2008 at 02:01 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
Reply

Bookmarks

Tags
qqe ea, My First EA MOD 2indi.mq4, qqea bar, VQ EA MT4, My First EA, VQ EA


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Check this out!!! tznef Non Related Discussions 15 12-17-2007 09:16 AM
How to check for check for currency symbol tak145 Expert Advisors - Metatrader 4 1 05-12-2007 02:16 PM
Can someone please check this indicator? iboersma Metatrader 4 2 04-17-2006 03:09 PM
Can someone check if this EA is done correctly please !! pikachucom Expert Advisors - Metatrader 4 6 04-04-2006 11:34 PM


All times are GMT. The time now is 01:04 PM.



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