MQL4 and MetaTrader 4 - page 972

Hi MQLers,  with a couple of trendlines on charts, am I able to do, in a possibly simple way, something like: "at 13:20:30, what trendlines can I still see"? Mac 
I'm trying to write code for closing all open trades based on the net profit of all open trades.  The scenario is there are open trades on multiple currency pairs.  One or more of those trades may be at a loss, but the net value of all open trades is positive.  I want the code to close all open...
Hello there. I have maybe a small problem.  I´m using a istochastic value and signal in my expert. But I need to make it count between 0 and 100. Can anyone give me an idear.  I need the indicator to work on that range to compair with another. And it is just writing like the book says but there is...
can someone help to fix this signal condition? it did not open any order double upsign=iCustom(NULL, 0, "Fratelli_BB_MACD_V1",12,26,10,2.5,0,0);//up=buffer 0double dnsign=iCustom(NULL, 0, "Fratelli_BB_MACD_V1",12,26,10,2.5,1,0);//dn=buffer 1if(upsign==50.0) sign1=1; if(dnsign==50.0) sign1=-1;
//+------------------------------------------------------------------+//|                                                  BEST EXPERT.mq4 |//|                        Copyright 2012, MetaQuotes Software Corp. |//|                                        http://www.metaquotes.net...
My EA uses Open[0] and Close[0] on the M1 chart and then compares the two values to determine whether it was a bull or bear candle. For some reason the backtester returns the same value for these two operators. The same is true for iOpen(.....,0) and iClose(......,0) How do you resolve that?
Hi, I want to test a strategy from 1.1.2008 till 1.1.2012. The minute datas and also the upper timeframes are there for that time, but my strategy tester runs only for the first 6 month and so I have to split the testing time. What's the reason?
[Deleted]
how to:Do not Trade on this date range? e.g: do not trade on 1/12/2012 until 5/1/2013?
How can my EA enters one order per bar and it get signal when the current bar close?  Please help! 
Hello, I realise that most people want their EAs to trade in pips rather than points (0.1 pips and the fifth digit on a 5-digit broker) but I am looking for the numerical inputs I put into my EA to be interpreted as points i.e. if I put 10 in for a Stop Loss and a Take Profit then it will actually...
I use OrderSelect(i,SELECT_BY_POS) to select the trades with my EA. But it affects all my trades, and I want it to affect only a few, certain trades. How can I make it work only on those certain trades, any ideas?
In my first indicator, I am attempting something very simple which I am having difficulties in getting it to work correctly. I want to draw a Buy Arrow (UP Arrow ) on Chart just below the Candle whenever MACD's Signal Crosses above MACD. Opposite end will  be done once I get past this initial...
[Deleted]
Hello Experts ! This is my first post and I am happy to have joined this great forum. Well, I am using Oanda's java-based trading platform , which shows account and trade information just on the left side. I was wondering how we can do the same in MT4 to show the following information: 1. Balance
[Deleted]
Instead of an alert, I would like text to be written to a text file. This code creates an alert:  Alert(text); Instead of that, how can I write the text to a file named "output.txt"?  
  MT 4 on W8  (1)
Hi all, does anyone run their Meta Trader 4 on Windows 8? With / without flaws .. ? Any remarks? 
Can someone help me and tell me where i am going wrong with this EA https://www.mql5.com/en/code/10689? It worked once but now i have opened the code in Meteditor but why is it nor going any further when i save it as it never shows up in my Expertadvisors?? i know there is a simple solution, either...
  Multiple EA's  (2)
I'm having trouble making 2 EA'S work at the same time? In the top corner only shows 1 EA, does this mean that only 1 EA will work at once??
I need a simple Expert Advisor which  can realize a  "Take Profit"  in platform (can be for any orders and positions) is triggered  and open a message box ?????   I am sure it's very simple EA  but as I am beginner I'm very confused how to do it ?  It caused a bad problem for me .  Could somebody...
Data brought out year by year:   http://www.upload.ee/image/2811163/Forex_system.png In this picture every year starts with 100 000€ and profits are not reinvested! Lot sizes are always same. TP and SL are both over 100pip from price. If profits were reinvested(if account balance grow 10% then...
Hey,  I was wondering if its possible to draw a line between two dots which starts at coordinate 1 and ends at coordinate 2.  The problem with trend lines is, that they always go further than the coordinates til infinity - thats not what I need.  Is is possible to draw such a line with...
[Deleted]
#define PipsTP 30void OrderBuy(double Size){       int ticket=0;                  while (ticket <= 0)                  {                  ticket=OrderSend(Symbol(),1,Size,MarketInfo(Symbol(),MODE_ASK),3,0,MarketInfo(Symbol(),MODE_ASK)+MarketInfo(Symbol(),MODE_POINT)*PipsTP,""...
Hello, I'm writing an indicator and have defined a variable 'BarsToProcess'. However, on line 63 and 64, when compiling, I receive the message that this variable 'BarsToProcess' is not defined. I tried to define again, but then I receive message that it is already defined ... I attach the mq4 file...
Hi, I learned coding step by step from this website https://www.mql5.com/en/articles/1456 around two weeks ago, followedexamples given and made an ea. The problem however is that whenever it hits SLor TP, it opens another position in the same direction as the previous if theprice is still below or...
Hi MQLers, when analyzing the results of my code I need to scroll back to history (to the left) and rest there to see what my objects are telling me. However as we all knwo, the window "jumps" right back to the right with the arrival of each new tick. My question is - would I be able to freeze the...
hi : im new here and wanted to ask a question on a problem i just had on my platform. i was customizing the tools at the top of my platform, eliminating some buttons i did not need. when i finished with a box, i went to drag it too where i wanted to place it on the top and when i went too place it...
[Deleted]
Where can I find the source code for the "Volumes" indicator that is included as a standard indicator with MT4?
[Deleted]
Using MQ4 for MT4, is it possible to get an alert of all pairs available to MT4 through the broker? For example, for some brokers I would want the list to look like this: AUDUSD,USDCHF,USDJPY,EURUSD,USDCAD,EURCHF,EURGBP,EURJPY,EURCAD,EURAUD,GBPCHF,GBPUSD,CHFJPY,AUDCAD For some brokers the list would...
[Deleted]
Can't seem to figure out why this isn't working, any help would be appreciated. I want to close all orders under that specific symbol with MagicNumber_3 if their total floating profit is greater than DollarTakeProfit_s3. double CurrentPairProfit_s3 = CalculateProfit_s3();      if...
[Deleted]
Hi,  I am running MT4 on Windows 7 Home Preminum and am unable to create a file based on the following script: //+------------------------------------------------------------------+ //|                                            SatCustomFunction.mq4 |...
Hello everyone, i just come across MT4 platform with clickable logo on the chart. Can anybody give me a hint how this is actually done? Here is a screenshot for better understanding:  http://img824.imageshack.us/img824/2903/buttonsu.jpg Any hint would be much appreciated.   Sigma PS: If there is a...