Forex



Go Back   Forex Trading > Programming > MetaTrader
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

Closed Thread
 
Thread Tools Display Modes
  #11 (permalink)  
Old 09-18-2007, 03:34 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
- Trade context is busy: how to solve this problem.

- Trading Times Enhancement: very usefull code about only trade during certain periods.

- avoid plotting the EA on the wrong chart: some usefull codes about EA and certain timefame to trade.

- Use GlobalVariableGet() in an indicator: good thread with codes and explanation.

- List of Arrow Style and others like like fractal, circle, arrow up, arrow down and so on.

Last edited by newdigital; 02-17-2008 at 10:32 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!
  #12 (permalink)  
Old 11-07-2007, 11:29 PM
Junior Member
 
Join Date: Oct 2007
Posts: 1
bassco is on a distinguished road
How do I code an EA to enter a trade at the open of a new candle?

Hi everyone,

Please forgive my ignorance, but I am new to the programming side of MQL4.
What I am trying to accomplish is enter one trade at the open of a new candle.
For example, if I had a 30min chart open, I would like to enter one trade at the open. Or if I had a 4hour chart open, how would I enter the trade at the open of that chart?

Also, I would like to enter only 1 trade at the open. I have tried a few commands and found it either entering the trade many times during the first minute, or not at all.

I have tried the "time current" function as well as "if minute = XXXX". The EA works when I backtest it, but when I try to put it on my live demo, it only works once in a while.

Any input would be greatly appreciated.
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!
  #13 (permalink)  
Old 11-08-2007, 08:44 AM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Moved your post to this thread where you will find some links about how to code one trade oer candle etc.

besides there are some other threads:

Basic questions ...

How to open 1 trade per bar
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!
  #14 (permalink)  
Old 12-28-2007, 08:08 AM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
How to paint "Close[i]/High[i]" in seperate window.

How to code the expiration for pending orders.

DLL:
- MT4 Files Functions Replacement
- Create your own MetaTrader extension (dll) + video about how to do it.
- Net DLL wrapper
- dll tutorial for Visual Studio 2005

Last edited by newdigital; 03-14-2008 at 10:28 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!
  #15 (permalink)  
Old 01-25-2008, 05:48 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
NO Trade 2 hours before or 1 hour after news EA.

Last edited by newdigital; 02-17-2008 at 10:32 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!
  #16 (permalink)  
Old 02-17-2008, 10:36 AM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
hot keys in MetaTrader:

Secrets of Meta-Trader

Key event within mq4 programs

Hotkeys for Buy and Sell
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!
  #18 (permalink)  
Old 03-17-2008, 05:00 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
EA instant order requote problem: the thread with codes.

Mt4 and DDE: some programming issue.

Last edited by newdigital; 08-12-2008 at 06:10 PM. Reason: Mt4 and DDE
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!
  #19 (permalink)  
Old 03-26-2008, 11:10 AM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Timefilter:
- how to set EA's time in timefilter is on this post and this page.
- how to code timefilter in EAs (codes) is here.
- "Non-Trading Hours" on the screen fixing: example code; now it displays "Trading Hours" during trading hours and "Non-trading Hours" during non-trading hours. Thanks Locutus.
- how to code time filter: public thread.

Solution to computer restarts, keep those EAs running: some good suggestion about.

MM (money management) calculation, indicators, discussion, tools: calculate your lot size and so on. Original thread with several versions.

Magic number:
- Automatic Magic Function: small thread about how to do it.
- how to put magic number in EA: small elite section thread.
- magic number: small thread with explanation.

Last edited by newdigital; 04-08-2008 at 05:00 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!
  #20 (permalink)  
Old 04-01-2008, 07:54 AM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
How to create your own code Wizard Templates.

Creating Custom symbol Set File.

Automatic Time Control.

SpeechText back to live!

Signal Transmitter/Receiver: tool to send/receive text messages between MT4 instances.

Create your own .wav alerts.

Thread about copy trades to one or many Metatraders from many brokers from demo or/and real and so on with many combination of EAs or manual testing.

Last edited by newdigital; 05-15-2008 at 07:54 AM. Reason: Signal Transmitter/Receiver link added
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!
Closed Thread

Bookmarks

Tags
fractal wizard


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


All times are GMT. The time now is 12:43 AM.



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