Hi.. in MT4, I want to check current running orders and want to place a condition that if there is NO current running order(either BUY or SELL) then OrderSend(...) in MT4 Regards
Hi all My EA should open one trade if the ADX crosses a level from below. Most time it works fine but sometimes it opens multible Trades. All at the same time in same symbol. I think the problem occours in this part of code. This part should just watch if the adx crossed the adx_low_level from below
Hey friends, im trying to find two level of Higher Low and Lower Low in a specified time frame and also two level of Lower High and Higher High i tried to find it by this following code but it seems not working and it just specifies Lower Low and Higher High, Does anyone have an algorithm to do that
I want to open 2 trades to take partial profits. Is there an easy way to do this quickly, as the price could run away while I'm making the 2nd trade
Hello Members, Looking for a simpler logic to find Lower High under a certain time limit. Please see the picture for better understanding. In this case, I can find Highest point with iHighest Easily. Highest_barindex = iHighest(NULL,0,MODE_HIGH,80,1) But how to find the Lower High point X? Thank...
Hello I am looking to close a trade that i am in for the duration of 1 bar based on the prev 2 bars. if the parameters fit i enter a trade, but when i set my takeprofit to the close of the current bar it will look to execute a close order immediately as it takes the current close price and not the
hello, is there a way to convert mql4 Script to Ninjatrader 8 Script
hello, i got an issue with backtesting my ea... when i go to my mq4 file and check that line, i turn out to this..: double BasketTP( string type, string s) { double PriceSum= 0 ; double LotSum= 0 ; for ( int i= 0 ; i< OrdersTotal (); i++) { if ( OrderSelect (i, SELECT_BY_POS
Hi I am trying to allow my EA to have the ability to trade on either Monday, Midweek (tu,we,th) or Friday. Or possibly a combination I created 3 boolean values with midweek set as true as a default:- extern bool Mon = false ; extern bool Midweek = true ; extern bool
void CloseBal() { if (AccountEquity()<=MinEquity && AccountEquity()>= AccountBalance()+ Maxprofit ) { for ( int i= 0 ; i< OrdersTotal (); i++) { The maximum profit seem doesn't work
hi, i'm having a problem with my ea. the point of the strategy is that when the ema of 9, the ema of 8 and the ema of 13 periods cross the sma of 20 there will be an operation (only one at a time) but when compiling it does not give me errors but in strategy tester does not open operations does
Recently coded an EA and I thought itd be good to begin my forward testing phase, but for some reason it wont work !!!! It'll work in backtest, but when dragged onto a livechart in a demo account it wont open any orders. Any insight to this ??? Im sure its something simple, is there supposed to be a
Hey guys, Nice to meet you all. I'm new to the forum I want to create an Expert Advisor (Hedging EA) for the conditions below: 1. For Buy Order - 0.01 lot - SL = 0, TP = 30 pips If the price goes down to 30 pips below the open price of the Buy Order, it will: --> Sell immediately: - 0.03 lot - SL =
Hello everyone! Im trying to build a Dashboard that will alert me when price comes to a Supply/Demand zone.... I want to build the Dashboard with 2 indicators. The problem i have is, i dont know how i should pass the certain variables from the indicators to the Dashboard EA.... The "Peak HiLo
Ideally, I would like to end up with an array like [(O,H,L,C) 0 , (O,H,L,C) 1 , (O,H,L,C) 2 ... (O,H,L,C)n] where every tuple represents a candle and n=periods, n defined by me
hi.i have a question! i wanna start to create my own expert and if i run expert and close mt4 , do the expert works
Hi I need to recognize if the symbol belongs to fx, CFD or Futures. Should I used this? MarketInfo( _Symbol , MODE_PROFITCALCMODE) Is profit calc mode the correct way to figure it out? Please note that I want to do it programmatically. Any help would be appreciated. Added later: Let me explain more
I know the documents have everything I need to know. I even have the "Expert Advisor Programming for MetaTrader 4" book. The problem for me is just that I have no programming experience before this. So, I can manage with these resources but it's a real struggle for me. It's basically trying to learn
Is there already a solution to automate these: right click, save picture as, active chart (as is), save into IIS image webfolder where I can open from phone's web browser
Hi, Appreciate if anyone can help me modify EA code below to play sound/alert ONLY when iSAR value transitions from below the bid price to above the ask price and vice versa. Thanks, Alfie. void OnTick() { string signal=""; double MySARValue = iSAR(_Symbol,_Period,0.02,0.2,0); if
I set EventSetTimer() to 1 which means onTimer() functions is called at every 1 second. Now I am wondering what happens if onTimer() function takes more time than 1 second to execute
I'm using this code: #include <Arrays\ArrayObj.mqh> template < typename T> class CVector : public CArrayObj { public : T operator []( const int index) const { return At(index); } }; from the end of this article: https://www.mql5.com/en/forum/34637 But when I compile it I'm getting the error
Good Morning! I am trying to put an EA on the market, but the validator does not accept it. In addition, the validator does not say the cause of the problem. The only error message is: "test on EURUSD,H1 there are no trading operations test on NZDUSD,H1 there are no trading operations test on
I cannot find any code that will give "focus" to by ChartID If I have 4 charts open I would like to give focus to 1 when conditions are met.. Can anyone guide in the right direction. I dont care if its a script, ea, indicator ,article or some forum discussion something I could use or figure out (no
Hi, We can get highest / lowest value of last Depth bar using (similar to MT4 Zigzag indicator) : double theHighest = high[iHighest(NULL,0,MODE_HIGH,Depth,i)];double theLowest = low[iLowest(NULL,0,MODE_LOW,Depth,i)]; But how can we get the highest/lowest of the CLOSE price of each bar in the last...
I am writing an EA that continually execute a function as long as a buy or sell remain true. For example if buy is true, the function will execute and quite. It will check again if buy is still true, if true it will execute again. It will continue the cycle until buy is false. I tried implementing
[Deleted]
#property indicator_separate_window #include <Custom\Function_BBIndicators.mqh> #property indicator_buffers 1 int History = 50000 ; double Buffer_VolumeIntensity[]; //+---------------------------------------------------------------------------+ //| Initialisation Function
Hi all, I do understand that much has been written on this topic, but I'm struggling to line up my exact problem with the rest of the problems and solutions covered already. I'm testing some EAs in MT4 using a set of .csv history files purchased online in June 2020 from a reputable source. I'm
Hello, I'm trying to add my EA to the marketplace. I am getting validation errors and cannot proceed to submit for review. When I look at the details, its only running the backtest for 3 minutes. My EA is NOT going to publish a trade in 3 minutes! So how does one proceed

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.