MQL4 and MetaTrader 4 - page 457

Hello everybody, Please give me some ideas ... I have used PumpingSwitchEx function for pumping initialization. But after some time the pumping was stoped. Next try give the error: Connection lost. How I can re-initialize pumping and reconnect to the server again? After stoping function "Connect"...
Hi, everything is OK about my EA. However whenever i put this protection code to my ea. It stopped using TP & SL!! I have tried to use account verification code... please take a look below //+------------------------------------------------------------------+ //| Waelmore I //| //| Created by
I wanted to start a mt4 at the location: C:\Users\cas\Documents\MT4\mt5. But as you can see the starting process hangs using one of my 4 kernels completely (CPU = 25%) and , forcing the other running mt4 (1-4) to have a higher cpu-usage as well and , the system requests all of a sudden 16% If I stop
In my mind I have the for loop and the array set correctly what is causing this array out of range error? Keep in mind I am brand new to programming and this is my first attempt at a functioning program....
Need help on my 2 MA crossover EA. The EA will close the trade if the price reverse too quickly (but did not hit the stop-loss). I think is because the MA also reverse/repaint. I think is because the MA is "drawn" on every tick. How can I make it 'trigger" only after the close of the candle? Hope...
Hello MQL4/5 Community, I have a question regarding a function i want to build into my custom indicator "my indicator". So basically my indicator cointains multiple indicators and summarizes them into the buffer sum[i]...
Only the purchase position opens Can you help? thank you all void OnTick() { if (Bid > High[1]) { OrderSend(Symbol(),OP_BUY,1,Ask,0,Bid+40,0); ; } if (Bid < Low[1]) { OrderSend(Symbol(),OP_SELL,1,Bid,0,Ask+40,0); ; }}
Hello, Wondering if someone might have the code needed to add a Fib Retracement on the High/low of the Previous Period on the chart?  Example,  If I'm looking at the hourly,  it would place the Fib on the High/Low of the previous day (Which is between the period separator), If I'm looking at the H4...
  GlobalVariables, MT4 and VPN  (13   1 2)
Hi All,     Have tried searching with no success.  I am having trouble sharing doubles between 4 EA's running on 4 separate Metatrader4 accounts running on my VPN.  The VPN is running Windows Server 2012R2.  I have used GlobalVariables years ago with no problems... but now they don't seem to cross...
double L24[]; double L32[]; double L40[]; double L48[]; i try to get those values,but i couldn't code. please help me .how can i get buffer value when arrived every tick? <Decompiled code removed by moderator>
[Deleted]
  MetaTrader Report Generator  (16   1 2)
<Link Removed> What are you thinking about this service.
Dear friends,    I am learning to code in mt4 and got a hang of it. I came across an indicator that display buy and sell value as seen in the screenshot below. Please guide me with study material or sample code on how to display buy and sell suggestions like seen in the screenshot. The logic is my...
Has anyone experienced (in Metatrader 4)   having their position closed for no reason? in the DEMO version? It happens after about 30 minutes.
What and why do I get this as my MT4 EA opens an account?
hi all, I hope you are doing well. I'm looking for a MT4 programmer to develop the following EA: Step1: Write every hour all retrievable details from the orderhistory section in a mysql db table.(drop the old table in mysql db) Step2: Write every hour all retrievable details from the open/pending...
Hello all! I'd like to add to some EA's a notification function that, well, notifies when a TP or SL has been hit. I made a kind of BETA version of the actual code but I'm facing some troubles that I'm not sure how to overcome:    for (int i = 0;i < OrdersHistoryTotal(); i++)    {      bool...
[Deleted]
Dear Metatraders  I am trying to develop an indicator that show me the highest high and the lowest low of the last 100 bars of all Major currency pairs,  This is part of my codes: double dEURUSD[2];dEURUSD[0] = High[iHighest("EURUSD",PERIOD_CURRENT,MODE_HIGH,100,1)];dEURUSD[1] = Low [iLowest...
I can only enter integer into the Deviations box. If possible please draw an arrow on the chart please, Red for put and Green for call. thanks Here is the indicator: bollitoucher.mq4
I set EventSetTimer(1) in OnInit (bool result is "true") , and I put my code in void OnTimer, but the indicator is still going through OnCalculate, which defeats the purpose of using OnTimer because the data received from the broker isn't faster than 1 second in some cases. Is there a way around...
I want to populate an array with currency pair values. Arrays are quite a bit different from Javascript I'm gathering. I'm totally new to programming and I took some online courses in Javascript to help prepare me to learn MQL4. I'm running into a snag with arrays. I dont understand the MQL4...
When I select specific timeframes for visualization in indicator properties, does it also stop the indicator from doing it's work for the remaining timeframe? Or is it that the indicator still works in the background, but the display is disabled?
When the indicator thread becomes busy and misses the next tick, the missed tick data is still displayed in the Market Watch tick chart window. So I wonder if there is a way how to get the missing tick data that is on display in the Market Watch window. I thought about the file ticks.raw file...
As someone with no programming experience I will have a lot of dumb questions. Here's one now. Can someone please explain to me why I cannot get this to print to my journal. It's very important for me to see. I cannot get either the Comment function or the Print function to work and I'm not...
Hi everone, I have a Question. I need the OrderProfit() of the first open Trade of the Buys and also of the Sells. But I have no Idea, how to program this. Can somebody help me? bye, tom
I need a simple code.. All I want is an external settings to be set up with two options (on and off) or (true and false) When "true or on" the Expert works and continues to work When it is false, the expert works but does not continue working after closing all open positions and pending orders.  can...
I'm not sure why I'm having such a hard time with but here it is. I'm trying to get the value of the GBPEUR no matter what chart I drop my indicator on. Then I want to store that value in a variable. I have been trying to test this with the print function so I could see if I was successful however...
  CANT LOGIN  (1)
hi,i keep getting the invalid acc message on my mt4,help please
Hi, i need help once more,  i never worked with functions before, but when the code starts to increase you have to use them, or you get spaghetti code,  i need help to get more than 1 returned value from each function, it's possible to do it? I've been searching, you can use something like passing...
Hello, It's very glad to contact with you, first. The followings below is my difficulties, and hope you to read and help. I have a pre-made indicator that shows simple arrows for Buy / Sell Entry. This pre-made indicator does not read the values of the 1st previous (closed) candle properly. And the...