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 05-04-2007, 05:23 PM
islandrock's Avatar
Member
 
Join Date: Jan 2007
Posts: 87
islandrock is on a distinguished road
Question Complex programing experts need only apply

For me this is complex programing.
I need some help with code.
what i am looking to do is have an my EA look and the LAST 3 candles on a chart and get the average price movement (either it's moving up or down at the time).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-05-2007, 09:50 PM
islandrock's Avatar
Member
 
Join Date: Jan 2007
Posts: 87
islandrock is on a distinguished road
anybody ?

anybody? at least point me in the right direction
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-10-2007, 06:31 AM
ryanklefas's Avatar
Senior Member
 
Join Date: Apr 2006
Location: USA
Posts: 439
ryanklefas is on a distinguished road
Quote:
Originally Posted by islandrock
anybody? at least point me in the right direction
And what is the method for calculating the average? Typical price, close, etc?
__________________
"Don't work harder, work smarter." -- my Java professor

Coder for Hire:
http://www.firecell-fx.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-10-2007, 07:05 AM
jlpi's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 293
jlpi is an unknown quantity at this point
Quote:
Originally Posted by ryanklefas
And what is the method for calculating the average? Typical price, close, etc?
I guess he means the average of all ticks on the 3 last candles so, for the 3 last candles :

sum of all tick values / number of ticks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-10-2007, 03:25 PM
islandrock's Avatar
Member
 
Join Date: Jan 2007
Posts: 87
islandrock is on a distinguished road
the price

the price... the price at close would be be fine or even the average prci to detirmine price rise or fall.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-10-2007, 06:28 PM
lowphat's Avatar
Senior Member
 
Join Date: Sep 2005
Posts: 199
lowphat is on a distinguished road
ma1=iMA(NULL,0,1,0,MODE_EMA,PRICE_MEDIAN,0);
ma2=iMA(NULL,0,1,0,MODE_EMA,PRICE_MEDIAN,3);
if (ma1>=ma2) direction=up;
else direction=dn; ?
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programing skils for sale. optimu Commercial Trading Systems and indicators 357 Today 05:28 PM
apply template to all opened charts emdafx Metatrader 4 0 05-23-2007 04:00 PM
My complex EA needed - please advise riccimc Suggestions for Trading Systems 5 10-15-2006 08:41 PM


All times are GMT. The time now is 06:57 PM.



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