Hi, I need to know if it’s possible to assign a different sell order to the respective buy order. Ex: first buy order was executed and a second buy order was executed at a different bid than the first buy order. I want to assign two different sell order for my respective buy order. Thank you in...
Hi All, I came across an old script (by a user called Hanover) that allowed you to take a FXT history file and output an ASCII readable file displaying the header record and any number of tick records you choose. However the MT4 I am running is Version 4 Build 1090 so I need to modify the code to...
This is a very good indicator. The arrow of this indicator appears in the old candle when the new candle is opened and not painted again. I want the arrow to appear earlier in the old candlestick and it may disappear when the candle is closed for manual trading. Can anybody help me with adding code...
I've got a subclass of CObject, which will plot a trend line on the chart. At some point the end point of the line has to be changed (I know how to do that part). However, I have to find the line object, which up until now, I did by looping over all chart objects looking for a string tag I put in...
[Deleted]
Are there indicator or script to showing the calendar days (Saturday & Sunday) as an empty candle or empty space into MT4? Thanks in advanced.
Hello, I need to check in runtime, what is the license type of the EA. In MQL4 terms. If it is free, demo, paid(full), or time trial. I need to check this, because my program is mainly designed to work in a tester mode, and it will have a paid version with more features unlocked. This is a question...
Hi, I have a horizontal line that shows a price. I want to put a text on this line but for some reason, I only see the beginning of my text on the right of my chart. How can I see the whole text? Thanks! ObjectCreate("price",OBJ_HLINE,0,0,price);ObjectSet("price",OBJPROP_PRICE1,price);...
I've created 2 custom classes that need to be able to hold a reference to an instance of the other's class. They've been created with the MQL4 class template. I broke them down to the basics. Candle class: #include <Arrays/ArrayObj.mqh> #include "MyTrade.mqh" class MyCandle: public CObject { public
Hallo, please an help. I have backtested and optimized an EA fortwo weeks. Of course it launched sell and buy orders in backtesting stage. Now that it is running in real time on theEuroUsd currency,, it does not launch orders, neither on my pc , nor on avirtual server running 24 hours, although...
Hello there, The title pretty much says it all. I have the following code (I use similar code to add other things to the chart):- void CArrow::_createArrow(datetime time1,double price1) { if(_arrowUp) { price1-=(_config.ArrowUpOffset*Point()); } else { price1+=(_config...
Hello everyone, I am very confused about what exactly swap means. I found this bit on Google "A swap/rollover fee is charged when you keep a position open overnight. A forex swap is the interest rate differential between the two currencies of the pair you are trading, and it is calculated...
Hi All I have an OrderSend working on previous Hour Candle at 06:00 Problem i have is that OrderSend is using the last 06:00 which is one day ago? Anyone able to point me in the right direction to read documentation how to fix. Look forward to any replies. Merry Christmas. J
Hello everyone, I have two demo accounts at the moment in which I test my EA's. I don't want both the EA's to be capable of being enabled on both accounts. Can I use a conditional compilation to prevent this from happening? If it possible, please elaborate on steps to achieve this.
Having an unconventional approach and a desire to do something good for people I've been in touch with for years, I decided to create a thread where I would try to help developers find solutions to their problems. As practice has shown, I have repeatedly found effective solutions to other
Hello everyone, I would like my EA to close the orders at CROSSING moving averages, simply. But I can not find the "formula" that can perform this function. However, I tried a lot of solutions, such as: if (Ask <= (ma5 (1) <ma8 (1) && ma5 (0)> ma8 (0))) ..... CloseAll (); etc ... and many others,...
how would you code a chart that is based on pips and not on time, but on pips: acandle closes when you've had 10 pips up or 10 pips down. So candles(/bars) arebased on price and not on time. Doesn't seem like a simple coding thing so anyhelp would be much appreciated
Does anyone know how to get a second 'Fibobacci Retracement' tool, into the MT4 Tool bar. I have changed my Fib tool to draw 'Entry, Stop Loss and Take profit'. However it is slow process to convert the Fib tool back to its proper use. If I could have a second Fib tool, I could leave it with the...
Hi All, Can anyone tell me how to space out arrows so they aren't directly on the top/bottom of a candle? Below is my source code along with a screenshot attached of how they currently look. #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Green #property
Hi everyone, Why does ObjectFind() never find my object?? Thanks! #property strictdouble t_SL[1];int OnInit() { t_SL[0]= Bid; ObjectCreate("t_SL"+IntegerToString(0),OBJ_HLINE,0,0,t_SL[0]); ObjectSet("t_SL"+IntegerToString(0),OBJPROP_PRICE1,t_SL[0]);...
I'm working on a MA cross over EA and adding features here and there. One thing I have been trying to do is detect events where the moving averages cross while a bar is open, then uncross before bar close -- a fakeout. I am having a lot of trouble trying to figure out how to detect these events...
Hello, I have a problem which is quite simple but drives me crazy : i'm trying to calculate Profits shown in my Backtest (USD) with the amounts of pips and the lot , here's the formula pips * lots * (MarketInfo(pair, MODE_TICKVALUE)/ MarketInfo(pair, MODE_TICKSIZE)) the values are : 0.0030 points...
This indicator will draw price charts as a subwindow. It has some MT limitations which I could not over come. One is the drawing or rather the sizing of the candles donot stay in step with the MT charts This indicator was writen to work with the charts as I look at charts. If you like to look at...
Hi all, I've written some "if" functions that delete a stop_order if the price goes past the high/low of the applicable candle in these three bar signals. However, if you take a look at the screen shot below, the sellstop order at 1.11737 has deleted incorrectly just before it would have entered...
Hi all, I created a simple indicator as the difference between the Stoch(5.3.3) and his signal line. //---- indicator settings#property indicator_separate_window#property indicator_buffers 1#property indicator_color1 PowderBlue#property indicator_width1 2//---- indicator...
Hello, please can someone help me? Am just new in coding .. I tried to Modify 2 open orders at the same time,(I have 2 tickets with different Magic, one is for buy and one for sell), but order select dont work for me Errors like: invalid ticket for OrderModify function Modify of Buy cant be succees,...
Hello, I'm attempting to get my advisor to draws its technical analysis on the chart in real time. When I use ObjectSet to change parameters that would otherwise change the shape and size of the object, the changes are not being updated on the chart. In the code that draws prices from the technical...
Hi guys and girls, So I've heard that the strategy tester in MT4 is a little bit wholly inaccurate. Does anyone have any tips on how to make it less so? For instance commands to avoid and what commands to use instead. I've been doing forward testing using multiple accounts and different parameters,...
Hello, i have a panel that is suppose to display like this: When i minimize the chart and move the panel, some of its content gets hidden. // Create Trade Panel if(!TradePanel.Create(0,"tt",0,X_START,Y_START,X_SIZE,Y_SIZE)) { return (INIT_FAILED); } So i have been trying to solve...
Hi, I'm trying to make a clean price intersection expert advisor with no success till now, I think the code is right but the backtester doesn't think the same. These are the critical points: - Opening candle price below the moving average and close price upwards for BUY: double...
I am having some problems with EAs and MT4. 1: When I start up MT4 I get the error "Error News download, add the address xxx in the list of allowed URLs on tab Expert Advisors". How can I remove this news function or find the faulty EA that's causing this? 2: I wanted to test some EAs with my demo...

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.