hi guys I have a object Hline that gets the price value wherever i put the Hline on the chart then pass the price value on a label object to display its value. My problem is the value on my label only changes when my tick updates. I want it to get the value from my Hline instantly and not wait for
I ask the village party to post here, because your old branch is very slow
Print ("low 0 : ",DoubleToStr( iLow (Instrument, PERIOD_H1 , 0 ), 5 )); Print ("low 1 : ",DoubleToStr( iLow (Instrument, PERIOD_H1 , 1 ), 5 )); Print (" iLowest = ", IntegerToString ( iLowest (Instrument, PERIOD_H1 , MODE_LOW , 1 , 0 ))); result: 0 07:37:53.045 EA GBPUSD ,H1: low 0 : 1.36055 0
In one of my EAs i use a Break-Even Trailing Stop that sets the SL below the bid/ask price to close the position with small profit if price goes above a certain profit threshold. However this causes Strategy Tester to include this situation as a win and therefore increases the percentages to
in this coding ATR Trailing for buy order is work but sell order not apply help me to solve error void TrailStops() { double ATR = iATR ( NULL , 0 , 14 , 0 ); double TrailingStop = ATR * 2 ; double minstoplevel = MarketInfo( _Symbol ,MODE_STOPLEVEL)* _Point ; double buyStopLoss
So I am trying to code pivot points. The idea I have is to check for a high/low of let's say the last 5 bars. Then what I would like to do is check to see if the previous 5 bar before that beat said high/low and continue checking that until the answer is false. I figure I would need a for loop but
Hi, Does anyone know if there is an EA/Script available that can set Equity SL or Trailing so that I can lock in profits. I have looked everywhere an cannot find one to fit my needs. Any help would be most valuable. Dave.
when i Create Database in mt4.How to Read\Write it? There have no comment at mt4 help,but exsist in mt5
Hello everyone, I am trying to install MT4 to integrate it with another App for a project related to my company. By default am getting the version 5, which is not the one that we'd like to go with. So my questions are: Is it possible to downgrade to the v4 ? And if so, is it compatible with the
i have one idea for developer metatrader mobile, i have seen a lot people try to overclaim trade with live account, but in fact they trade using demo accounts, and they try to deceive the public with screen shots of trading history, in fact it's all demo accounts. so I recommend for developers to
Hello I can read data from different websites, but investing.com is the only one where I have my problems. Does anyone have an idea? I tried it like this: void DataToFile() { string cookie= NULL ,referer= NULL ,headers; char post[],result[]; string calendar= "" ; string url=
I have an ea mq4 file, who knows how to program can add to this ea two features of time filtering and target daily ($) . Thank you very much
i create a database in mt4! but i don't know how to use it? i only see mt4 function and void exsist
Hello Due to many conditions in this code, #include <stdlib.mqh> #include <stderror.mqh> //--- indicator settings #property indicator_chart_window #property indicator_buffers 2 #property indicator_type1 DRAW_ARROW #property indicator_width1 3 #property indicator_color1 0xFFAA00 #property
Hi - question for the crowd here: It seems like about 10 years ago, batch or auto optimization (ie: something similar to this - https://www.mql5.com/en/articles/1467 ) seemed to be the big up-and-coming thing. Difficult to pull off, but some of the forum posts around that time were hopeful that it
int OnInit () { //--- //--- return ( INIT_SUCCEEDED ); } //+------------------------------------------------------------------+ //| Expert deinitialization function | //+------------------------------------------------------------------+ void OnDeinit ( const
I deinitialize my expert advisior then the MT4 gets a timeout. -> Abnormal termination The Initialize works fine but the deinitialize not. I use Classes in Arrays and the arrays are global. Could this be a problem? Thank you EDIT: I know the problem. I have long loops. How can I break up loops when
Hi to all, i'm writing from Italy. This service is too cool, but i cannot simply find what of my interest. Thanks for someone would help me! I find an EZ no more expensive (from 50 to 150 $), that work with the futures, as DAX, S&P500, ecc. for the MT4. I've finded alot but all maked before for the
I have a custom indicator that draws vertical lines at Time with minutes multiples of 5, however, as it is, it draws the line on top of the candle itself, I can't find the way to draw that line in between the candles, so the vertical like should be drawn not at coordinate XX:05:00 (for example) but
hi guys im looking for some angel to turn my indicator to ea the indicator is very very simple its an arrow indicator .. i want the ea to buy when green arrow appear and sell when red one appear ea must please have fixd tp and sl option.. <ex4 file deleted >
Hello, maybe it is a strange question but is there any chance to make the EA to open Only one order per day in 5 min chart? Fore example, if i have: saveHigh = High[iHighest(Symbol(), 0, MODE_HIGH, 30, 1)]; if (Close[1] > saveHigh) int buyticket =
Hello guys, I'm new in MQL4, so I have a question. I hope you can help me I need to record the Highest and the Lowest between 11:00 AM and 12:00 am - 5 min chart. I need this price to use it later, so i need it static (Not 1 period back for example) Thank you in advance. Regards
[Deleted]
Hi all, i need help on how to generate signals for my EA from Heiken Ashi indicator, i need the instruction that will give the value of the Heiken candle in both the upward direction and downward direction. any help will be highly appreciated.
Good evening to everyone, I'm desperate. I need to take the color of the candle (heikin ashi), how can I do? Thank you in advance
Hi, I got a stack overflow problem running EA. The problem was traced to the portion of EA codes below: if (..............) ( Print Statement A bool OCcheck = OrderClose(OrderTicket(),OrderLots(),Bid,3,Magenta); // close position icount = 0;
Can indicator open and close orders ? Or only make Alerts is possible for the indicator ? ... should I use only expert advisor for orders management
Hello I Have Indicator That Calculate The Value Between 2 Moving Objects (Which Work Very Fine) The Problem is This Value Does Not Update until A Tick Comes In , So I Found And Indicator That Calls A TickByClick It Do The Trick but Unfortunately i Dont Have Its Code And I Cant Get It So I Try To
How to modify overlay chart from candle stick to line chart? It is quite difficult to see in candlestick? Can i convert the overlay chart to display line chart instead? Thanks //+------------------------------------------------------------------+//| OverLay...
Hello guys, I got a small problem. When I add an EA or Signal to the account and then sync it with the VPS everything goes fine, but the second time I'm trying to make any changes something called "Communicator -" show's up in the list and it won't allow me to sync it anymore. I know the DLL are not
Hi. I am working with strategy tester (for the first time) while the market is off, and I noticed market watch shows a fixed value (bid & ask & time) no matter what the strategy tester is showing. For example when stratey tester shows 1.44640, for GBPUSD (1M), Market Watch only shows 1.35495 (Bid)

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.