| New signals service! | |
|
|||||||
| 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 |
|
![]() |
|
|
LinkBack (11) | Thread Tools | Display Modes |
|
|||
|
- 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 09:32 AM. |
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
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 08:28 AM. |
|
|||
|
Last edited by newdigital; 02-17-2008 at 09:32 AM. |
|
|||
|
hot keys in MetaTrader:
Secrets of Meta-Trader Key event within mq4 programs Hotkeys for Buy and Sell |
|
|||
|
what time of the day, the broker forms new daily candles?
How to link together multiple EA’s in under 15 minutes! Text objects on the chart coding. objects: set time zero+- X distance Best way to add MaxBarsToCount (History) to the limit Last edited by newdigital; 02-28-2008 at 08:04 AM. |
|
|||
|
Last edited by newdigital; 08-12-2008 at 05:10 PM. Reason: Mt4 and DDE |
|
|||
|
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 04:00 PM. |
|
|||
|
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 06:54 AM. Reason: Signal Transmitter/Receiver link added |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/metatrader-programming/2333-dose-posible-creat-any-function-mql-code-posting-forum.html
|
||||
| Posted By | For | Type | Date | |
| EA Biblioteka | This thread | Refback | 09-18-2008 08:14 AM | |
| EA Biblioteka | This thread | Refback | 06-03-2008 08:49 PM | |
| EA Biblioteka | This thread | Refback | 03-29-2008 12:05 PM | |
| EA Biblioteka | This thread | Refback | 02-26-2008 09:04 PM | |
| EA Biblioteka | This thread | Refback | 02-24-2008 01:24 PM | |
| EA Biblioteka | This thread | Refback | 02-20-2008 07:36 AM | |
| EA Biblioteka | This thread | Refback | 01-15-2008 12:19 PM | |
| EA Biblioteka | This thread | Refback | 10-28-2007 10:06 PM | |
| EA Biblioteka | This thread | Refback | 10-26-2007 03:40 AM | |
| EA Biblioteka | This thread | Refback | 10-17-2007 04:56 PM | |
| EA Biblioteka | This thread | Refback | 10-16-2007 07:16 PM | |