MQL4 and MetaTrader 4 - page 58

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?
Can anyone help me. In " SymbolInfoDouble(Symbol(),35)" value 35 is useful for what on mq4
it starts and ends without any result. what did i miss? int slippage; double stopLoss; double takeProfit; bool isWeekday = (TimeDayOfWeek( TimeLocal ()) >= 1 && TimeDayOfWeek( TimeLocal ()) <= 5 ); bool isTradingHour = (TimeHour( TimeLocal ()) >= 0 && TimeHour( TimeLocal ()) <= 23 );
Hello, I combined two indicators such as momentum and moving average of oscillator (OsMA) on same window. I add level 100 on momentum parameter and level 0 on OsMA parameter. Now I would like to use these two parameters to determine the signal by coding on MQ4. Anyone can help? The point here I
  Strategy Tester anomaly  (12   1 2)
Hi Any help or explanation much appreciated This is some EA OnInit() code int OnInit () { datetime CurrentDate = ( iTime ( NULL , PERIOD_D1 , 0 )) ; Print (CurrentDate); } When I run the strategy tester its prints the date once as expected when the EA starts If I add one or two or a
hi guys, i need to find index of selected order in history trades.do u know any function for it
Hi there experts, I've tried several times to download the mt4 installation file from this link https://download.mql5.com/cdn/web/metaquotes.software.corp/mt4/mt4setup.exe?utm_source=www.metatrader4.com&utm_campaign=download and install mt4 in a desktop. But unfortunately it's installing mt5
Ive downloaded MT4 2 times already and it keeps turning into MT5?! what is going on?? AM i going crazy
I'm trying to move an adaptive ATR up to the main panel on my charts (see first pic). I can access the settings for the indicator (second pic), but no parameters that might allow me to move it to a different panel. Can anyone offer a solution or guidance? Thank you! Brentley
OnTrade() operates in mql4? Accustomed to mql5, I see that does not work in mql4... It's like that?
#property strict#property script_show_inputsextern datetime TimeNowTest = D'2015.01.10';datetime DayLightShifts[9] = {D'2014.11.02 02:00', //0                              D'2015.03.08 02:00', //1                              D'2015.11.01 02:00', //0                              D'2016.03.13 02:00',...
Hi friend , Is it possible to get High and Low of a candle by click on it? I need ti get information of a candle by click on it.
Have anyone here used the FindWindowA function yet, I passed the class name and window name parameters but couldn't get the hwnd from this window, someone help me please //-- #import "user32.dll" int FindWindowExA( int hwndParent, int hwndChildAfter, char &lpszClass[], char &lpszWindow[]); int
Improperly formatted code removed by moderator