MQL4 and MetaTrader 4 - page 1078

Hi, I have calculated my lotposition and if the result is f.e. 0.047 Lot, I want to round it of to 0.04. This systematic should work on a micro- and a minilot account.
double NormalizeLots(double lots, string pair=""){ if (pair == "") pair = Symbol(); double lotStep = MarketInfo(pair, MODE_LOTSTEP), minLot = MarketInfo(pair, MODE_MINLOT); lots = MathRound(lots/lotStep) * lotStep; if (lots < minLot) lots = 0; // or minLot...
[Deleted]
Hi, Please tell me what time zone I'm looking at on the Meta Trader charts? Can it be changed to my time zone? and Please tell me who runs this page, is it users of meta trader? meta trader company/developers? or both? Thanks, Larry............
I have an expert that I am running in tester that takes data and saves it to a text file. The EA simply takes various variables and saves them as string variables in a text file. It does this through the use of the FileAppend function. Attached is the code. What I have noted is that when the...
Hi When I try and remove a profile it just keeps coming back this is annoying because I have too many there and only want 3 so I can scroll thru them quickly. The same is true for saved templates I remove them but they just keep coming back. Thanks
[Deleted]
Hi, I am using an idicator that draws line of dots on main window of the chart. What changes need to be done to indicator so that there is only the current line of dots and remove the previous lines of dots ? Please see attached file of the indicator.
[Deleted]
  robot problem  (3)
Hi good people. i have an ea that works on meta trader. now my problem is that when i installed it i refused to work and i say that the spread is to wide for meta robot to trade. i do know of the the added figures that have been added on to the currency. now can any one tell me as to how i eliminate...
Hi MT4 Community, do you guys know an exception that the AccountNumber is not part of Title please? I am trying to determine the accountnumber without using mql from external and wonder if i can trust the title. Does someone know any broker which does have different title then account number...
Is there any way I can copy the account history in MT4 to Excel or a file system? At the moment all I see is a "Save Report" function that produces an HTML file that I cannot manipulate. I need to do some analysis on the account history. Can anybody give some advice?
Hey Fellow Traders, I developed a semi automated trading system, based on a weekly chart, 10 points of entry for shorts, and longs(identified by the user on the chart).5 points for short orders, 5 points for long orders System rules: The system trades on a weekly chart(static chart).First: the...
[Deleted]
Set up my first meta trader account last week.I have been sent a zip file of some templates to use in accordance with a trix strategy.Please could someone advise me of the process of getting these onto my platform. Many thanks in advance for any help that people can give.
[Deleted]
Hi everyone ! Please forgive my bad english...I am french...nobody is perfect... ^^ Well, I would like to know if you could help me because i'm completely a noob in MQL4. I am trying to make an easy EA wich will place pending BUYSTOP and SELLSTOP orders on the highest and lowest price of the last 3...
  Get all symbols  (1)
Is there a command in MQL4 that will display all available symbols offered by the broker?
[Deleted]
As you read in subject, I need to proportioning 2 buffers with different homogenous size,i n the same subwindow. ex. BufferOne[0] = 1.10 ;BufferOne[1] = 1.15 ;BufferOne[2] = 1.22 ;BufferOne[3] = 1.50 ;BufferOne[4] = 1.30 ;BufferTwo[0] = 100 ;BufferTwo[1] = 150 ; BufferTwo[2] = 350 ;BufferTwo[3] =...
void function(){       int i;          for(i = OrdersTotal()-1; i >= 0 ; i--)             {          OrderSelect(i,SELECT_BY_POS);                    bool tp1_allowed= true;                     if(OrderSymbol()==Symbol())                  {           if(OrderType()==OP_SELL)...
  Noob here  (2)
hi guys, I have a request about a very simple EA I wish someone could code for me. It involves only 2 types of candlesticks, dojis and hammers. Once the EA has found either pattern it would then place a buy at the high and a sell at the low(waiting for the break out). trailing stop of 15 pips and a...
[Deleted]
Hi Guys, is it possible to convert/translate and/or import a trading strategy written on Tradestation EL to Meta Trader 4. Alternatively can I use TS to generate the orders and Meta Trader as my front end to execute ? thanks
[Deleted]
All of a sudden my script terminates with the following error: 4005: ERR_NOT_ENOUGH_STACK_FOR_PARAM: Not enough stack for parameter . What could be the reason for this error, and how could I get rid of it
[Deleted]
  ea thread  (9)
if buy is true while sell is false,it will be 20 orders. if sell is true while buy is false,it will be 10 orders the question is when buy and sell all true,ea will only do as sell is true ? any advice? start: if (!ExistOrder(OP_BUY) && buy){ OpenOrder(OP_BUY); } if (...
[Deleted]
Hi, could anyone be so kind to give me an indicator which will show pivot points for ONE day, and also showing the hi and lo from yesterday? I had a copy of a really good indicator which showed this, until my laptop collapsed and I lost all my favourite indicators. I also had a package of different...
I am using H4 to backtest on USDJPY I update the historical data and my backtest has not the same resul. I check my H4 file before update, all the volume are now different ? ex: before : 1999.01.04,04:00,113.470,113. 700,113.400,113.610,226 after : 1999.01.04,04:00,113.470,113.700,113.400,113.610...
[Deleted]
Dear All, Can you help me find out the general formula for calculating the overall initial margin requirements for a set of long and short positions at the same time? Assuming that, The same symbol is used, say EUR/USD.The standard lot size is, LOT=100,000.00 units.The leverage is, LEV=200 (i.e. 0...
[Deleted]
When I change the code on an EA then save it as different name it changes the one I am working on . Anyone ever have this problem? Don't know if it's in the platform or my computer. Also I have never used a limit order in the code before.Just market orders. For example : Buy 3 pips below Ask[0]...
[Deleted]
We our company would like to try out this MT4 metaqotes and unable to code these EA, we are one of the mainland china companies dealing with especially gold and silver business. We currently need to try out the following testing trial as well Please give the following information for try out login
[Deleted]
  Real Account  (3)
hi all, i am totally new to this world, and i would like to ask a very newby question (sorry about that): i am from outside US and i would like to open a new real account. what are the brokers that one can connect from this application? are there some recommended ones? i would like to open an...
B"H Hello there, Assume I have reliable M1 history bar-data. Is it possible to generate reliable M5 bar-data out of it? For example, by applying the following conversion scheme: Observe 5 consecutive M1 bars on each iteration. On every iteration determine the attributes of a single M5 bar (Open,...
  Buy and Sell EA  (6)
I've been looking for new EA's and I came to a conclusion. I want that the EA do this every time it happens (IF the opening price of the candle < moving average 50, AND the closing price of the candle > moving average 50 I want to BUY) If possible i want another EA that do the oposite (IF the...
Hi, I need to point out the first long order that occurs after a pause of no open long orders (this EA trades multiple orders in the same direction). The code below tries to find this order, and put a marker on it (for debugging) . The EA places its trades as usual, and in the Start function I call:...
[Deleted]
Hi guys, Is there a way to detect if an account that an EA is running on is a spreadbetting account as opposed to an ordinary account? The difference lies in the designation of P/L calculations - Spreadbetting gives a different result to ordinary FX accounts since P/L is measured in terms of Stake...
[Deleted]
I use strategy tester from metatrader 4 Speed 32 is too fast and 31 very slow !!!!!!!! Any help please?