MQL4 and MetaTrader 4 - page 933

To post a new topic, please log in or register
There is set of closed orders. I need to select the last one only. Can anyone please help? Thanks.
Hey dudes, I am trying to figure our whether MODE_HISTORY trades, when accessed by position,are sorted ascending (i.e. very first order is at position 0) or descending (lastclosed trade is at position 0). From several posts on this forum it seems that first trade is at zero but if someonecould...
Hi dears, Is there any any meta4 platform accepting the minimum trading amount as less than 0.1 lot? like 0.01 lot.......
I downloaded MT4 about an hour ago, and the streaming data has not updated since I first logged in. I logged in several times, restarted the program three times, and "refreshed" many times. Do I need to do something special to start streaming the data? ThanX!
hi friends, can anybody tells me,how can I close half of my open position and save the other part of it ?thanks
Forex Manual Traders and EA Traders. In my years at this market game it has always drawn question to why some of my fellow Trading Friends do not use "Friends" to locate trends, entries and exits while reducing exposure to risk. There are just some questions I will never have answers, this is just...
i run the ea I was building 2 days ago on tester.. the results were great. then I'm running them now and it looks very bad, its so frustrating.. spent a good amount of time trying to figure out if I had the settings wrong or if I had inadvertently changed something... Has someone come across this...
hi all, I have faced some problems in MT4 after upgrading from windows XP to Windows 7 I'm not sure if this is related to windows 7 settings, or with MT4 structure. Note: I have installed the latest Build from Alpari web page. The problem is: MT4 starts on the same configuration as it did at the...
#property indicator_separate_window #property indicator_buffers 1 #property indicator_color1 DarkGoldenrod //---- indicator parameters extern int MA_Period=20; extern int ATR_Period=10; //---- buffers double FFRI[]; //+------------------------------------------------------------------+ //| Custom...
Hello, the code below has been designed with the help of several contributors to send an e-mail when conditions are met and only at the begining of a new bar. There are two possible e-mails. One for a bull alert and one for a bear alert. How do we make the code send e-mails at the begeining of a new...
All I'm trying to do is make sure my EA only trades once per candle. This is my test code. Just copy and paste this whole thing into a blank EA and tell me what the heck I'm missing. THIS IS REALLY GETTING ON MY LAST FREAKIN NERVE! I'M LOSING HAIR OVER THIS! SOMEONE PLEASE HELP!!!!! int...
Yep, API has blown a fuse in my head so really could use some pointers from those knowlegable in such things. It's my continuing battle to have terminal restart itself when it loses connection for an extended period. Sometimes, it just needs a kick to regain connection. So my IsConnected EA goes...
Hi, where can I find this indicator?
I have tried to make a Stochastic indicator (form the standard Stoch) where it would be possible to change currency pair parameter. Does anybody know how to do this? I want to make an overlay of a few stochastic indicators with various pairs. (EURUSD,GBPUSD, USDJPY, USDCHF...)
Hi everyone, I am wondering because my stop loss loop simply looks at the last order of a particular symbol() and if the symbol matches then it checks for the stop loss and then if the stop loss exists it allows another event, yet for some reason it works most of the time but once in awhile it will...
Hi, I am back-testing an EA and its trading only Sell, for some reason its not trading any Buy. Can someone help plzzzzzz and its NOT throwing any error messages also, so don't know what is wrong...also download the History for all instruments I am testing this EA on but same thing only Sell's no...
  I need help with import dll (24   1 2 3)
Hi, I have compiled my matlab function into dll. In the EA, I put in the following code: #import "MLfun01.dll" double GetArrayItemValue(double ML_Signal[]); ML_Signal[8] = MLfun01(string CP, string dataCL,double arr[8],string OTM); #import the output of the Matlab function is a 1x8 vector, so...
I've wrote a DLL using Visual C++ 2003 based on a standard DLLSample project. My new function is GetCrossings. But when I try to use the function from a script I get an error: cannot call function 'GetCrossings' from dll 'crossings.dll' (error 127) When I press F1 the help isn't related to the...
This brief discussion assumes that you have read “BeIn-Phase” ((https://www.mql5.com/go?link=https://championship.mql4.com/2008/news/366)and “On the Long Way to Be aSuccessful Trader” (https://www.mql5.com/en/articles/1571. The gist of "Be In-Phase" is… 1. There is a zero return curve that...
Hi, does anyone have any idea how I can better write the condition for OrderSend()? If the main line from RVI indicator falls down of zero line. Go short. If the line goes up thrue the zero line. Go long. i have this: extern string  RVIsettings="------------Relative Vigor I. Settings";extern...
hi it should basically open a new trade if the previous trade (no matter if its a sell or a buy order) has reached 10 pips. it should not be a take profit thing, so from the point on where the first trade hits 10 pips there will be two trades open. if second trade reaches 10 pips aswell another...
I have a zero divide coming up in my experts journal. Any obvious errors in the code below? //+------------------------------------------------------------------+//|                Copyright © 2009, SanMiguel, ForexFactory Forums. |//|                                        http://www.sidekicker.net...
Hi all, I want to create an automatic expiration datetime instead of my usual method of counters and checks. My question is: given datetime CurrTime = blahblah, how do I create datetime ExpTime = CurrTime + x minutes? I looked at the doc to try and figure out how to create a datetime, but it only...
Hi all i wonder to know if there are other special character like \n ( = line feed ) that we can use in string or comment. any documentation ? Thks
This is more of a DLL specific question for all of you programming experts out there. In my DLL, I have a few dialogs and want to make the platform the parent window. Obviously, I can use the user32.dll function to get the int value for the hwnd of the platform, but in my DLL, how can I turn the...
hi there, anyone can help me ? for build or make forex hedge robot, i have ebook that contain hedge system or mehod, the following future needed in robot, 1. robot can calculate spreads and make trade 2 orders(one lot for buy and one lot for same in one currency pairt at same time,)  with...
I do not know if someone can help me to make an indicator to be sendlng me an e mail when the signal occuer. I have built the indicator but i do not know how to make it to be seding email.Am using mobile pc but customise indicator is not possible on so I want to run it on vps so when the signal...
I have been using WindowsScreenShot() in strategic spots in my code to assist in debugging one of my EAs. This EA makes iCustom() calls to several indicators which I would like to see on the screen shots. Forward testing is no problem, as I already have the indicators on the charts. Backtesting...
  TD Sequential 2010 (40   1 2 3 4)
Best regards