MQL4 and MetaTrader 4 - page 156

Hi All, Two months ago, I assembled a 24 Core Server with 64 GB RAM running a Windows Server 12 R2. The server is connected to the 1 Gbit/s port on my DSL Router Fritzbox 7590 which runs at the speed of 250 Mbit/s for download and 50 Mbit/s for upload. I adjusted the Windows Server for best
Hello, I've coded a basic MQL4 EA to open a BUY order and SELL STOP order at the same time. I would like to know if it's possible to remove the TP from the BUY order once SELL STOP order is activated. So below is the BUY order with TP 10 points...but I would like for the EA to set that TP to 0 once
This is a big problem just got apple phone and I cant sort my trades in iOS, it only arranges my trades by currency at default...I need last opened time . How come there not updating this? or I'm missing something
[Deleted]
If someone could help me solve this warning it would be greatly appreciated, The code works correctly yet I get the "implicit conversion from 'number' to 'string'" warning extern double SpreadRed = 1.0 ; double spreadActual=(Ask-Bid)/ Point /nn; string spreadValue=DoubleToStr(spreadActual, 1
I want to automatically create a new structure by changing the chart or time frame. What is the function of defining a new name
Prop firms requiring sl/tp placed at the time of the order Is this possible with EA or script ? I have searched code base and market for such a tool but those descriptions seem to suggest pending orders not market orders. Perhaps I'm not understanding what the autostop EA's are doing but their
Hey Can anyone help, I run into this weird problem. The story: I tried to hide an Indicator from the market and from my list of indicators , and I dont know what happen I cant find the page where indicator go after you hide them so i can show the Indicator again, So I decided to create a similar
I have imported various historical data as HST into my mt4. This are a lot of crypto currencies . These cryptos are not supported by my broker. I don't want to trade them with my broker either, I just want to analyze them technically with my indicators and templates in mt4. Trading is then done
  Change Time frame  (17   1 2)
Hello all, I have been trying to change a charts timeframe in my EA, but I haven't been able to get it to work.   string we ="GOLD";  ObjectSetInteger(0,we,OBJPROP_TIMEFRAMES,OBJ_PERIOD_M15); The code complied with no errors or, warnings.  I need some help to make this work properly.
Hi, I am trying to learn MQL4. I am curious as why my simple EA cannot execute properly. When compiled, there is no error and warning. Would anybody help? Thank you so much //+------------------------------------------------------------------+ //|
I cannot seem to understand the difference between OnStart() and OnTick() event handlers. Documentation says OnStart() is for handling scripts while OnTick() is for handling NewTick event. But I use OnStart() to handle events for incoming new tick in my EA and it seems to be working just fine. In
Any other payment options for VPS? I have exhausted my 100 USD per month for international transaction using MasterCard. Is there no wired transfer
  ACCOUNT CHANGE  (4)
I want to replace my original trading account (a live account) with a new account (a demo account) within the same VPS account. How do I go about doing it please
Hi, I have this VWAP indicator that can show Daily, Weekly, and Monthly VWAP lines, but there is a problem, if I switch to the lower timeframe like M1, the indicator is slow to load, especially if the Weekly/Monthly VWAP is enabled. So anyone can help me to improve the code performance on the lower
Hello I would need an indicator to do this simple thing for an daily candle of haiken aishi: the difference in price of X and Y. It should display in a box in mt4. If you have something like this please share. I saw some indicators for regular candles but nothing for haiken aishi. thank you Please
Hello everyone, I'm very keen to start coding EAs for MT4 but because I''m not so much acquainted with the language I decided to follow a tutorial (by the way very good) and after following the instructions I came up with the attached code , but unfortunately I cannot manage to compile it. Lot's of
Is there a way to delete the the content of a file (using the MT4-functions!) without deleting the file:  like delete and re-create?
I'm a little stuck on how to link <Deleted> to MT4 account that I use for trading. Previously <Deleted> installed it on my PC and it was linked to an FTMO demo account ... so now when I click the download terminal link, it just goes straight to FTMO demo account. I'm needing instruction of what to
Hello, I want my indicator to execute an order but I know that is only possible by a script or EA. I don't want to use an EA here and therefore the only possibility is to use a script and I read that the only method to execute a script from an indicator is by simulating a hotkey-keystroke which...
I am trying to create an array which has as values the rolling sum of another array. In this case, I am trying to create a new array (CumulativeArray) where each value is a rolling sum of 20 values of Array. Below, I have a snippet of code that I am hoping says the following
[Deleted]
Hello, Do you know any scripts which able to copy from MT4 to etoro? Best
[Deleted]
my ea have no errors and can trade on live but it is not working on strategy tester why any one experienced can fix it please
hi, I just coded a function for testing my EA by combining different indicators to give me results but my problem is I cannot select individual indicators or combine different indicators to give me results that i want. this function only works on this sequence "ENABLE C1, ENABLE C2, ENABLE BASELINE
Hi Forum, I use the MetaTrader on two Monitors with many small charts. When I maximize one chart, it is stretched over two monitors and I hate that. So my idea was to create a script (which could be executed with a hot key) to stretch the active chart only to one monitor. Unfortunately I didn't find...
Hi, I have been trading for over 5 years, I understand how to trade, and now I want to learn how to code mql4 my own. I want to create a " Stop Loss " function. Example, I have 3 types of Stop Losses: a. Based on last high low of 10 bars (already have code) b. based on the last candle hi/low c
Hi pals, I know if I open an order by EA, it is recognizable. But what about if I open orders by a one time script with a random delay ? Let's say I want open 100 pending orders by running the script each one 50 ticks above last one
  MT4 Not install  (3)
Guys I have Mt5 on my system but anytime i install mt4 only it opens in mt5. any help in this regard
Please I am building an ea that uses martingale, I want to know a loss trade loss in pips whether the trade is closed before hitting SL or it close hitting SL all I want is to get the loss in pips which the next trade TP will be that loss trade pips. So even if next trade loss or any amount of trade
I don't want my EA to trade during SWAP period. It is ridiculously to trade at swap time as Spread can be as wide as a six lane express way. How can I use time to tell my EA to jump swap period say 10 minutes before and 10 minutes after swap time. A small sample code will be appreciated. Did I say
I am completely stumped and would welcome any ideas. The below code is part of a larger and fairly complex logical sequence, but because of the printing I can see that the logical structure is functioning properly. However the OrderModify function is generating error 3. Is it not correct to use