Is it possible to display the trade line as green for wins and red for loss? Right now, my trade lines are just displayed as blue or red randomly. Thanks!
for(i = 0; trade_flag != 1 && SSL_flag != 1 && BSL_flag != 1 && SSL_flag != 2 && BSL_flag != 2 && i < 100; i++) { if(//<condition>) { trade_flag = 1; //<DECLARING BUY PRICES, SELL PRICES> Print("Buy Abv ",DoubleToStr(buy_price,4),", TGT - ",...
New article The Last Crusade is published at mql5.com: Take a look at your trading terminal. What means of price presentation can you see? Bars, candlesticks, lines. We are chasing time and prices whereas we only profit from prices. Shall we only give attention to prices when analyzing the market?...
[Deleted]
Hi, i am relatviely new to MT4 and have written my first EA. -when i run it using a demo account using the Strategy Tester i enter the dates to test and click START - the results in the journal window only show me about 1 day's worth of results - the dates i entered were for at least 2 weeks - i...
First I would like thank mladen for his help with the csv importer and exporter. If you are running the estimation across many currency pairs, they are really a huge time saver. In this thread I will explain how to set the exporter, storing the data to the Rapidminer repository and lastly the svm...
[Deleted]
excuse me sir, introduce, my name Rendra, i'm still newbie, may i ask masta masta in here to teach me about how to make expert advisor with meta editor from zero hehe, i want make expert advisor with my own strategy, thanks before :)
[Deleted]
Can anyone help me to code closes opened position by equity automatically, if it loss $100 it closes and if it profit $100 it closes, after closes it sets another $100 automatically.
[Deleted]
Hello! I tried to find the last bar when the time was 00:00:00 using ArrayBsearch for theTime array: End_Bar=ArrayBsearch(Time,D'00:00:00',WHOLE_ARRAY,1,MODE_ASCEND); The value of End_Bar that was returned is 1! WHY does it happen?
[Deleted]
Hi, I'm an experienced software engineer. I have years of commercial software design and development experience covering technologies such as c, c++, SQL, Assembler, etc. I'm also a self taught trader. I have a Pro a/c with Alpari. I understand from the MetaQuotes website that the MT4 product set...
Hi all, I'm trying to Send some market order on a demo account through the OrderSend function, setting TP and SL. This is my code: RefreshRates(); TP=Ask+120*Point; SL=Ask-120*Point; Print("Sending BUY. Point: " + Point + " EntryPrice: " + Ask + " TP: " + TP +...
Hello. I saw the API for MT4 Client Terminal. The problem on that API is that it is a Demo, So once a while it brings popups. How do I get a fully working API?
[Deleted]
does any body know of an fib tool that measures time in increments of 38.2,50 etc thanks
Hello everyone. For some reason MT4 wont download historical data from Meta-quotes, and my provider doesn't seem to understand my need for historical data that goes back past 65000 1-min bars, (I realise the limitations on number of bars per chart, but want to back test over certain periods). The...
Hi Can anyone help me how will I use this DailyPivotPoints.mq4 indicator in metastock or I have to metatrader Regards Vinod
[Deleted]
For some time now I have been unable to find an mt4 script which would close a nominated percentage of an open order when price hit a trailing stop. In my scenario it is a partial close trailing stop, which once triggered resets a stop loss, the user can select the portion of the remaining trade to...
Hi, if I write the text as Object below the line, I can use the same coordinates for text and line and it works in every TF. But how can I write the difference, when I want to write the text in the middle beside the line? How can I program my offset, so that the difference is in every TF and for...
[Deleted]
Hi, It feel real stupid to ask that question, but there must be a solution to show the MovingAverage of another Timeframe (e.g. Timeframe: M30; Periode: 300; Shift: 0) into a smaller Timeframes -> M5. There should be a solution without downloading a new indicator, but I just can't find it.
Hello everyone, I need to get some Resistance, Pivot and Support lines values from a Fibonacci indicator. I have to read and store R1, R2, R3, Pivot, S1, S2 and S3. The values are calculated once per day (at midnight) and are static for the whole day. It should be easy to use the iCustom, but I...
How can I manually update the MT4 platform? Is there any separate application for update MT4 platform? The current version is 419 Build my Broker ( www.xtb.pl ) has 409 and did not update the MT4 apllication yet. How to update the platform, because I have the problem with Expert Advisors.
It is no secret that the forex market is a high-risk business, mainly due to its perfection, which does not allow you to develop strategies based on any stable patterns. Everybody is attracted by the seeming ease and possibility to earn real money without investing anything. This is where there is a
Hi, the problem I would like to ask it might be alredy solved here. I am new here. The problem is that I have an EA that works fine on one broker but failed to work right on another. The EA put 1 pending order in its initial concept but with my new broker it put hundreds of pending orders at once....
Hi, I have a couple of support and resistance lines I draw manually and would like to replicate them into the future. I wonder if there is away to copy the items I have created on the chart and move it on the future "where there is no bars " using cycles to keep the distance ? Any help is highly...
i should stop trading between dec15 and jan15, but in BT nothing gets blocked ... what is wrong? if (Month()==12 && Day()>=15 || Month()==1 && Day()<=15) return(0);
Hello everyone, I have written my first baby of an EA... if you could call it that. More like an embryo. I am trying to get it to buy a small amount on a MB Trading demo MT4 account. Here is the code so far: int init(){start(); // I had to put a call to start() here because otherwise it wouldn't...
Hello freinds, I need your help, please. I wrote an EA which closes a trade with a different function. Every time I have the specific parameters for closing the trades. Sometimes, the EA closes 2 diffrent pairs. Sometimes, it closes 3 different pairs, and sometimes it closes 4 different pairs. I...
Hi, I have drawn a trendline in my chart. Now when I click to other timeframes, I see that line at the same time on a different level (in max about 300 pips). In one the big timeframes (>H4) the line doesn't exist. I checked the properties and it is visible/allowed in each timeframe. What is wrong?...
[Deleted]
when i use this ea in my meta trader 4 the ea open as a while and closed suddenly and i note that the ea icon its by gray not colored one if there any one know the reason or the missing step plz tell me thx
Hello all. I did some research before posting about the correct use of iFractal I am using this function to get the most recent swing high swing low into a routine with a very simple code double getLastHigh() { double high; high = iFractals(Symbol(), PERIOD_M5, MODE_UPPER, 3); if (high...
Hello, Since the 4.09 build version, MetaTrader doesn't want to download GBPAUD and GBPCAD history in the history center. Someone has a tip for this ? Thanks a lot for your help. Abrik

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.