MQL4 and MetaTrader 4 - page 248

I get this error on validation my product but it is running well on backtests . Please help me! double GetLotSize() { double minlot = MarketInfo(Symbol(), MODE_MINLOT); double maxlot = MarketInfo(Symbol(), MODE_MAXLOT); double leverage = AccountLeverage(); double lotsize =
Hello, I created a bot in Python and now I want to use it via MT4. I need 2 Interfaces - one to get the live data from MT4 (tick data or 1m candles would be fine) and one to place the trades the bot comes up with in MT4 (like a signal). What would be the best way to approach this? Are such...
Hi Guys, So I have been trying to export basic price data into a .csv format from MT4. Basically what im trying to achieve is to get the range of a particular bar at a particular time of day each day that runs in the strategy tester. IE iHigh - iLow @ 9am each day populate that into a .csv on a
Seems like every other color of line can be changed, even the arrow color as part of OrderSend and OrderClose, but not the dotted line that joins the arrows after an EA has closed a trade. Anyone know if both the color of the line can be changed and the line style?
Hi guys! The trades we place are being copied to a telegram channel, for this we need to enter a URL in the expert advisors tab you can see in the print screen below. The problem is for some reason the allow webrequest always gets resetted back to default so the URL disappears and we the trades no
I tried to install several indicators in the metatrader4 on my Mac Big Sur but they don't work. I right-clicked on the application as per the guide on the metatrader4 site and chose "show package contents", then I searched for the indicators folder and simply dragged the indicators. Then I reset
Dear everyone, My chart window version indicator works perfectly, but separate window version don't work correctly. I only change "#property indicator_chart_window" to "#property indicator_separate_window". I attach separate window version indicator soure code in post. Please tell me how to fix it
Hello!  I need an EA that trades the arrows that appear on the chart (BinaryOptions)- it would be great if EA will have inside options to set expiry like 15,30,45 min 1h, etc... I think it could be done in 2 ways by letting the EA scan a chart for a symbol for example arrow: 233,234 or by putting...
Hi guys, how can I code that my EA should enable "ALLOW LIVE TRADING BUTTON"? Thank you in advance
can someone help me to program an auto trade, for mt4 enter buy and sell at the same time, with tp as low as 10 pips, everytime it hits the tp it will trade another buy and sell with tp of 10 pips, and so on non-stop trading. and with functioning inputs TakeProfit = 100; Lot = 0.1;
Hi friends... i am trying to developed a Renko Based ea... actually i am new in MQL4.. i want to open the trade (buy or sell) when the second bearish or bull candle will make... example In RENKO i set the bar size on 10 pip..on the second renko bull can i will open a buy trade. & my stoploss will...
how could I extract only the text DB0F64EEC7A2A454E798BF69494A9ACB from TerminalInfoString(TERMINAL_DATA_PATH) ? TERMINAL_DATA_PATH = C:\Users\.........\AppData\Roaming\MetaQuotes\Terminal\ DB0F64EEC7A2A454E798BF69494A9ACB
  MACD HELP  (6)
Will any1 be able to help me code the signal line as soon as it crosses over the MACD under the 0 line, trigger buy order. I know it sounds simple but really struggling with this for a few days now. Would appreciate any help! double sellPrice = Bid; double buyPrice = Ask; double macd = iMACD ( NULL
It kept on producing OrderModify Error 1 when running the ea on strategy tester, everything is working just like expected tho but im concern with this error. This is the code: void OnTick () { if ( OrdersTotal () == 0 ) { int ticket = OrderSend ( _Symbol ,OP_BUY, 0.1 ,Ask, 5 ,Ask- 500 *
Goodmorning, i'm a noobie of Ea, i've 3 very interesting indicator downloaded from web, they are in ex4 file, is it possible to create an expert advisor from these? How shoud i do that? Thank you
Hi all, I'm seeking some feedback from other developers that have used unit testing for their EA's in MT4. Currently my search leads me to compare MQLUNIT to mt4-unittest. Has anyone here tried these resources and if so how did it go? Alternatively if there are any other options I have missed? Thank
Hi, I have created this EA but unfortunately it can only place order once at a time. How can I change it so that it can open multiple orders or turn it into a martingale EA? Thanks. int start() { double MyPoint= Point ; if ( Digits == 3 || Digits == 5 ) MyPoint= Point * 10 ; double
Hi All I'm Struggling to figure out the ACCOUNT_MARGIN_LEVEL function. I want ACCOUNT_MARGIN_LEVEL below 200% not to open trades AT ALL. If there's a way to do it or different way to do this, please feel free to help out. Here is my code below #property copyright "Jack Buda Copyright 2020
I can declare indicator parameter with any of two word = 'extern' or 'input'. My question what is different between two word. extern mType PendingOrderType = 0 ; input mType PendingOrderType = 0 ;
Hi, I have rent VPS for three months and migrated one chart with expert adviser successfully and its working perfectly. But I tried migrating other charts with custom indicators but when I open the journals after synchronizing. Can anyone help
Maybe someone has experienced the problem that I describe here and can advise what should be done about it. I noticed for quite some time that the results that I get with Strategy Tester are not consistent. One day I can test an EA, optimize it, be happy with the results and get a printout of the
hi guys, i have a question, i normaly use "iCustom(NULL, PERIOD_CURRENT, "majorkiller peak (1)", 15, 500, 0, 0, false, false, false, false, false, false, false, false, 25, 1, i) != EMPTY_VALUE > 25" but always run into a problem, when all buffer have a value like in the picture. is there a better
Hello , is there any way i can convert alerts from an ex4 indicator to print arrows on chart ? I used to work with an indicator that i bought but the buffers seem not to work anymore , i keep receiving signals from it with alerts..im using an autobot to copy those signals but i can't because the
[Deleted]
I optimise the EA. Then I run a single test based on the results. The results of optimization and single tests do not always coincide. Sequence of actions: 1. I select a pair (e.g. AudUsd) in the optimizer and set the period 2010.08.23 - 2010.10.30. Expert Advisor in the list and H1 timeframe are
Hi I am searching an app for Meta 4 wherein I can create multiple pending in one click. Let me know if anybody knows such application. Regards, Amit
Can someone please help me to add vlines at the same place that the arrows are placed
It is like starting afresh. Now, my EA is attached to more than one charts. So they won't all access the same static variable (with global scope). But they will all access the same global variable. How can I make my static variable accessible to EA when attached to more than one charts. The idea is
Why did I download and install the MT4 version but when I opened it up it was MT5
Hi! I have a worrying problem I cannot solve...help pls! I installed an EA on my live MT4-platform/account and didn't like its performance so I decided to delete it. I've done so - both shut down all graphs (fx-pairs) it traded on, AND deleted it in the Expert-file on my computer and rebooted the
It seems MQL5 community is the only VPS hosting company there is. Moreover, they are linked to all the brokers' MT4 and MT5 trading platforms I have tried. Or are they linked to Metaquote who produce the platforms? This may not be the place to ask this question but I am just curious. One may wish to