Download MetaTrader 5

MQL4 and MetaTrader 4 - page 174

To post a new topic, please log in or register
Hi guys, I wish to merge MATLAB with MT4 following these steps: https://www.mql5.com/en/articles/1567. Main matter is that this article is 6 years and half old. Program changed and functionalities too. Can I still use this procedure and let them work? Thank you very much 
RAIH KEBEBASAN FINANSIAL BERSAMA ROBOT FOREX: EA OBED1 kelebihan : 1.setiap OP adalah profit 2.tidak perlu time frame 3.tidak perlu indicator 4.tidak perlu analisa teknikal 5.tidak perlu analisa fundamental 6.bekerja pada semua pair mata uang 7.bekerja take profit pada semua kondisi pasar 8...
As we know many thingsabout yahoo email like how to use it, how to send emails, how to attachexternal files, how to get or send email to third party email etc. I will mentioned somecommon things about yahoo email account but this is not enough for those whouse this email on daily basis they require...
Tools-> Options->Expert Advisors  To allow my scripts to run Orders I need to have 'Allow automated trading'  selected The issue is that after each MT4 update it is deselected.  Is these a way to retain my previous selection after the update?    PS  the spelling is a little unusual "....
Hi, I don't know how to install Pivot Indicator for MetaTraer4, anybody can help me with that? this is what I can see in C:/Program Files/ FxPro-MetaTrader4:   Thanks
I have this simple indicator which just adds two objects to the chart to show the spread and margin for currency pair. It is all fine when first added in (i.e. objects display correctly and are removed when indicator is removed), but when MT4 is restarted two things happen: 1) only one of the...
Stop Loss calculated from money given is useful in two cases: 1. Fixing a Stop Loss to a predefined value to risk. Let's say $80. 2. Stop Loss as percentage of the current account balance. Here is the formula for calculating stop pips from account percentage: ////// The Account Percent Stop limits...
//----delete objects// {//   for(int z=ObjectsTotal()-1; z>20; z--) {//      ObjectDelete(ObjectName(z));//   }//   Comment("");//   return(0);//  }//----delete objects Hi everyone, I have been searching with no luck for a way to clear a chart from "x" bars back.  So for example any objects that are...
I have a EA that is profitable up to 95%. The problem is that in real (demo) work is not working. He entered the trade late, took a higher price (or lower, depending on whether buying or selling) than in the tester. Perhaps the problem is that my ping is 110 ms? Maybe tester does not work well - how...
Hey there, I'm currently working on an expert advisor that uses fibonacci levels. This way I can backtest those levels. I'm using an indicator by deVries (included below) to try and get the last high and low of the ZigZag indicator.  This is what I'm trying... However, it doesn't work. Could anybody...
Hi, To pass mql4 string to dll in C I see this articles: https://docs.mql4.com/basis/types/stringconst https://www.mql5.com/en/articles/1391 so in my dll I do this : struct MqlString{        int size;       // 32 bit integer, contains the size of the buffer allocated for the string        LPWSTR...
Hi, I am trying to build an indicator and I need an MA on a Buffer I am calculating. For this reason I used the iMAOnArray function. Buffer's field of existence is [0;1]  and it also usually never comes above .5.  When trying to get this MA set as: double temp = 0.0; temp = iMAOnArray(ExtUpProb...
I have shown below 2 different codes that each do the same task of moving my stop to breakeven after price has gained profit of 200pts (at 0.1 lots). While the first code works like I want without any problems, I cant see why the second code although appears to work correctly in the MT4 journal it...
Hi Community, I need help on how to code the "playsound" multiple time. (ie 10 times repeating) once the condition met. Below are the original coding.   void SendAlert(string dir) {    string per = TimeframeToString(Period());    if (UseAlerts)       {       Alert(dir + " Pinbar on ", Symbol(), " @...
First apologize for my bad English.I am new in MQL4 programming and also in the forum and searched and found nothing like what I want. First, my code sends two orders , in opposite directions, and I need a code to open a new order so that one of them is closed. The order must always be opposed to...
Hi all, I want to test a strategy that only works from 10-12 and it's very annyoing that I have to wait and watch the bars being printed from 0-10 although my EA doesn't work during these hours. Is there a possibilty to let the strategy tester start working from another time? 
{     if (DB_Profit>=DB_Target);DBFloor=DB_Target;DB_Target=DB_Target*DB_Target_Factor;   if (DB_Profit>=DB_Target);   else if (DB_Profit<DBFloor);  }   j=OrdersTotal()-1;   for (i=j;i>=0;i--)    {     OrderSelect(i,SELECT_BY_POS,MODE_TRADES);     RefreshRates();     if(OrderMagicNumber()==DB_Magic...
Hello,   I need to calculate EMA in excel for backtesting. The formula for MT4 help topics is: EMA = (CLOSE(i) * P) + (EMA(i - 1) * (100 - P))  Where: CLOSE(i) — the price of the current period closure; EMA(i-1) — Exponentially Moving Average of the previous period closure; P — the percentage of...
Hello    I need help to calculate Low of previous bar for multi symbol through one EA. I was using ilow() function. I did not get correct update low of previous bar. 
Dear Sir all , please answer my question   Is there an option in MT4 for automatic trade or if there any robot can do this? for example , when i want to open a deal automatically of 1 lot of EURUSD ( sell or buy) at time 08:00 am , this means that when time became 08:00 am, my deal must be open...
Hello, I have been trying to integrate my calculation on eurusd chart. However, I could not find where I am mistaken. Would you help me out with my codes at below ? Or what do you suggest to have result as a line on EURUSD chart ?    Thanks.    // The code is being used for educational purpose only...
No matter my EA uses iMA or iCustom indicators, the indicators are not displayed on the chart where my EA is running. But my EA exactly works with those indicators. It means indicators are working for the EA, but not displayed.    Do you know how to make the indicators displayed? Thanks. 
Hi, Is it possible to get an alert when any of the symbols in MT4 terminal crosses the 30 level RSI indicator and how?
  Add a Line on EURUSD (11   1 2)
Hello, I have been searching and reading documents to find a way how to draw a line on eurusd chart and the line , which I calculated by using other pairs prices, is the result of my calculation. Could anyone help me how to add this result on eurusd chart as a line ? Thanks.
I know what iHighest/iLowest do but have found that these are quite often hit by spikes in the price. Is there an easy way to ignore the highest and/or lowest and get the second or even third highest or lowest.
Hello all,   I've been developing and trading with systems based mostly on candlesticks. Because I am a programmer, I start coding a Metatrader4 program to help me. I believe it can help more people as the program is very configurable and extensible. Is is still under development and needs testing...
Currently, mql4 can only provide time down to the nearest second for incoming ticks. We use the following function: MarketInfo(Symbol(), MODE_TIME) 1) Is there a different function that can provide millisecond time stamp or can be used to determine milliseconds for tick data coming to the platform?...
Hello all, Facing a problem when coding my simple moving average EA in mql4, just lacking mql4 knowledge really. How do I make it stop the trade when going 30 pips below/above MA, this is to protect from bad trades or negative SMA as I call it (see image). I don't want to use a stop loss. Currently...
The problems noted at https://forum.mql4.com/68999 and https://forum.mql4.com/67275 are still the same - if not worse.  If this one isn't corrected, it will act as an incentive to users to open multiple mt4 accounts simply in order not to have to switch to different chart timeframes. 
1...167168169170171172173174175176177178179180181...1249