MQL4 and MetaTrader 4 - page 69

Hi, I want to use dll files to get lot size from One Click Trading My Progress, I got the handle of that edit box using below code: #import "user32.dll" int FindWindowW( string className, string windowName); int FindWindowExW( int hwndParent, int hwndChildAfter, string className, string
Hello, So I am trying to test a strategy for BTC in my mt4. I have downloaded all the tick date to get a 99%modeling quality. And the EA is working as intended. The only problem is that the spread is not being taken into account. The spread for BTCUSD is 17$ or 1700 points in my broker. Even If I
I have written a custom indicator code, and it will attach a to the MT4 chart successfully and error-free but nothing will appear. It is supposed to show me some up and down arrows. Here is the code #property indicator_chart_window // Input parameters extern int period = 20; extern double deviation
[Deleted]
Dear MQL4 community, thanks for all the support from everyone out there. I need some help on how to add in some comments into my OrderSend() orders which expired without any trades. I know how to add in comments for those EA orders which successfully trade, but for some of my orders which passed...
[Deleted]
hi, is there any possibility to control the orders from an actual running EA ? e.g. the EA generates a BUY order with specific attributes, and i want to design another EA which denies the order from this other system ... is that possible ? or e.g. that there is a controlling instance which...
hi friends I have a problem writing my expert advisor in mql4. The expert that I wrote contains three buffers of external indicators and I want it to wait whenever buffers one and three exceed zero until only the second buffer exceeds zero in the next candlesticks, and if it is positive, it waits
Hi all, I’m testing this function to close an order partially, unfortunately it returns this error "OrderClose error 138" and I can not quite understand the reason. Thanks to anyone who wants to help #property copyright "" #property link "" #property version "1.00" #property strict
Hi everyone, I'm trying to find a way to turn On/Off my Fibo indicator but I can't find a way to do it properly. Also when I remove the indicator from chart all the objects they remained there. For the On/Off button I've tried to add: extern bool FibRatio = true ; and modify the int start section
Hello everyone, How can I use the iMAOnArray() Built in the function of MT4 in Multiple timeframes? which used to get Movingaverages over all timefrmse. thanks in advance
Hi, i have one multiple horizontal line indicator which able to plot 10 or more horizontal line in the chart.my problem with this indicator is i can't choose the color thickness level. The creator fixed permanently to 2nd level thickness which make me uncomfortable in the MT4 chart.Please help to...
hello friends how is download metatrader build 1371 someone can share with me link thank
Hi folks, Is there anything already existing, and even better if free, that I can use to schedule autotrading in the MT4 app on Windows laptop? I find that the bot I have running always has a loss most Mondays so I'd like it to automatically schedule autotrading to switch off on a Friday evening and
Hello, since last update of metatrader 4, last friday 21th, I get this message and my EA isn't trading any operation. In the setting menu all trading options are allowed, I mean, everything was working properly until the last update, and I don't understand what I should do. Please I need some help,...
Hello, Is there a way to change the color of trendline plotted for closed positions. Mine is Blue on black background for Long positions. I can barely see it. And dark Red for Short positions. I want these lines to be Yellow so I can easily see them. And if possible, change the width to 3
Please help me with this Hope someone can give me a clear and helpful answer Here is the code I wrote to check if the price is between open price and take profit, then sell half of the position and move the stoploss to breakeven. It works good, when reaching to the half profit point, it will close
[Deleted]
Hello, Could someone please change the level settings permantaly on normalized volume to 80 instead of 100? I've tried changing it myself, but whenever I switch to another chart, it reverts back to the 100 parameter automatically. Thanks
  MTF Trend-Magic  (13   1 2)
I tried to convert the trend-magic indicator to a MTF indicator but it does not work correcty. I know a little about coding EA's but nothing about coding Indicators so I need a little help. Here is the code below: #property indicator_chart_window #property indicator_buffers 2 #property
hi guys i have tried for hours and still couldn't find the problem on this code im new to coding so i don't know exactly what to look for i saw another page dedicated to this that said to check if the brackets were all good, i cheked and they seem good how can i fix it? int OnInit () { return (
Does MT4 platform have a built in feature to show the daily time period vertical lines on all charts time periods ? IE - 5min chart showing market open/close times when I scroll backward or forward on the chart ? I can't find this feature if it does exist, but figured I would ask before making
Hi guys, MT4: iBars iADX using two timeframes does not work on Strategy Tester . Why ? I am testing an Expert on M5, but it makes calls to the H1 timeframe. Thanks
[Deleted]
Hi. Can someone participate in mql4 market if banned in mql5? This important to me as i had submitted some products to help market in testing the upcoming market and i have a lot in store for forex traders. Raptor has ban me for 10 years in mql5 and now what will happen. I cant even access my...
Is this possible? What I want to implement is a dialog, with a constant size similar to "B" , where I can scroll to see other options like in the Dialog such as "C" . The problem is attaching an object, to an area greater than the client Height, you get "C" . I felt maybe I could extend the
Is there a way to get the bar index for which an indicator was called for from an ea ? (besides writing to a file and having the indicator pick it up)
Can i use closed order comment to work my EA trading decision or it is allowed in MT4? for(int i= OrderHistoryTotal()-1; i>=0; i--) { if(OrderSelect(i,SELECT_BY_POSITION,MODE_HISTORY)) if(OrderSymbol()==Symbol() && OrderMagicNumber()== Magicnumber) { if ( StringSubstr (OrderComment(), StringLen
I have an EA with a routine that runs OnTick(). It monitors the current chart's pair. But I want the same EA to check other pairs too. The problem is, the routine only runs OnTick() by the current chart's ticks. It can't see ticks in other pairs. Or can it? Is there some way to capture ticks from
I have writing a script and it work fine if I have the File path set as... string mySpreadsheet= "Account.csv" it will save the file in the files folder in MQL$>Files like I would expect Fig1 but if I change the file destination folder, to say string mySpreadsheet= "G:\\My Drive\\Account.csv"
&& iEnvelopes ( NULL , PERIOD_CURRENT , 27 , MODE_SMMA , 0 , PRICE_CLOSE , 0.5 , MODE_UPPER, 8 +i) > iEnvelopes ( NULL , PERIOD_CURRENT , 27 , MODE_SMMA , 0 , PRICE_CLOSE , 0.5 , MODE_UPPER, 9 +i) //Envelopes < Envelopes && iEnvelopes ( NULL , PERIOD_CURRENT , 27 , MODE_SMMA , 0 , PRICE_CLOSE
Hi All, I am relatively new to mql4 so apologies if my question is quite simple
ObjectCreate ( "Lot_Edit" , OBJ_EDIT , ChartWindowFind (), 0 , 0 ); ObjectSet ( "Lot_Edit" , OBJPROP_CORNER , Corner); ObjectSet ( "Lot_Edit" , OBJPROP_XSIZE , Button_Width); ObjectSet ( "Lot_Edit" , OBJPROP_YSIZE , Font_Size* 2.8 ); ObjectSet ( "Lot_Edit" , OBJPROP_XDISTANCE , 135 +
Hello, I have problem with instalation MT4 or MT5 on Raspberry Pi 2. I need some Proxy information. I haven't proxy. Can you help me?