MQL4 and MetaTrader 4 - page 234

I have some indicator problems, dunno how to describe it, its pretty confusing, been struggeling with this for over a week ! I have used up all line buffers (7 of them), and are using a good number of so called work arrays, these are arrays which are linked to the indicator buffers using [
Hey guys, I'm using an EA on a VPS to copy a master MT4 account (investor read) into a second Mt4, but due to the fast closure of orders, they usually last 1 minute or less, or due to slippage or "latency" of the expert, I'm not achieving the results of the first account. How can I solve and improve
Hello Everyone i wrote a EA based on ART strategy. It is opening only one trade in one chart. But i want to open many trade on different chart. Like same EA in different chart and want to open trade on chart. But when i attached this ea on different chart it is not opening trades although there is a
extern double PB1= 104.000 ; // Buy price of Phase 1 extern double OS1= 0.01 ; // Order size of Phase 1 extern double SL1= 0.150 ; // Stop Loss of Phase 1 extern double TP1= 0.150 ; // Take Profit of Phase 1 extern double PBDip1= 1.000 ; // Dip Level for new buy in Phase 1 int start() { bool
I have a class library file that contains classes used in the main body of an MT4 EA (MetaEditor 5.00 build 2375). Here I have two classes: The first one {#PivotPoint} has members for index and price of a pivot point. The second class {#ForkDef} holds the parameters of a fork, most of which are
Hey Buddies I'm not a computer programmer and my question seems simple. But I'm confused about it. I have read MQL4 book and function reference, but i can't find the solution. I just want to check if there is an open buy position or not? I tried to use OrdersTotal() but it returns buy and sell
hy , i dont know why in my script return always error 130 if i set a price 1.09556 for example work anyone can help me ? thnks //+------------------------------------------------------------------+ //| ExpertPens.mq4 | //|
Hi, I have checked forward test data (MT4 report) by quant analyzer4 (software)  and it's draw-down is so small. Why is it? I have watched EA trading and it shows much bigger draw down actually. For example, during my EA trade, max draw down was almost $2000, however I have import trade result into...
is there any difference and is it ok to use generic so i can use 1 mt4 for my different accounts from different brokers
Hi All, I need some help with my MT4 platform. It crashed and I decided to delete it and re-install a new one. Initila it wouldn't uninstall. I had use a software uninstaller to uninstall it. Now, I am trying to install a new one but each time to install it refuses to install and return this message
i am having a issue with this program. i am trying to make an ea which should open a trade when Ma crosses and should have gap in them ,if these two conditions met then should open trade on end of current candle/bar , but this ea opens so many trades buy and sell at same time. Please help
So I'm trying to create a Multi Currency Multi TimeFrame EA. I've come so far that it loops thru currencies and Periods of my chose. I send those to a Signal function that test the signal of my chosen indicator. So far so good. My problem is that if my SL takes out my order on the first bar it
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