MQL4 and MetaTrader 4 - page 151

[Deleted]
I am displaying the price from the current position of a Moving Average on my chart, But the Value is 10858.5 on the EURUSD, I am wanting to move the decimal place to the correct price of 1.08585 I tried using double MA1 = NormalizeDouble(MA[i],1); yet that did not work, All help appreciated 😊
I would like to draw automatically on 30 MIN chart two lines (support and resistance) indicated by the last 300 bars. From the last 300 bars indicator should find two MAXIMUM BARS (ONLY 2 HIGHEST BARS AMONG THE LAST 300 BARS) and draw the RED LINE and from the other hand the same indicator should...
hello, how can i do what i need to do as specified in subject line? reason why i need to do this is sometimes the $125,000 inital deposit setting which i manually set in the "expert properties " box strangely changes back to $10,000 sometimes when i shut down and re-open the MT4 terminal (maybe...
  Delete file. hst  (12   1 2)
You can delete hst files in folder history? 
hi everyone I use two moving average 20 and 50 and I enter to the trade in the pullbacks. In fact, I enter trading after pullbacks when the price is above 20 (bullish trend) or below 20(bearish trend). But it is important for me to know How many pullbacks are we in right now?(After the last
im trying to build my first EA. and the first step was to try to make the EA take a buy och sell position on a specific indicator. what i was expecting was to see a trade placement on the bar after the signal (which i have marked with red in the screenshot). but it seems that its placing orders a
Hello, I think I found a bug with MT4 on build 1353. I was back testing a trading robot on the symbol XAUUSD and it opens a long/buy position on 2016 July the 6th at 2:00 AM. This is using Dukascopy data. It opens at a price of 1368.81 and set a SL at 1273.81 I see this message in the logs
[Deleted]
  Show timeframe of chart  (12   1 2)
Hi guys, i like to receive an Alert message with Alert(); with the Text of the current timeframe in the chart Alert(Show me the actual chart timeframe); I can't find a call for that. I think one of you know an easy solution.
Hi, i tried to Marks candlesticks with Horizontal Line with body < 50% of overall length (high-low range), I use #property indicator_type1 DRAW_LINE but it not draw horizontal line can you help me please? ths is the script i tried to make
  Ping IP with EA  (8)
Dear all, I need to Ping an IP to check if my VPS is alive or not. I want to code with EA mql, of course ! I try to use ShellExecuteA, it can call cmd.exe then ping. Unfortunately, ShellExecuteA does not return value of ping's result. Is there any other way that we can check if my VPS SERVER IS...
Unlucky trying to find samples of Canvas usage in code base and articles and no search in codebase source like Find in File is available yet. Any hint would br appreciated. The goal is to write reports on canvas to not interfere with charts
my broker is IG and i can not find a signal tab in my platform any ideas? tk u
Hello, I'm new in mql programming. I wanted to create a mql4 script that return the opened orders of an EA and communicate that information to an external server. I've no idea on how to start, can anyone help me ? Thanks
When using the Standard Libary to create ChartObjects, the objects are deleted upon calling the CChartObject deconstructor. Normally, this isn't a bad thing with indicators/experts/panels, or can be worked around if you call the Save/Load functions, but scripts are a run-once ordeal, so this won't
Hi I use MT4 and I have been using VPS on my IG account. Since my subscription for VPS expired recently, I tried to register for another one as usual and yet I cannot proceed to payment. Normally I am supposed to see payment options such as credit card or paypal on the screen shown on the second
  OrderSend Error 2400  (24   1 2 3)
I'm trying to finish up an EA and I just can't for the life of me figure out why it wont place trades. Below is my function for placing orders. I am aware it's probably a little lackluster. This is my first EA and I'm learning. void PlaceOrder(){ if (CurBias == 0 && OrdersTotal () == 0 ){
[Deleted]
Hello, I have an EA in backtesting it works trading indices, but to run it in demo account it don't open any trade, but recently I have found a broker with its mt4 it works in demo and trade it normal. in your opinion why an EA don't open trades knowing that it did in backtesting? and why with a
Hello, im using mobile version mt4 and when i try to see logs i can see only 4 hours history and for 1 account, nothing else in app data i can see files but in .dat format and i dont know a software that can open it
I found a mq4 script on the forum (iprofit) that reads the account history, and shows me a total daily profit in currency and percentage. I'm currently trading Gold and Silver and i would like to filter/specify gold or silver in my script. I'm currently on the level of a script kiddie where i mostly
Hi, Everyone: I have never used MT4 before, but now I have a good MT4 indicator and want to use it on MT4 to analyse at least US indices (SP 500 and NQ). If I can take a look at a few US stocks, that will be even better. But after I downloaded the PC version of MT4, the platform does not allow me to
Scenario: I have developed my own Expert Advisor on mt4 platform. Recently, a same expert advisor is tested with same setting to install on 2 different broker mt4 platform. But the result is not the same. The factor of discrepancy is listed as follow: 1) different broker price data 2) different
Can anyone tell me if the alerts generated by indicators or expert advisors that appear in a pop up box saved somewhere so that I can go and look at what alerts were generated historically
  Margin  (2)
Hello! I have one question: If I calculate margin like this: double lot=0; for(int i =OrdersTotal()-1; i>=0; i--) { if(OrderSelect(i,SELECT_BY_POS)) { lot+= OrderLots(); } } int leverage= (int)AccountInfoInteger(ACCOUNT_LEVERAGE); double marginterminal=AccountInfoDouble(ACCOUNT_MARGIN); double
I have put together an EA and it is supposed to have an alert notification pop up when certain criteria are met. What it does: It sends an alert notification every 30 min (the time frame it is monitoring) while the condition remains true. What I want to to do: I need it to send an alert once after
Hello I installed the indicator, the mark is as in the picture. how should i fix it indicator name : kg-support-and-resistance-indicator program : mt4 Thank you
Hi everyone I had a problem when trying to close an open order, here's my code: void CloseOrders() { RefreshRates(); if ( OrderSelect (OrderTicket(),SELECT_BY_TICKET)) { if (OrderSymbol() == Symbol () && OrderMagicNumber() == MagicNumber) { if
This code failed to return the number 6 which is how many char in a forex symbol, any idea how to fix it? Thanks   string symbolArr[];  int k = StringSplit(Symbol(), "", symbolArr);  Print("k is: " + k); // prints "1" but "6" is expected.
  Want to team up?  (1)
Hello. I am a begginer trader and programmer. I am looking for people or a person who is interested in creating profitable Binary Options Bot. So far I've been writing in mql4 (2 months) and java (4 months). Bot (indicator) that I'm talking about is already capable of basic BO functionality, for
Hi, please your help with this: My indicators suddenly starts to plot the arrow marks all over the chart. The indicator fails more often in M1 timeframe, but it also happens in higher timeframes if i let it run long enough. If i reset the indicator or recompile it, it re-deploys itself and all seems
Hello I have a libertex account on Mt4 and I uploaded "*****" on the "Crude Oil" M1 period chart, but the EA does not trade... Can anyone tell me why? I don't understand