| 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 (1) | Thread Tools | Display Modes |
|
|||
|
EA will show trades in the popup window but...
I'm a newbie programmer. I've programmed an EA that will work in the strategy tester and will pop up a buy or sell window live. The problem is that no trades show up on the chart or in the account. Any ideas on why this might be happening?
Thanks |
|
|||
|
Quote:
Apart from the obvious and posting the code for someone to look at, you should get an idea from the 'Journal' window during backtests as to why it is not opening trades (error messages). |
|
|||
|
Loading indicatordata into EA
Hi,
how can I get calculatet data of an indicator into an EA? I have build those indicators: Discret Butterworth-Lowpass-Filter (1st order) I think one problem is, that one indicator creates 3 datafields (3 lines in chart-window). I need the current data and the shifted (one bar) data, too. The indicator is called: butterworth-ad, so I tried the following to call it in an EA: ibutterworth-ad(......), but that doesn´t work ![]() Can someone help me? |
|
||||
|
Quote:
iCustom(NULL,0,"butterworth-ad"......,0,0) iCustom(NULL,0,"butterworth-ad"......,0,1) The second one is for the previous bar. You can look up "iCustom" in the search box in your meta editor if you want to understand more about how to call custom made indicators in your EA. I hope that is what you were looking for. ![]() |
|
|||
|
how to determine the current window is MT4?
this article is working to react users' commands
Get keyboard keys to MetaTrader! | www.metatrader.info but if i press the key in other window, it still works, that makes some conflict, does anybody know how to make it filter other window's keyboard event? i tried the following: #include <WinUser32.mqh> …… #import "user32.dll" bool GetAsyncKeyState(int nVirtKey); int GetForegroundWindow(); #import …… int start() { string lpString1; int nMaxCount1; int hwa= GetForegroundWindow(); //this api works nMaxCount1 = GetWindowTextLengthA(hwa); //this api works int x = GetWindowTextA(hwa,lpString1,nMaxCount1); //it returns 0, lpString1 is null too here if ( GetAsyncKeyState(VK_0)) Alert("0 pressed "+hwa+" "+nMaxCount1+" "+x+" "+lpString1); } |
|
|||
|
Dear Friends,
I need some help. Can somebody create custom indicator as follows : Line 1a Price Open - (Previous Range / 5) Line 1b Price Open - (Previous Range / 2) Line 2a Price Open + (Previous Range / 5) Line 2b Price Open + (Previous Range / 2) The line can changed automatic for all time frame, its mean can automatic change with each period (M30, H1 or H4). Thank you for your help. Kind Regards, Herly Last edited by herly; 08-22-2007 at 05:02 AM. |
![]() |
| Bookmarks |
| Tags |
| candle time, CHinGsMAroonCLK, coders guru, expert advisor, forex, how to code, I_XO_A_H, mechanical trading, trading |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/metatrader-programming/554-how-code.html
|
||||
| Posted By | For | Type | Date | |
| Need an experienced programmer? - Page 2 | Post #0 | Refback | 09-24-2008 07:24 AM | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to code this? | iscuba11 | Metatrader 4 mql 4 - Development course | 1 | 08-03-2007 05:22 PM |