Hello, Every Guru in the house, Please help me concerning this code, I want this code to close all orders when the profit has reached certain level and stop trading for the rest of the day. The code below truly closes all the order as supposed but it continues opening more others, pls enlighten me...
Hi, Just a quick one, I am trying to develop an EA just to receive alerts when the current candle closes above or bellow the object created. Here is the code I am using: int LowestCandle= iLowest ( _Symbol , _Period , MODE_LOW , 100 , 10 ); int HighestCandle= iHighest ( _Symbol , _Period
Hi, I am trying to draw stretch for the day using this indicator but when I execute it , instead of showing output it hangs my MT4 terminal and settings. It does something wrong with especially last few lines of codes . Please check the code.. regards. #property indicator_separate_window #property
I begin with a question, how does one find all their account history in the MetaTrader 4 Terminal
hi guys how can i use other charts h1 open price in my expert? i guess i should use terminal global variable if yes, how i should set it
I want help from some experience coders in Object line breakout entry EA. Can someone help me. I coded highest and lowest line on chart int highestcandle = iHighest(Symbol(),0 ,MODE_HIGH,50,2); ObjectDelete("HLine"); ObjectCreate("HLine",OBJ_HLINE,0,Time[0],High[highestcandle]); double
Hello! :) I have tried to make some code, and I want to find a pinbar inside another pinbar, how can I do that? I have tried this one: #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 clrRed #property indicator_width1 2 #property indicator_color2 clrLime
hello MQLers I have done drawing the monthly and weekly pivot point but the yearly is kinda tricky, here is my code //--- int Counted_bars,i; Counted_bars=IndicatorCounted(); i=Bars-Counted_bars-1; while(i>=0) { shift=iBarShift(Symbol(),PERIOD_MN1,Time[i],0); temp=(iHigh(NULL...
What is the best accurate indicator for metatrader 4 ? let's sharing here guys
[Deleted]
Hello, How to debug my script ? It is possible to go one line at the time ? Set many Toggle breakpoints, but the script dont stop on it. Thanks, Tintin92
The indicator shows Engulfing and M.Star/ E.Star, as well as PinBar, but that PinBar is inactive. you can only start by enabling the "Technical Analysis 20 and 21" function. The indicator has the potential to be profitable, but needs a small adjustment, or the insertion of some filter that will
int TradeEntry( int Type){ if (Type == 0 ){ double BTP = Ask + (TakeProfit * Point ); double BSL = Ask - (StopLoss * Point ); if ( OrderSend ( Symbol (),OP_BUY, 0.1 ,Ask, 10 ,BSL,BTP, NULL , 0 , 0 , clrBlue )){ return true ;} else { return
Im getting my alerts on my pc and i enabled them for my phone and put in the code but im not getting them on my phone. Also when I test the notification it works. Any ideas on what this is
Hi Sorry asking simple question, I am very new and trying to learn MQL4 programming with MT4. I am trying to create an Array of objects. as shown below; But I a getting error and finding it difficult to fix. Please can someone help *** Thank you
Hello I make an image by WindowScreenShot and I want to copy this image to clipboard and paste in other programs (like telegram desktop or paint) I saw very good code for CopyTextToClipboard in this link : https://www.mql5.com/en/forum/153674#comment_5020915 I'm trying to use copyImageToClipboard...
Hello, Can we use a Expert Advisor on MT4 without Trading and only for notification/email alert purposes? I know Indicators do this, but I would like to understand if this is possible on Expert advisors. Thanks in advance for the clarification
Hi I recently downloaded an indicator called TURBO PLUS V3 for my trading strategy but every time that I install it on mt4 the program freezes and does not work... can someone help me? I think there's also TURBO PLUS V2 but I can't find it anywhere. thank you in advance and sorry if placed here but
Hi, My purpose with this function is to delete and re-submit my strategies order if market keep closing below/above my former STP-entry price. This is only for pending orders . It seems nothing happens from this code which confuses me. Anyone have any idea why it wont delete and re-enter pending
Hi I am very new to MQL4 programming. But I am programming in another language. I an trying to learn CHashMap to store key/value pairs in my test. I show this example using CHashMap online CHashMap< string , int > d; d.Add( "one" , 1 ); d.Add( "two" , 2 ); d.Add( "three" , 3 ); When add
Hello everyone While coding a part of a variable name suddenly turned to a string of unknown charatcter(s). Long time ago I had this issue so many times and I didn't figure out why, but now it happened again. Any idea why it happenes
Hi guys, I am experiencing issues with the FFC news indicator, giving error 5004, DLL + webrequests from the links are allowed, but still it can not download the xml file to present information.
Hi I am very to MQL4 and I am a learner at the moment. I am creating a simple class as shown below. I would to add constructor in my class, so I can use to build object. I have this simple script, but getting error; #property strict void OnStart(){ CurrencyCount currencyCount1 =
hi all im new this is two part of my program void OnTick() { for(int i =OrdersTotal()-1,OrdersTotal() >=0, i ++) { OrderSelect(i,SELECT_BY_POS,MODE_TRADES); if( OrderType() == OP_BUY || OrderType() == OP_SELL) { Akhar(); }
so i was creating an EA. My EA using an ATR as a stoploss placement. Here is the code. double ATRPointsB= iATR ( NULL , 0 , 14 , 1 ); double slB= NormalizeDouble ((ATRPointsB)* 2 , _Digits ); //for SL calculation for TP iwas using 2 times SL, in that case calculated properly, for example , if sl was
dear friends, i am not a experienced coder, but learning by going through experienced coders from forums. i have coded a trailing stop using zigzag by calling from a EA though icustom function. my ea trails for only one time and not trailing to the next swing highs or next swing lows
hii have this script //+------------------------------------------------------------------+ //| RPoint.mq4 | //| Copyright © 2004, Poul_Trade_Forum | //|
Hi, I have been developing an expert advisor which contains, at some point, a call to an indicator through iCustom. My question is: would it be possible to specify input parameters for iCustom via set file (rather than by specifying them one after the other in the source code)? Thanks a lot in
Hi, I am working on a indicator that can be put on a different timeframe than the chart is in. This is a option for a lot of indicators on trading view. A pine scripter explained that to achieve this in trading view you must use the so called: "security function". This function is explained in the
I need to change the coding of an expert advisor in mt4 to do the following: at present coding is when all condition are buy , I need to change this to a sell I HAVE TRIED CHANGING buyPrice to sellPrice but get error 130. please advise? roddi
I am trying to name an array after some variables, something like this string symbol = "AUDCAD" ; string type = "BUY" ; double symbol + type[ ] ; ArrayResize ( AUDCADBUY , 1 ) ; AUDCADBUY[ 0 ] = 1 ; This doesn't work though, and I haven't been able to find anything anywhere to point me in the right

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.