Download MetaTrader 5

MQL4 and MetaTrader 4 - page 178

To post a new topic, please log in or register
make a point decimal from two integers? ive got two integer variables iMultiplier 100 or 10000 and iRange 4 i was hoping to divide the iRange by the iMultiplier to get the decimal of the price to add or subtract from a price but what was happening is 0 and not 0.04.. just try Print(4/100); the...
I have use FileWriteArray() succesfully in multiple EAs, but this time it just writes "0"s  - or it doesn't write at all, despite the msg: File Write =OK. As i'm using the exact syntax i used in other EAs i'm really puzzled and after a couple of hours i give up. Can someone take a look and tell...
I've been trying to establish the cross above or below zero, on an indicator.  I am comparing the value of Bar #2 to Bar #1.   Not Bar #0.  If Bar#2 < 0 and Bar#1 > 0 then cross up.  If Bar#2 > 0 and Bar#1 < 0 then cross down.  Should be simple.  If below 0, number is negative.  If above, positive....
Hello! Is there any better/smarter way to increase/decrease lot size every 100$ by 0.05lot? For now I have this, but I don't like it. Any better way? Thank you! if(AccountBalance()<300)      Lots=0.1;  else if ( (AccountBalance()>=300) && (AccountBalance()<400) )      Lots=0.15;  else if (...
Hi guys, this is my very first thread here. I been building a program with MQL4 that I use to create various systems based on candlestick patterns and price action. It is based on filters that can be activate and deactivate and it contains around 7 filters. It includes a risk management subsystem...
Hi All,   I have just just downloaded the MT4 and need some help on 3 matters please....   1)  How do I locate pivot points on the charts?  It does not seem to be listed on my indicators list. 2)  How do I enable GBP/AUD contract as I cannot find it in either the Major or Minor fx drop down? 3)  How...
Cabinet of environmental protection is a comprehensive concept, far from being a "Formaldehyde is not excessive" can cover. An original sin: chemical pollution in addition to formaldehyde, may also exist harmful substances as benzene, radon and other cabinetry. In addition to Outdoor Composite...
For samecode, sometimes there are not input parameters shown in the saved report after backtesting. But sometimes the saved report is fine after back testing. Incase that the report is saved and hasn't parameters in the report, html file, Ialways couldn't save a report with parameters no matter how...
Hi everyone.  I have working (searching the forum) the last few weeks and managed to pull together an EA that does not compile errors any more but the structure of it is all wrong and because is not executing at the proper times.  I was hoping some kind soul could take a look and help me to...
Is there a way to load a .set file by code? From what I've read it appears the only way is to do a file read, but this won't change the settings in the inputs dialog box which is what I'm looking to do through code.
Hi, does anybody know how the initial values of a struct are set? #property copyright "Copyright 2014, MetaQuotes Software Corp."#property link      "https://www.mql5.com"#property version   "1.00"#property strict//+------------------------------------------------------------------+//| Script...
I am MQL4 programmer. Could someone give me a clue how to run a pause in strategy from the EA, the metatrader 4. Already much but thank you. LupeMar. Sou programador de mql4. Alguém poderia me dar uma dica como executar um pause na estrategia desde o EA, no metatrader 4. Desde já muito mas muito...
Hi there, when I search I see a lot on how to check if a stop event took place but cannot figure how to check if a stop loss is currently place on my current open order. Something like: check all existing order on this symbol with this magic to see if there is a stop already placed, if not then......
PASSPORTS,DL,SSC/SSN,IDS(johnholtproduction1920@gmail.com)VISAS DIPLOMAS,TOFEIL, IELTS APOSTILLE GREEN CARDS,STAMPS,FINANCIAL STATEMENTS, RESIDENT PERMITS BIRTH/DEATH/MARRIED CERTIFICATES SSD Solution,Activation powder .ETC OUR COMPANY (johnholtproduction) IS MADE OF specialized IT professionals and...
To determine what is the total closed trade, "OrdersHistoryTotal" is used. To determine what is the time of the last closed trade, "OrderCloseTime" is used. How to determine the last closed trade symbol (eg; usdcad or usdjpy or eurusd etc...) 
Hi there I have searched and cannot find the exact answer on how to incorporate ADX into my trade logic. I am trying to only allow my buy order be opened only if the current 8 period ADX value is > 22.  I thought it would look like so, but not luck.  Any help would be greatly appreciated. if...
could it be possible to have one open orders pool loop for multiple pairs / periods? one for all orders is better than 12 running simultaneously just for moving stops. for practicality it would seem to only be needed if there are orders open and while a pc might spread its workload over multiple...
Is there a way to use metatrader as a simulator at all? So if you wish to practice tradeing based upon past data and when the market is close on a weekend you can do so at all? I was just wondering if this could be done. Thanks Larry Liles lileslarry@yahoo.com
I wish to know if in MQL4 language there is an associative container like map in C++. I know that there are a lot of enumerators and arrays but I was wondering if there is something, like a map, that better links both. P.s. I know that implicitly an enumerator could be a raw map (String + value) but...
Hi everyone! I am new of MQL4 code world. I come from a C++ background and I am trying to learn MQL4 language & conventions. I am writing a simple Expert Advisor (my first of all!). It compiles but, when I test it, it ends with "every tick a trade". I attach code to better understand what I am...
Can anyone help me trouble shoot an EA. It  essentially manages the trade one entered and has worked fine for a couple of years but as of this week it won't load onto the chart? I don't have any error message in the journal and all the settings appear to be activated. Only thing that has changed was...
I am stuck with an array out of range error. I've done much search to try find common coding mistakes and have placed 'safeguards' in to try stop the indicator trying to fetch outside the range. The indicator works, but sometimes when I flick through the time frames, I will get the array out of...
Eg: EA default parameter settings as StopEA=true; If (a>0) { StopEA=False; (this to be changed in expert parameter settings) } i would like to change this settings as StopEA=false while EA runs. Is this possible to write code? if yes please advice to get!
Hi A few questions re upcoming releases: 1) Are there any plans to include Renko or Range Bars within the application? 2) Any plans to allow detaching charts / moving outside the main window ? 3) Any plans to be able to change the symbol of a chart? 4) Assuming 3) Any plans to be able to link charts...
#property icon "MyIcon.ico" What is the maximum .ico file size allowed?
I've downloaded the MT4 setup (mt4setup.exe) from Metaquotes.  Unlike installers from brokers, this one won't let me install it to a custom directory.  Is it possible to change this so I can?
Hi, I tried to implement Ehler's Universal Oscillator which he described in his article "Whiter is Brighter", an implementation at TradingView can be seen here: https://www.tradingview.com/script/ieFYbVdC-Ehlers-Universal-Oscillator-LazyBear/ and implementations in various languages can be seen here...
Hi, I am good in EA development but new to back-end (broker) integration. I win a website project of a client. My client is a licensed MT4 broker. Now I have to develop his website and SYNC it with his MT4 server. so that he could add & manage his members. Members could also manage their trades,...
Hi I have bought a new computer with Windows 8.1. When I try and run 2 MT4 platforms together, different brokers and different folder on computer one will hang. They run fine separately but if you log into the other then the one that was running hangs. Never had a problem with my old Windows 7 M/C....
1...171172173174175176177178179180181182183184185...1249