MQL4 and MetaTrader 4 - page 799

[Deleted]
Hi, Is it possible to use Hash tables in MQL4 ? (also called associative arrays, where the index is a String). Thanks, John.
[Deleted]
HI, I can't place an order for some reasons. I press the button to place it, nothing. I right click>Trading> New order. nothing. Please can enyone tell me what i can do??? Thanks Michael
[Deleted]
Hello, For my own needs, as an exercise, I tried to develop an indicator showing support and resistance determined by zones, where you can enter areas and values. I publish my code hoping constructive criticism. //+------------------------------------------------------------------+ //|
[Deleted]
Hi all, I'm submitting a BUY marker order with an EA, and need to measure the time it takes to Close this order. Basically, I'm sending a Buy market order with a Fixed take profit: BuyTicket = OrderSend(Symbol(), OP_BUY, LotSize, MarketInfo(Symbol(),MODE_ASK), Slippage, StopLoss,...
[Deleted]
I'm a graduate student working on a class project for a Forex start-up website that is looking for input on how to make its website as good as possible. I would really appreciate your help in tailoring the site to best benefit retail traders by taking the survey in the link below. <Link removed >
  Signals on MT4  (1)
Is there any way to scale up or down a Signal that I've subscribed to? For example, the signal has $200K in his account, but I only have $5K in my account. Is it possible to change the scaling of the trades, so it scales the trades as if I have $10K in my account?
What are the pros and cons of optimised automatic portfolio trading
Hi i would like to add a widget on my fb profile page The bbcode produced by the market-widget is [url=http://mql5.com/2i1a][img]https://www.mql5.com/en/market/widget/41/mid?f=1[/img][/url] so if i post http://mql5.com/2i1a as a comment on my fb will it work? Thanking you in advance
If I select an order by if( OrderSelect(12470, SELECT_BY_TICKET) ) do I get a true even if this order of the Ticket is already closed and the order is already in the HistoryPool? Gooly
Hello! When I have time here at work, I try to run some backtest, but I'm having problems. I use the MetaTrader 4 with just the installation files that I have at home (can not install anything and proxies do not work at work). problem: When I run a backtest can not open negotiations with lots of...
Hi! Could anyone help me in this log? I have an EA that calculates orders and batches that will balance the final balance (if I have any drawdown, or the market change position). BUY SELL The part of the log: 19:29:44 2011.01.07 16:54 mGRID EA branch_dori USDJPY,M1: Account Balance: 25333.4924 19...
Hello, Curious if anyone knows how to do this. I mean, when my sell or buy order closed at 8:17pm with a loss, I dont want to place an order until 8:59pm or something like that. I'd appreciate if anyone knows code for this. My regards.
[Deleted]
Dear programmer, I have searched in the forum for similar thread, i got one. I tried getting idea from it & tried different coding. But nothing work. If possible please help. Strategy works fine in EA. Just after 1st trade its not taking any more. What i required to add in it to make it work? I want...
  Order History  (7)
Hello, i'm looking for a method in my EA to check if the last orders was in profit or loss if the last order was in loss, i will check if the order before was in loss so in general to say, how many loss trades in a row does anyone have an idea about his? i use OrderMagicNumber() and OrderComment()
[Deleted]
Hello, i have find today somethink that i dont understand. I have create a indicator which does draw some text to chart. When i close MetaTrader and restart it, then the indicator sometimes is not more on the chart, i dont understand why the indicator is automatic deleted, have somebody see...
[Deleted]
Dears, I need to get value of iMA from a specified time, how I do this? thanks
Hello guys, I was wondering if there is a way to get data with an indicator or an EA that will count how many bars on average was the price not touching the Moving average . I tried searching the forum and other sources but I don't know what exactly should I search for. Thanks in advanse
Is there a way to get two metaeditors side by side. So you can use one to look at code and the other for new changes. This works best if when you place the mouse on the other metaeditor - it prompts you to allow a reload. So you can edit either IDE and always know when to allow a refresh. Scite
[Deleted]
Hello, I have some problem with mt4, I tried to make a little code wich calculate the High average for "period" Bars but after compiling, the mt4 of my broker crashed. Please can you try, the problem is it my computer, I don't understand, have you got the same problem ? thanks...
[Deleted]
Hello, i have attach here a picture from a Toool with which you can open Orders, i want to ask if it is possible to create such drowndown menues and buttons with the new MT4 update? If its not possible with the standard new mql4 language, how could it be done?
Hello, Could somebody helt me get the time of the last zig and zag value. I have this to find the value:       int m5, x5;     //Her er det egentlig m, x men jeg førte også på valutaparet      x5=0;      while(m5<2)      {      if(zig5>0) zag5=zig5;      zig5=iCustom(NULL, 5, "ZigZag",ExtDepth...
Hi, in the new reference I find only 2 errors if an OrderSend(..) failed: 4067  ERR_TRADE_ERROR   Internal trade error4109  ERR_TRADE_NOT_ALLOWED  Trade is not allowed. Enable checkbox "Allow live trading" in the Expert Advisor properties Where are the other and what is in concrete the error-number...
[Deleted]
I understand MQL5 has OnTrade event. Is there anything that EA can know when an order is closed? I'd like to alert when a trading happens. Thanks in advance, Young
Now I want to make an Script which can get "input" by window or other tools when it was executed. For example, I have open 4 orders on USDJPY as below: order 1:4259920  buy 4 lots order 2: 4259921 buy 1 lots order 3:4259922  buy  2 lots order 4: 4259923 buy 2 lots  Now I want to create an Script,...
any one here can help me to code ea i need code that mean open sell order when bar open and last bar Close[1]<Open[1] close sell order when bar close down "Bear" and open buy order when bar open and last bar Close[1]>Open[1] close buy order when bar close up "Bull" i can't code this, when i...
  Trailing Stops and Trailing Profit  (66   1 2 3 4 5 6 7)
I need to use Trailing Stops and Trailing Profit. My plan: For Trailing Stop: *After reaching a certain profit limit say 10 pips, the Stop Loss will move to 5 pips. Now if that trade retraces back to 5 pips then 'Two Third' of the trade will be Closed. *Remaining 'One Third' will keep Running and
Hi coders, as mentioned in the headline, I developed a short script. Unfortunately it doesn't work at all. Any help is very appreciated! int start()  {//----   int counted_bars=IndicatorCounted();   if(counted_bars<0) return(-1);   if(counted_bars>0) counted_bars--;   int...
external enter a price value, when price reach the value then buy/sell. Problem: 'Ask' - constant cannot be modified extern double Price = 1.0 ;//+------------------------------------------------------------------+//| Expert initialization function...
My broker still uses the older build of mt4 and this is making it impossible for me to run EAs that were built for newer builds. Is there a way to make an EA that was built for a newer build to work for an older build? I hope my question makes sense?
[Deleted]
Hey guys, I am relatively new to the Forex world. I am using the MT4 Platform with Vantage FX and was hoping someone could help me build an Indicator of some sort to help with my following situation: 1. I am trying to establish the average price of pair at any point in time. I.e. (buy price + sell...