Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > General Discussion


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 04-11-2006, 11:49 AM
nog nog is offline
Junior Member
 
Join Date: Apr 2006
Posts: 1
nog is on a distinguished road
Script that waits for a specific price?

Hi all,

I'm new to programming and also new to forex trading... please bear with me! What I'm trying to do seems really simple and I would think there would be a script out there already for it but I can't find any. Basically, I just want to create a script to trigger a buy (or sell) when the price reaches a set value; this would be essentially the same as placing a limit order except that it would work regardless of whether the price was above or below the ask price. At first, I thought an EA would be the way to go but I only want to execute it once. Anyway, has anyone already done this? Or is it not possible for a script to continually watch the price? Thanks!

-nog

Last edited by nog; 04-11-2006 at 12:00 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2006, 10:37 PM
niva's Avatar
Senior Member
 
Join Date: Mar 2006
Posts: 101
niva is on a distinguished road
Have you read some codes? You can find heaps examples in MT platform.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-12-2006, 01:37 AM
Nicholishen's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 531
Nicholishen is on a distinguished road
Quote:
Originally Posted by nog
Hi all,

I'm new to programming and also new to forex trading... please bear with me! What I'm trying to do seems really simple and I would think there would be a script out there already for it but I can't find any. Basically, I just want to create a script to trigger a buy (or sell) when the price reaches a set value; this would be essentially the same as placing a limit order except that it would work regardless of whether the price was above or below the ask price. At first, I thought an EA would be the way to go but I only want to execute it once. Anyway, has anyone already done this? Or is it not possible for a script to continually watch the price? Thanks!

-nog
That's what an EA does during every tick.
Code:
extern double setprice=1.2034
int start(){
   if(Ask>=setprice)openorder();
}
void openorder(){.......
__________________
"Anyone who has never made a mistake has never tried anything new." -Albert Einstein
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


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
Help: How to write simple EA to buy and sell at a specific time? jack2 Expert Advisors - Metatrader 4 59 09-22-2008 04:17 AM
Detecting price trend independent of a specific time frame gee Metatrader 4 4 02-24-2007 05:53 PM
get high price in specific times pooshkin Questions 7 10-12-2006 06:03 PM
how to let the EA close all opening order of a specific symbol? phoenix Expert Advisors - Metatrader 4 4 05-30-2006 06:08 AM


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



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