hello traders, Mql4 function IndicatorCounted() returns a value for the current chart ....how to get the amount of bars not changed after the indicator had been launched last on a chart differnt from the current one ?
Hi everyone, Anyhow please, how is correct way for: void TrailingAlls(int pType,int stop,double AvgPrice) { int profits; double stoptrade; double stopcal; if(stop!=0) { for(int trade= OrdersTotal()-1; trade>= 0; trade--) { if(OrderSelect(trade,SELECT_BY_POS...
Hey guys, I manage my trades using an array, the array contains the next Take profit level, how much lots to close at certain points and so on. The only problem I'm facing is if somehow my EA will crush? Or I will write a new version and need to redeploy? I'll lose my unrecoverable array. If I...
Hi all, Part of a script I am trying to run is needed to count the number of times that Price is equal to a value from an indicator. the current function I have that I would expect to work is here: int GETCOUNT(double P) { int bar = 0; int index = 0; while (bar <= Bars) { if...
[Deleted]
Hi, I moved to new computer and was forced to install a new built of MT4 way above 600. Almost all my compiled scripts are working, but those that don't return the same error: "not all control paths return a value". In theory I understnad what it might mean, but with my basic programming skills I
I am testing a simple EA that uses three MA, with the iMA api. When testing it, the chart shows the MA lines. I would like to color or hide these MA lines. Is this possible?
hej, i would like to 1. create 2. check 3. changeValue 4. delete a Global Variable The Variable shall have the Name of the Symbol and which the ea runs and LOL....example"EUR_USD LOL" how could i archieve this
Hello guys, I cant figure out... After i compiler my coding, it works accordingly but there is 2 warning sign showed and i cant find out what is the problem with it. Hope expert out there can help me out with this problem if(wt!=Time[0]) { if(TotalOrder(0)<Max_order && TotalOrder(1)==0 &&...
I want to write an EA that joins the highest points of each candle using a trend line (after the first six hours of a day). I saw the the documentation for the trend line (https://docs.mql4.com/constants/objectconstants/enum_object/obj_trend). This is what I've done: ObjectCreate(chart_ID,name...
I have no coding experience but i will be so grateful if you or anyone out there can help me to code an indicator in form of two horizontal lines base on this info.. 1) previous bar high-previous bar low=X next bar open price + X plot horizontal line at the calculated value high 2) previous bar...
Hi, I purchased an MT4 indicator, and I've been told I installed everything correctly... I installed the DLL file in MQL4\Libraries, the EX4 in MQL4\Indicators. Tools/Options\Expert Advisors... Allow DLL Imports, and on the Common Tab of the indicator, I checked off both Allow DLL imports & Allow...
[Deleted]
Hi friends, a small issue that maybe is really simple but i don't find the correct loop to achieve it : I need the function to calculate from a pool of orders Buy with same MagicIndex the maximum Lot Size. Example : Trade 1 : 0.01 Trade 2 : 0.02 Trade 3 : 1.00 Run the function and the result is 1...
Attached: "sdk pivots" indicator for MT4 This indicator plots daily floor-pivots, including pivot-range. It also plots daily camarilla pivots. It also allows for time shifts, and to ignore Sunday hours. So, very useful indeed. What would make it even more useful would be to have the option/ability...
I have a live account and a Demo account linked for Monitoring , and today i checked and both are displaying this message ( Signal is disconnected from monitoring and unavailable for subscription, please guide me , as i am not that good of a MQL5 user , and had linked my accounts just to have my...
[Deleted]
Hello, I tried to write to support department but it seem he/she doesn't have any idea about the website he/she is working for. I don't know why this employer still work for MQL5 since doesn't have knowledge about services this website is offering. The agent sent me to write about my problem on...
I am trying to use my variable switch_action which is computed in the zmq code (InterpretZmqMessage) and use it in my second function (secondfunction) #property strict#include <stdlib.mqh>#include <stderror.mqh>#include <WinUser32.mqh>datetime LastActiontime;#import "shell32.dll"int...
Never succeeded and tried everything (at least I think so), to create some kind of arrows for up and down instead of texts, inside of a button. I have other text in, in separate button it would not be problem. Is it possible in same button with other text? Here image speaks more ... about the wish....
Hy, i am working for a year on my first ea...its a complete virtual trailing stop....there is a problem: the ea shall stalk each order separate and nor cumulated... lets say we buy at broken Hjgh[1] and with new candle we buy again at broken High[1]....Now we got two open Buys with different prices....
MetaTrader 4 update will be released on November 9, 2018 in beta mode. The update fixes errors and improves the platform stability. All traders are invited to join the new version test. To receive the update, connect to the MetaQuotes-Demo server located at demo.metaquotes.net:443. The update will
I use 3rd party tool; if i desable it, tester is not running; there is 35000 bars recorded for m1 please, any help?
can anyone tell me what is wrong in my trailing function it works with Buy only !!!!! //+------------------------------------------------------------------+//| (My)Trailing Stop...
Making Test Bot for Metatrader Expert Advisors That Automatically Finds The Best Trade Value etc!
(4)
Hello Everyone! I'm quite new here and in the world of metatrader, but I have some questions that I am looking for answer. So, my question or problem is that, is it somehow possible to make separate code/script/bot or whatever other thing that takes some parameters like Price Pair, Trade Value, MA,...
It looks like my static ip address has been blocked from mql5 community. For the last few days I can't log in on mt4 to the community. There is also a red cross on my mql5 account security page next to the box i have ticked which contains my static ip address (Next to the box with the tick in it
#property version "1.00"#property strict// Required: MQL-ZMQ from https://github.com/dingmaotu/mql-zmq#include <Zmq/Zmq.mqh>extern string PROJECT_NAME = "DWX_ZeroMQ_Example";extern string ZEROMQ_PROTOCOL = "tcp";extern string HOSTNAME = "*";extern int REP_PORT = 5555;extern int PUSH_PORT =...
Good evening all, In order to improve the quality of my alerts I need to calculate the Highest High and the Lowest Low on every day starting from Midnight to any bar on any day, so that would be [i]. I found this thread where Whroeder explains how something like this should be done: https://www.mql5...
I: - turned off anti-virus - reinstalled mt4 - downloaded mt4 from another broker no one started mt4 editor in other way, mt5 editor openned normally( #2018.11.19 17:04 EN reply now, i tried execute as manager, nothhing(
hello i want to check url existence. but even though url exist it return error. i really can't figure out what wrong with it..i think it correct code. but still return error. anyone guide me much appreciate thanks! string cookie= NULL ,headers; char post[],result[]; int res; string
Hi, MT4 loses login info and market login and market apps after Windows restart. After next restart I have to put password to login then put second password to login to Market. Bought apps from Market don't work, so I have to delete them, install them again and assign hot keys to them again. How...
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.