MQL4 and MetaTrader 4 - page 305

Hi All, Hoping there's something really obvious someone can point out to me. I have an EA that performs perfectly on backtests, and almost perfect on live trades - except for one key feature. At 2pm the EA analyses whether the current day price range is within the previous day price range. That
has anybody got an Mt4 virtual server running under Windows 7 family premium ? I started creating one and it hung at the stage in the screenshot https://www.screencast.com/t/6hbYA0noZgzE
Hello! Below is my lines of code to auto create VLine on other visible charts when I manually create it on the current chart. I don't know where I have made a mistake. Please I need your help. Thanks in advance. int OnInit () { ChartSetInteger ( 0 , CHART_EVENT_OBJECT_CREATE , 1 ); return (
[Deleted]
Hi, exist some "easy" order in MQL, which reverse my positions at the same price? Buy to Sell or Sell to Buy (always same size) OrderClose and next OrderSend (new reverse position) is slowly, I get slippage. Thanks. Endy
void OnTick () { double PRICE = 100 ; if ( OrdersTotal ()== 0 ) { int buyticket1 = OrderSend ( Symbol (),OP_BUYSTOP, 0.01 ,Bid + (( PRICE * 2 )* _Point ), 3 ,Bid-(( PRICE * 2 )* _Point ), 0 , NULL , 0 , 0 ,Green); int buyticket2 = OrderSend ( Symbol
Compiler doesn't get Error but when I attach Indicator to the chart Expert logs Array out of range (116,32) it means Close[z] by the way all of calculation of pprice() function correctly is done and it's drawn on the chart, but it doesn't generate any output
Recently I tried to install Mt5 on a Windows 10 machine (all the latest updates). My antivirus blocks it, because the installer "wanted to access a file with the Generik... virus". What could be the problem
Problem: While it is running, MT4 will load or remove bars in a chart (to achieve/maintain the "Max Bars In Chart" value), and when it does, my "separate window" indicator shifts by the number of bars that are added/removed. My indicator is my own tick chart, and therefore the indicator indexes
I do not want to renew my MQL5.com indicator's 1-year rental. How do I ensure that I am not charged for this again
Hello, I am new and just started coding mql4 EA. I got an indicator mql4 file, using TCCI indicator for drawing lines buy/Sell signal, there are 3 parameters in this indicator. I am wondering, can I pull these values into my EA, for buy/sell signal. Now, from what I tried, renaming the start()
Look at the following simple line of code: double ratio = candles[ 0 ].body / candles[ 1 ].body; When trying to debug this simple line, I get the following results: This result is all wrong! In other words, instead of: candles[ 0 ].body / candles[ 1 ].body // this is what I want to do... it does the
I have been setting my initial deposit for the strategy tester in the tester.ini file and the settings file for the EA in the tester directory and it worked fine until today. Now when i run a series of tests, instead of all of then running with a deposit of 1,000 i will find random tests running
Hello, I've been messing around a bit with some ratios, trying to come up with a way to optimize multiple criteria. And here's the result: double OnTester() { // Calculate the lowest monthly return double min_monthly_return=0; if(ArraySize(returns)>0) min_monthly_return =
Guys I need help please, I have been using mt4 fr the past 5 years with the same broker and lately I have installed a few systems that help me analayse, but in the process, my mt4 is slow , it would take time updating my charts and I dont knw what to do. Can you guys kindly help me with that
void CheckForMATrade() { string signal; double CurrentFast = iMA ( NULL , 0 ,FastMA,FastMAShift,FastMAMethod,FastMAAppliedTo, 1 ); double CurrentSlow = iMA ( NULL , 0 ,SlowMA,SlowMAShift,SlowMAMethod,SlowMAAppliedTo, 1 ); double PreviousFast = iMA ( NULL , 0
How can I get the properties of an object, say the date value of a vertical line which I have placed manually
How to do it using a indicator or an ea. I have indicators that only draw on past bars and nothing after attaching them, but I can't modify the code neither the author can(diseased). Thanks in advance
Hi guys, I attach the file of my indicator. If I tray to write the value of "volume[]", the log file display this error: 1 18:54:45.011 EstrazioneDati000 EURUSD,Weekly: array out of range in 'EstrazioneDati000.mq4' (98,239) 0 18:55:00.257 EstrazioneDati000 EURUSD,Weekly: uninit reason 1 When I don't
Hello, I have to create a multitimeframe indicator. My problem is to find iMA value for 5 different timeframe. As here: int counted_bars=IndicatorCounted(); if (counted_bars< 0 ) return (- 1 ); if (counted_bars> 0 ) counted_bars--; int limit= Bars -counted_bars; for ( int i = limit- 1 ; i
I had been running an optimization for some days and it was running fine. Plottign an optimization graph and showing results. I had about 30 minutes left, when i went for a walk and came back an hour later to see my system had crashed. After rebooting I opened up MT4 and as expected, I dont see any
Hi Ladies and gents I would like to set the highest equity for the last 10 candles. I was thinking that I can perhaps use Bars() or Time[] or TimeCurrent() to do this, but I do not know how. How can I get the EA to store the highest Equity and let the highest equity (if applicable) on the 10th
Hello! So basically I'd really like an indicator which converts my account trading profits to Swedish Kroner - Running profits if thats possible
if (Close[3] > iMA(Symbol(),0,20,0,MODE_EMA, PRICE_CLOSE,0) )//if candle close above EMA20// { if (Close[3] > iMA(Symbol(),0,200,0,MODE_SMA, PRICE_CLOSE,0) )// if candle close above SMA200 // { //So.. open position BUY// OrderSend(Symbol(),OP_BUY,jumlahot, Ask, Slippage
How can I create and move a vertical line on all open charts simultaneously and corresponding to the same time? In other words, How can I program the vertical line to be created and moved across all visible charts by creating and moving it only on the active chart
not anymore required
Hi, I'm trying add an alert functionality to the attached indicator, please see below for what I have so far: I'm expecting to have one alert when it crosses (and the candle is closed) above the 26.5 level. I'm expecting to have another alert when it crosses (and the candle is closed) below the
  Custom EMA  (1)
Hi, I need an EMA on 15M timeframe (period = 96) that calculate dynamic hlc3 daily as each candle price Thanks for your help 🙏🏻🙏🏻
  Coding MQL4  (2)
Hi, to all just stareting to learn MQL4... I have an issue, I have entered a sell position using the OrderSend Function but how do i reenter a new position when the price moves 50 pips away...Please can anyone write the script here... Thanks
hi I use NormalizeDouble in MT4 is there other function like NormalizeDouble in MT4? Best Regards Neda