MQL4 and MetaTrader 4 - page 154

Hi guys, need a bit of help here. Have been on a demo account of MT4 for a while, all no issues. Have transferred template of charts & my profile to live account, and now cannot see any trade levels on any of my charts. Have checked 'Show Trade Levels' is ticked in Tools - Options. The colours
I am trying to import an indicator as a resource inside another indicator , But when I try and compile the code , it gives me the error: unknown resource type 'C:\Users\r2\AppData\Roaming\MetaQuotes\Terminal\97E7543905E3BBAA10BC45C3DA77753D\MQL4\Indicators\IKSH.ex4' When I call this indicator using
REF: https://www.mql5.com/en/forum/158112 I do not want to revive the old thread, here, " due to the fact that the terminal stores symbol data for 10 minutes since the last access to them ", so 1 single chart with the below code can span ~100MB of RAM depends on how many data are in your terminal
Every time when the market get volatile my computer get freeze. I know, maybe I running more indicators than I need but as I'm learning I need them. On my indicators I use basically this format to plot them. int K= 0 ; int Periodo = Period (); switch (Periodo) { case ( 1 ): break ;
PLEASE HELP i need mt4 build 1090 or 1080 thank you
  New MetaTrader 4 Platform build 1090  (72   1 2 3 4 5 ... 7 8)
New MetaTrader 4 Platform build 1090 The MetaTrader 4 platform update will be released on May 19, 2017. The new version fixes some bugs in the operation of the client terminal. The update will be available through the LiveUpdate system.
Hey, can someone please fix this error please.  After compiling i got: 'iM' - Illegal switch expression type Thanks double iM =MarketInfo(Symbol(),MODE_PROFITCALCMODE);switch(iM){   case 0:sMarket = "FOREX";break;   case 1:sMarket = "CFD";break;   case 2:sMarket = "Futures";break;   default:sMarket...
  hi community  (1)
i am basic programmer anyone help me whenever i will get any close order then immediately i have to open one buy and sell for the same currency But my codings are working first two orders closing then will be immediately open my new buy and sell order here my codings void OnTick() { //--- for
I've been trying to understand the nature of the error there are no trading operations , which appears regardless of whether I add a bunch of checks indicated in this article (https://www.mql5.com/ru/articles/2555) or, on the contrary, remove all the checks and conditions, so that nothing interferes
//+------------------------------------------------------------------+ //| Mom Vol2.mq4 | //| Copyright 2021, MetaQuotes Software Corp. | //| https://www.mql5.com | //+------------------------------------------------------------------+
Hi there, I am writing an Expert that is going to open trade on Buy/Sell signals (arrows) from Hull MA indicator This is an example of my code: double val = iCustom ( _Symbol , PERIOD_CURRENT , "hull-moving-average-arrows" , 34 , 0 , 2 , 1 , 5 , 0 , 0 , 0 , 0 , 0 , 1 , 2 , 233 , 234 , 1 , 1 , 1 );
I want to place 1 buystop and 1 sellstop pending order and let them close in the next 6 bars, and i don't how. //buy setup if ( OrderType(OP_BUYSTOP)== 0 ) { OrderSend ( NULL ,OP_BUYSTOP, 0.01 ,RR, 3 ,RR- 20 * _Point , 0 , NULL , 0 , 0 , clrGreen ); } //sell setup if (
Hi all, My MT4 in my macbook suddenly cannot launch. Before activating the terminal, a window pop up saying shutting down the app. Anybody knows how to fix this? Thank you in advance. Josh
As shown as the below image, I have tried restarting the MT4, recompiled those indicators, refreshed on the Navigator window. Unfortunately, none of them work, would anyone know how would it be fixed
[Deleted]
I am wondering whether if I can install the same EA into 2 different trading account in the same terminal. If so, please tell me what to do, thanks. Same MT4 Terminal Account 1: EA1 Account 2: EA1
Can someone guide me which's EA will force to close all of open positions (including profit and/or loss) if the margin level reach certain percentage? ​Thanks in advanced
EDIT:Whilst it seems to me that this Normalization used to be a problem, theexperimental test indicators and scripts below have convinced me that this isnot (or is no longer) a problem (at least with the latest MT4 and with mybroker). The thread remains primarily for the indicator/EA below, which...
Hi! Can anyone please tell me a solution for this problem that the message I tried to write in excel (.csv) was written in single column of a row altogether. Not in different columns. My code was this: string handle = "testingexcel.csv"; int myexcelhandle = FileOpen(handle
Hi everyone. I need a little help with this issue I'm facing. I'm reading an .csv file in mt4 using mql4. The file has 2 columns and 20 rows. I'm able to read the data from the file but when I read data, in the first cell I get some unknown symbols with my data that is causing problem with my
I would like to get an indicator converted to mt5 from mt4, but I only have the ex4 file and not the source code. Is it still possible to get it converted from the ex4 file or what I need to have it built from scratch
[Deleted]
I have a few queries, I have different trades of each day and time of the week and I use breakeven. The problem arises when there's lets say a buy trade that is still running and I need to get into another buy trade. My question is can I be able to enter into another buy trade while this one is
Hi I have install like 3 different EA's but the don't open trades it just says trade is disabled in my journal.could anyone please help me
Whenever I start backtesting, I face the following errors and I have many mismatched errors in the report. Can someone help me and explain if this will influence my real results
Hi, While running this code snippet, error is coming saying OrderType returns void. CODE: for (int i=OrdersTotal()-1 ; i>=0 ; i--) { if (OrderSelect(i, SELECT_BY_POS)) { OrderPrint(); Print(OrderType()); } } ERROR: expression of 'void' type is illegal 1 1 OrderType should return int type
Does anyone know where I can get the code to calculate position size based on the instrument,percent risk and stop loss size
An EA I created that calls a custom indicator using iCustom executes trades 2 bars after the indicator has triggered on the chart. Any ideas why this would be happening? Any advice greatly appreciated
We all know that after MT4 is installed, there will be other files in this path(C:\Users\Administrator\AppData\Roaming\MetaQuotes\Terminal), but I have nothing here. The software is installed on the C drive by default
I've attatched a video of what is happening in my app. A couple issues. 1) The button on the Main Tab you can only click on the left side... This was weird.. However, then I realized it was being masked by the "Edit" entry on another tab. 2) Likewise when your on the other tab, the left of the
I have developed an EA in MT4 that I'd like to make available on Market. The EA is still working on my account and successfully did backtest, still, when I try to upload it I'm told it is of invalid type (apparently a script) What is I can do to have this properly seen as an EA from the Market
  GlobalVariables?  (4)
Does anyone has a sample of a code using GlobalVariables in the simplest form in MQL4? I want to use it in my EA but I have not fully understand how to use it yet. I have read the https://docs.mql4.com/globals but I'm still confused, it's better if I get more examples. Let's say I want to stop