MQL4 and MetaTrader 4 - page 87

Im logged into my broker acct. But I cannot paste my EA into ANY folder in MT4, not Experts, Libraries etc. I also can't get to the folders from the finder "show package contents" path. Im on a Mac and my system is up to date. Any ideas
I really don't use mt4 for order entry and I see this when I try. Is this something with just my broker and only with the sell side or both sell and buy? Thnx
I want to make a total TP for same direction Grid order. For example, current trend is BUY and I want to place BUY Grid1, 2, 3, 4, ...... They should be closed altogether when BUY Trend change to SELL Trend. I expect BUY order close price is below orange line. What will be calculation formula in
I'm trying to backtest an ea for a single indicator on the 15 minute time frame. I can run the backtest with 90% modeling quality, but the results are inaccurate. When I open the chart to view the trades made, there are many buys and sells that were triggered by a price not within the range of the
I want to delete objects whose name contains the specified substring. When working with my own chart, I use this with no problems: void objectsDeleteById( string id, int line) { for ( int i = ObjectsTotal () - 1 ; i >= 0 ; i--) { string name; if (!objectGetName(i, name) ||
Hi, Can someone tell me if is it possible to run 2 or 3 different MT4 accounts on the same MT4 platform (For example all on ICMarkets) but i want to use different EA for each account. Please tell me how. Thank you
Hi, 2 questions:  1) Can an EA successfully run on an offline chart? and 2) What is the code snippet to disable or turn off chart (Offline chart) after the 1st tick of a new candle received and then re-enable this same chart after a new candle on chart has been opened (the next candle) or to turn...
hi devs, I'm stuck in a problem in mql4 that I didn't find answer anywhere. I need to do the following: When choosing mode1, enable option 1 and disable option 2 and vise versa whe choosing mode2 Is that possible in mql4? Thanks
Hi. experimenting with the MQL and I noticed that a trade for GBPNZD on my demo was opened at Sell 1.90798. when I enquired about the OpenPrice through this fucntion, value return is double -> 156680407. Can someone explain how this converts to the actual price point? I want to modify order with
  wrong output from iMA()  (11   1 2)
Hello everyone, I'm trying new code with Moving averages on 3 different periods: string MAsBuySig; extern int cx1= 2 ; // MA shift 1 extern int cx2= 3 ; // MA shift 2 extern int cx3= 4 ; // MA shift 3 void OnTick () { double MA200_cx1 = iMA ( _Symbol , _Period , 200 , 0 , MODE_SMA , PRICE_CLOSE
Good evening everyone, I have a problem with mt4, I can't close or modify a trade that doesn't exist in the list of possible pairs. It's a demo account but I don't want this trade to remain open. Is there a solution to this? I can't delete demo account until I close all trades... I post pictures of
Hello, I got this code from this forum and I've which should let my orders only be executed once its been 2 Hours since my last trade closed. However, If I run it then my EA does not make it's first trade at all. I've forced it to buy using the OnInit Function and closing it when the Ontick Function
Hi, I can't find the symbol of autotrade on my Meta4 Please can you help me how to find that it was showing but now not showing. Thanks
Hi All, I am making a Trade Assistant. The EA have 3 horizontal lines to adjust for Entry, Stop Loss and Take Profit respectively. Each line has their price above and while moving the lines, the values are updated corresponding to the new price. However, I am trying to also add the Risk to Reward
Hello, Can anyone help me to write an ea that will delete pending orders if no open order exits? What i want is an ea that will delete a pending order if my open order (buy or sell) has been closed, due to taking profit achieved. Example: I have a opened buy order with tp and i also have a pending...
hi everyone, i don't understand why my positions oppen themselves and do not close, could you help me, thanks. ****
Hello guys , i need someone to combine two indi alerts into one alert signal. Here is an example of the signal : Hope you guys give it a test and help me with the coding here is the Indicators: <ex4 files deleted>
Hi all, Have you ever seen something like this? Do you know the name of this indicator?
anybody can help how to make alert show only once, my alert always show every second here my code : int liveAccountNumber = 123456 ; int start() { if (( AccountNumber() == liveAccountNumber)) { Print ( "Account Verification" ); Alert ( "Account Number Pass" ); return ( 1 ); } else { Print (
// Input parameters input int Period = 14 ; // Number of bars to consider input int Range = 20 ; // Range of the volume profile in points input double SetChartWindow = 0 ; // Global variables double VolumeProfile[]; // Array to store volume profile values // Calculate
hi guys. I have the issue which faced most developers on this website (no trading operations). I hope someone helps me find what checks are required to pass this validation. (I tried check for lot size validity, enough money, valid ticket) knowing that the code run perfectly on tester (specially on
Hi All, I am trying to create an opaque rectangle (the rectangle covers the candlesticks). Can someone please advise which properties should be used. See attached code for rectangle upon double click. Thanks
I need a short code to add expiration date and time to my expert. void OnTick() {//1 if(!expire) {//2 expert body }//2 else message("Expired"); } //1 bool expire() { if expiration date reached return(1) else if exp date did not reached return(0) }  
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © funs9ra //@version=4 study ( "" , format = format.volume ) A1=(close-sma(close,20))/ (stdev(close,20)) A2=(ema(ema(ema(A1,3),3),3)) polt(A2) Change the previous code to MQL4 plz
I have a problem with my renko chart builder. It is an indicator where you put it on a 5 min chart, enter your setting, then open an offline chart that has the renko candles. However, this indicator repaints and I was hoping if there is anyone with coding expertise who can fix the issue. I have
Hello coders! Please tell me how to find the number of sub-windows of a graph that is not the current one? On the current graph - no problems (WindowsTotal()), but on other graphs
Hi everyone, I am programming in MQL4 for some time but there is an issue I can't resolve and it is around using buffers in custom indicators. Specifically, it is one indicator that I found online(i have it's source code). Here is the picture of the indicator *** How I approached the problem: I've
Hi, sorry if this trivial question have been already answer somewhere in the forum, but I've been unable to find it. Does anyone know how to sort the Market Watch table by Symbol name column?   Thank you very much, Best regards Stefano 
Hi guys, im trying to get a function that checks how many candles from the indicator were positive or negative in a row. My problem is that it is somehow not working correctly. So lets say: 4 Candles have been positive but it shows only 3 sometimes. Do you guys have a idea? Thank you! My try: //|