i gut i try to develop a script for do a trade , this script create some button for open a trade with one click can open also 10 trade short or long and close it when arrive at profit 0.01 , i have created also another button for disable taget profit , the name of button...
Hello, I'm trying to loop over a 2 dimentional array but I get "invalid array access" when trying to access the second array? Am I doing it wrong? This is my code. The highlighted code gives the error. Any idea? Thanks! void ComputePPRZ(CProjection* &clusters[][], CProjection* &prz[])...
I have written an indicator to calculate your lot size and maximum lot size based of percent of account you are risking and stoploss distance. It works most of the time on most pairs. But, every so often I get an insufficient funds error even though I am using the calculated lot size based on...
[Deleted]
I am on OSX 10.11.5, can anyone please confirm if this is a MQL4 bug? on OSX? it always return 130error. On OSX the MQL4 compiler did not used native objective-C, it might be using Wine? is that the reason i always keep getting 130 error while using OrderSend method? void OnTick() { string symbol...
How to open 3-4 strategies(EA) in 1 currency pair and 1 trade account? Does anyone have an idea on opening 4 strategies(EA) for 1 currency pair simultaneously ? Here's is my code for opening peding order if(OrdersTotal() == 0) { //Open buy Order...
bool NuovaCandela() { static datetime TempoUltimaCandela; datetime TempoCandelaAttuale=Time[ 0 ]; if (TempoCandelaAttuale!=TempoUltimaCandela) { TempoUltimaCandela = TempoCandelaAttuale; return ( true ); } else { return ( false ); } } int
[Deleted]
Hi I have following code int init(){ //---- indicators SetIndexBuffer(0,M1); SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,1,clrBlue); return(0);}//--------------------------------------------------------inside the start function--------------//int counter = 0;while(FileIsEnding(Handle)==false) //...
New article Tips for an Effective Product Presentation on the Market has been published at mql5.com: Selling programs to traders effectively does not only require writing an efficient and useful product and then publishing it on the Market. It is vital to provide a comprehensive, detailed...
Hello everyone, I have modified the Fractal channel indicator by entering the ZigZag indicator , however, I would like to create a obliguo channel but the result is not as expected , you could give me some help? Thank you #property indicator_chart_window #property indicator_buffers 2 #property
hellow, i want to county losses trades untli one of them will not Get TakeProfit. if order gets takeprofit order count must set to 0. i tried but my code dosn't work. //+------------------------------------------------------------------+ int TotalOrderCount(int MagicNumber) { int count = 0;...
Hello! I would like to know how to get every last Bid price of EURUSD, GBPUSD and EURGBP on EURUSD chart. For now I have: double EU1 = MarketInfo("EURUSD",MODE_BID);double GU1 = MarketInfo("GBPUSD",MODE_BID);double EG1 = MarketInfo("EURGBP",MODE_BID); but I think this is faster: double EU1 =...
//+------------------------------------------------------------------+ //| trade.mq4 | //| Copyright © 2004, MetaQuotes Software Corp. | //| http://www.metaquotes.net/ |...
New article LifeHack for Traders: Indicators of Balance, Drawdown, Load and Ticks during Testing has been published: How to make the testing process more visual? The answer is simple: you need to use one or more indicators in the Strategy Tester, including a tick indicator, an indicator of balance...
New article Universal Expert Advisor: Integration with Standard MetaTrader Modules of Signals (Part 7) has been published: This part of the article describes the possibilities of the CStrategy engine integration with the signal modules included into the standard library in MetaTrader. The article...
I understand absolute drawdown. But Maximum and Relative are not clear? If they are the same does that mean there was only one drawdown?
Hi I have got a problem in my code, so I cut and change part of it for my question; I need to get the last index of open buy or sell orders that already numbered in its comment. but when the same orders become more than 1, it doesn't return (return -1) its index, it seems break doesn't work and...
Hi All, I am looking for someone who can tutor me MQL4 either via online or in person. I am very keen to pay an hourly rate for your time. About me: I have some very basic understanding of MQL4 from reading a book on it and doing an online course I have built a couple of basic systems however it
Hello Guys, got stuck with this problem i want to find and mark pinbars either hammer or shooting stars i find few indicators do this but they dont even mark same bars! and they wrote it on way to complex way for me to understand :-s i appreciate it if anyone help me out and write mathematical...
I am bound to be mocked here for something which should be so simple, but does anyone have a script or links to an article that can explain how to do this. I have written scripts based on calculations from the entry price, but just cannot get my head rounds the pips in MQL 4 I have the price I want...
Hey coders I am just trying to advance my OOP skills here. I have an array of struct datatype... struct square { double resistance, support; int startCandle, endCandle; string name; }; When I am iterating through this array of these square structures. I just...
Hi, i am trying to compile an expert with bitmap embeded... but not works! As it's writed on the docs at https://docs.mql4.com/runtime/resources#resource_include i need to declare my resource using the command #resource to embed my resource on the compiled ex4. But not works! Below a code i use!...
Hello! Attached is raw EA, which should, to some of us, serve as an example of coding and using (simple) buttons on MT4 chart. EA goes under Experts folder. <ChiFunctions.mqh> goes under Include folder. Then compile and test. Buttons toggle between preset states/values, and change color and text
Hi, Please, could you tell me if it's possible to change trading hours on a chart window ? now i have candles from 0h00 to 23h59. I would like to have only candles from 8h00 to 22h00. thanks for your answers.
[Deleted]
Hello everyone.. I know how to set push messages from MT4 Desktop to the Android app, by getting the ID and add it to the app, but when i close the software in the desktop, it stops sending alerts.. Is it possible at all, in any way to make App notifications independent from the Desktop software?...
hi, i would like to know if it is possible to change zig zag indicator. I want it to use only candles beetween 8h00 and 22h00 and not 24h/24h. i use an ea with zigzag indicator on pepperstone brooker (8h00 22h00). I works well. The same ea on WHSelfinvest (0h00 24h00) works bad because of hours used
[Deleted]
Small Zigzag Pairs: ANY Time frame: 5M ONLY INDICATOR : ZIGZAG (Depth 2,deviation 0,Backstep 0 ) CHART : candle stick chart Entry long position: If Break upper top of down trend zigzag Entry short position: IF break down low of up trend zigzag stop loss : Use top and down zigzag Profit...
/* SELF-CODED 5-DAY SMA Set up buffer with style, indexbegin, and color for each bar: calculate closing price of last 4 bars and current price use to find SMA value at that bar update last value after every tick lock each bar's SMA value once the bar has close*/#property...
Hi. I am trying to create an Bitmap Object using BitmapCreate function of mql4 hqlp documentation... but nothing happens... can you help me? //+------------------------------------------------------------------+ //| Create a bitmap in the chart window |...
Hi, I would like to create some resistance and horizontal lines on a specific chart (example: EURNZD) which only need to show on EURNZD chart, but i found that those lines are showing on others pairs as well. May i know what i should do to set these lines only show on specific chart please? My MT4...
[Deleted]
As title how can I see my purchase amount for a specific trade in MT4

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.