Can anyone point me to an example of code that can intercept signal data I have subscribed to in my account? I would like to change the way autotrading is using the data but I do not know where I can intercept the data before it goes on the autotrader. Thanks for any hints.
Hello gentlemens, I am facing an issue, I want to know the hour and minutes values on every candle. After placing: if(OnNewBar()) { Print(Hour()); Print(Minute());..... I always get 0 value, am I doing something wrong here
Hi there, I am new on MQL4 coding (and any coding) and I wrote this EA, it is not doing wrong, but, when it losses a trade, sometimes the parameters still fit and it would open another order right away and lose like 3 trades in a row. Is there a code that will make the EA to Stop Trading for X
Hi im writing an ea to check if moving average crossed then to check if the trigger candle is the highest or lowest candle out of 8 , there is only chance for two candles max after trigger to be swing high if not the trade will be false , but my code dos not work for some reason i know the problem
I'm looking for some way to test arrows placed on chart subject to time frame expiry as in the money or out of the money. Some kind of a back tester or simulator that keeps track of profit made or lost. That could be an indicator or an EA possibly? I've seen a hand full of testers by Google
Hello I have 8 CPU cores but MT4 use only 25% of CPU. please check attached screen shots. What can I do to use max possible CPU
hi im having issue i wrote a functionisthereactiveorder() if there is a buy dont open a buy if there is sell dont open sell it seems to not working, if any one can provide any guides i well be thankful #property copyright "Copyright 2020, MetaQuotes Software Corp."#property link
I'm trying to run mt4 on my mac using playonmac. Every time I try to install I am prompted to enter proxy server details. Surely proxy server shouldn't come into it. Does anyone know how I overcome this problem
Hi, Anybody recommend a good indicator that will place an order on a trend line. Thanks
Hi All, I am writing select data on my trades to a .txt file. My EA operates at the tick level. I calculate the current server time at the minute level = CMinute. At minutes 5,15,30,45,59, I want to "write to file" only once during that minute. I am currently posting, say on CMinute = 15, from 5-30
Hi All, I would like some code or function to get the Factor for any currency pair. I would use the factor to calculate the dollars of Profit/Loss for any given Lot size. For Example: Currency: EURUSD Lot Size: 1.0 Pips Move: +100 CalcDollars = 100 * (Factor @ 1.0 Lot) If calculated Factor = 1.15
Hi... I'm a newbie just starting out to learn MQL4.. I'm trying using an existing OrderClose function to close half of my trades once my order has traveled in my favor 1x the ATR of the bar before the OrderOpentime(I used a iBarshift function), I've get the code to print out the value I was looking
Hi All, I am trying to setup a trailing stop for a grid which includes a series of orders (long and short) for the same cross. At the moment I can manage for the grid to close when a certain profit % has been hit, however what I would like to do is to create a sort of moving profit target loosely
HI im having a bit of problem im facing these errros ';' - unexpected token )' - unexpected token 'stopp' - some operator expected if any one can give hand i will be thankful void opennew(int ordertype){ RefreshRates(); double openprice=0; double closeprice=0; double stopp=0; double
how can i get inform with a notification when the indicator appear
how to open more than 99 chart in the same time
Hello Forum, my newbie understanding is getting me into trouble with this code and I desperately need some help after going in circles for hours. I am trying to adapt the fractals indicator to include additional buffers that draw arrows on the chart when price closes above the current upper fractal...
I understand these are arrays and the [0] represents newest info. My concern is that the current candle that hasn't closed , has definitely opened. So it has a value for Open[0] but if I call Close[0] , since this latest candle hasn't closed yet , is this Close array pulling from previous close? or
Hi I cant find what Ive missed in this coed. Im trying to add another MA to Williams Alligator but it wont compile. I get three undeclared identifiers What am I missing? THanks + regards /danerius //+------------------------------------------------------------------+ //|
I have spent quite some time studying artificial neural networks in various configurations and representations. Undoubtedly, this is one of the most progressive and promising directions in science (despite numerous drops of interest in it due to subjective and objective reasons). However, to date
Hello Foum, I use different timeframes in an indicator to make some calculations. At the moment I use all timeframes by creating two arrays like these: string Timeframe[] = {"M1", "M5", "M15", "M30", "H1", "H4", "D1", "W1"};int TimeframeNo[] = {PERIOD_M1, PERIOD_M5, PERIOD_M15, PERIOD_M30, PERIOD_H1...
The MetaTrader 4 platform update will be released on Friday, September 13, 2019. The new build features the following changes: MetaTrader 4 Client Terminal build 1220 Fixed occasional slowdown caused by operations with a large number of graphical objects from MQL4 programs. Fixed passing of
hi guys. i'm coding with mql4 and i need to solve this problem. check 2 currency(such as 'usdchf') in terms of different between low and high in 1 hour period and show these differences with bar chart. if price different between of first currency and second currency is positive bar color must be
Hii Guys This is my first ea,.. It should delete any bending orders after hitting the target,.. i surrender ... i do not know why it does not work. any help guys extern double Lot = 0.01;extern double Lot2 = 0.01;extern double LotFactor = 2;extern int StopLoss = 40;extern int TakeProfit = 40;extern
[Deleted]
//----------------------------------------------------------------------------------------------------------------------------//Test system #property strict//----------------------------------------------------------------------------------------------------------------------------int
hello guys I have an MT4 indicator, but this is giving me the following error in the source code, as I'm not a programmer I don't understand any of this, the indicator and the All Stochastic mq4. this and the entire code of the indicator, if anyone knows how to solve these error messages, could you
Hi friends, I was working on an MT4 platform for a long time where I made lots of changes in its default setting such as adding new levels to the defaults levels of Fibonacci and changed the color of the fibo levels and even made changes in the MT4 toolbar such as adding some objects to the default...
Hello, I'm developing an EA that needs partial order closing. In the past I've just split the initial order volume into 2 separate orders, but now I'm trying to actually close a part of the trade calculating the amount of lots to be closed. My main question is, the MT4 tester shows anything
Gents, is there a way to display the data in the comments field (of the individual trade orders) on the corresponding entry, sl and tp lines on the chart? With a number of different strategies on the same instrument, it can be difficult distinguishing which chart lines relate to which EAs when only...
Any reason why email alerts have simply stopped working. I use a gmail address and have checked all settings repeatedly but to no avail. Push notifications are coming through on MT4 iPhone app but emails have just stopped altogether. Any body Help please