MQL4 and MetaTrader 4 - page 268

I am using Octa-FX Meta Editor to generate my Expert Advisor but simple OrderSend is not sending new sending my new order plz check the code below. //+------------------------------------------------------------------+ //| HorizontalLine.mq4 | //|
I always tick the box "Save account information", but after every hard restart I have to reenter everything again. Additionally, MetaTrader in fact stopped understanding hostnames, so in each such occasion I have to enter server's numerical IP address too. Please let me know if I can have a backup
Tradingview has a trend-based fib time tool, anyone know of the equivalent EA for MT4? it's not available from the stand MT4 fib tools
I'd like to use GetTickCount(), but the documentation is so confusing. Please help. According to the GetTickCount() documentation, it returns the "number of milliseconds that elapsed since the system start". Does that mean since the start of the expert program, the trading terminal, or the operating...
I have 2 Mql5 IDs. Each ID has different EAs from the market. will EA still work even after logout from community under MT4 settings? 2nd question. Can I be banned by MQL5 due to using 2 IDs on one MT4? Thank you
Draw trenline by codes are not exact as manual trendline. It is difficult to get exact swing point ( Anchor point) as manual drawing. So most trendline Expert advisor are not success. In actually ,trendline breakout trading is better than other indicator trading system . Here I want to know is Can a
  StopLose and TakeProfit  (18   1 2)
//+------------------------------------------------------------------+ //| test01.mq4 | //| helmy gabriel | //| https://www.mql5.com |
Good day guys. I would like to ask - does anybody know if the ChartScreenShot command generates a chart event - or in any way affect chart objects? I have tried to use this to capture a chart which I open from an EA, the new chart opens with an indicator loaded to it that uses Canvas objects -
Greetings earthlings, how can I close a partial order such as 1/2 of m y total position after it reaches 1 ATR profit? once the below code triggers it keeps removing half of the position that is left. I was thinking of using my lotsize from the order but i have it as a function that returns the lot
Hi folks, I have very good EA wich works on back testing but does not work on live ac can you please have some thought ?
Hi, Everyone, I'm getting error whenever I'm starting Strategy Tester. The problem is that Trailing stop works on Buy signals but it does not work on Sell signals. When I place TP and SL in sell OrderSend code everything is fine and automated system works. But I want to activate Trailing stop on it
Hello, i work on a built 1280 MT4 version. I am searching for a period converter indicator to transform the conventional timeframe on the MT4 plat (ex. 1 min, 5 min, 15 min, 30 min, 1 hour, 4 hour etc.) to unconventional timeframe (example 2, 3, 5 hour etc.). I found on web several versions of this
I tried run a walk forward optimization test last week, can we trust it ? Window size : year Forward size :1 month Test period : 2011-oct to 2020-sep symbol: US30
Hi, I'm very new with MQL4 coding. I have an issue with my EA. Im not sure what is the problem. When running backtest, everything is good. But when running demo/real, a lot of unwanted Order open. Im suspect something to do with the TimeCurrent() as I use it to differentiate between current and
Hi Everyone, I've written a short code to measure the minimum duration between two ticks during a backtest (MQL4). I get one value =0ms: what could be the reason? It happens on Dow Jones (US30 Fxcm on 12th November around 11:34). Thanks a lot in advance :-) Here's my code: uint g_ttick_ms_prev
Respected Sir/Madam, I want the 2 line MACD to be the Indicator for Meta Trader 4/5. When I compile the Meta Trader it gives Errors. How can I compile a MACD 2 line indicator which is attached? What is the method to use the Attached Indicator
hello all How to programmatically put and show an indicator on a chart.
Hi all, i was writing in the MT4 Editor but suddenly the keboard doesn't work. If I try to write in Notepad or other software there are no problem. Have I a pushed a strange keys combination
Hello all guys. I was wondering if there is any change to develop an algorithm to detect support and resistance. I wanted to try to make one to use for a future development of an expert advisor. May I ask you to contribute to this post and add your code or articles or concepts as basic line ? The...
How to check if last three orders were in loss (any buy or sell order) in order history for the current symbol? and if last three orders are in loss, the variable "last_3_orders" should be set to "1" else set to "0".  (Mql4 code) int last_3_orders = 0;string last;for(int i=OrdersHistoryTotal()-1...
Hello, sorry I am brand new to MQL4 and am running into some errors. I am coding a simple Bollinger Band strategy that will go back and forth in buy and sell positions. I think my problem is in how I am telling it to open buy and sell orders. My Code: int length = 11 ; int mult = 2 ; int OnInit ()
Hello, New here. Im struggling to find a tutorial for creating a custom indicator or table. Basically I would just like to create a table on a separate window various currency pairs going down and timeframe across and just flashes every time say the 6MA crosses another 18MA. Nothing fancy no graphs
Hi, please could somebody help. I can link my account but only partly. when i load up the main screen in my terminal on MT4 nothing appears. But when i go into my purchased folder the indicator i have bought is listed, which is good but when i click install nothing happens. Please could someone
[Deleted]
Hi, Can somebody help to create EA from fisher_yur4ik custom indicators. I have a simple ideia for EA using Fisher indicator. When fisher previous bar more than 0.25, Open BUY and after open buy, if fisher previous bar below 0.25, CLOSE Buy And if fisher previous bar below -0.25, OPEN SELL and...
[Deleted]
  Candlestick font  (6)
Is there any font that depicts common candlestick patterns
I am trying to invoke this method in MQL: #import "Trading.dll" int GetSymbolCount( string symbol); #import The C# code is as follows: [DllExport( "GetSymbolCount" , CallingConvention = CallingConvention.StdCall)] public static int GetSymbolCount([MarshalAs(UnmanagedType.LPWStr)] string symbol) I
is there a way to know which indicator causing freeze and lag in terminal
//Trying to get the shift value of a vertical line whose name is stored in the variable VertName. long PriceDateLong = ObjectGetInteger ( 0 ,VertName, OBJPROP_TIME , 0 ); long PriceDateString = IntegerToString (PriceDateLong); int PriceLeftShift = iBarShift ( NULL , 0 ,PriceDateString, false
Is there a plugin to draw vertical lines every 45 minutes? I have found the Vertical Grid Plotter, but this only works on MT5 now. I am unable to compile the code for MT4 due to multiple errors. https://www.mql5.com/en/code/9006 Are there any other indicators/plugins that work? Thanks all
Hello everyone~ I want to ask everyone a question Impot libmysql.dll when developing ea But when MySQL will have an updated version Where do you go to download the latest version of libmysql.dll? (64-bit and 32-bit versions) Suppose I downloaded the version of libmysql.dll when I was developing