Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-08-2006, 04:15 PM
Member
 
Join Date: Dec 2005
Posts: 58
adria is on a distinguished road
Demark_trend_new EA for MT4

I am trying to create an EA with Demark_trend_new indicator. Buy when
a High is above HL_1 trend line and sell when a Low is below LL_1 trend line.
I inserted in the EA:
double Var1 = iCustom("HL_1", 0, "Demark_trend_new", 200, 0, Current +0);

double Var2 = iCustom("LL_1", 0, "Demark_trend_new", 200, 0, Current +0);

The EA opens only Buy order. Does anyone know how to write these variables correctly?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 08-08-2006, 04:19 PM
elihayun's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 350
elihayun is on a distinguished road
Quote:
Originally Posted by adria
I am trying to create an EA with Demark_trend_new indicator. Buy when
a High is above HL_1 trend line and sell when a Low is below LL_1 trend line.
I inserted in the EA:
double Var1 = iCustom("HL_1", 0, "Demark_trend_new", 200, 0, Current +0);

double Var2 = iCustom("LL_1", 0, "Demark_trend_new", 200, 0, Current +0);

The EA opens only Buy order. Does anyone know how to write these variables correctly?
This is not the way to use iCustom

Use like this

iCustom(Symbol(), TF, CustomIndicator, Rperiod, LSMA_Period, 5, shift);

1) Symbol name or NULL
2) Time frame or 0 for current TF
3) Custom indicator name
then ALL the indicator parameters
then the buffer number (zero base)
then the bar shift
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-25-2006, 05:47 AM
kohzadi's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Tehran-IR Iran
Posts: 110
kohzadi is on a distinguished road
Hi adria
I like Demark_trend_new indicator like you.
Did you make EA for this?
Could you post EA if completed?
Best regard
__________________
health & wealth , success & happiness
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-29-2006, 12:17 AM
Member
 
Join Date: Dec 2005
Posts: 58
adria is on a distinguished road
I tried to create that EA by means of expert advisor builder.I used that indicator as custom indicator. I liked that the EA opens the orders when the
price crosses the blue line or the red line. But it seems that expert advisor
builder can't recognize that lines.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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


All times are GMT. The time now is 05:38 AM.



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