MQL4 and MetaTrader 4 - page 677

Hello, all: Remenber that I created a trendline display different color under different trendcondition, as below:    And that trendline is plot using DRAW_LINE setting, means that every indexbuffer value will be plotted. but what I want to improve is that, the trendline will not have a value in...
no deposite bonus
Hello, I would like to know two things, i) is there a way that one can avoid signals being copied from an expert advisor? I want to avoid trades being copied from my expert advisor ii) Is there a way of finding out if there is more than one expert advisor connected to an account? Thank you
Can someone help me to correct this code   void closeby1(){     for (int total = OrdersTotal() - 1; total>= 0; total--)    {      OrderSelect(total, SELECT_BY_POS, MODE_TRADES);      if (OrderSymbol() == Symbol())       {           if (OrderSymbol() == Symbol() && (OrderComment() == "buy1_comment"...
[Deleted]
Dear all, I have an indicator named "ma_bar". when I use it in another indicator using iCustom(NULL,0,"ma_bar",0,i) (e.g. a[i] = iCustom(NULL,0,"ma_bar",0,i); ), it works properly. however, when I use it in an EA using  iCustom(NULL,0,"ma_bar",0,1) (e.g. if( iCustom(NULL,0,"ma_bar",0,1) > 0.1 ) ) ,...
I'm developing an EA which uses HAMA indicator (attached). But the indicator returns an EMA for me, but I want that it returns the bar color (e.g. yellow or green), so I can classify market condition. How can I do this?
Hi! I need a little help.   I want to set a horizontal line on open price of first candle of current day, I am using H1 chart, the problem is that next day line doesn't move, Please anyone can tell me that how it can move automatically ?
  neural network and inputs  (405   1 2 3 4 5 ... 40 41)
Hi all. I got interested in the topic of ns, read two books, in general I understand what's what . Normalize inputs, there's no sense in choosing ns type - msp (or rbf) can cope with most tasks... but what about inputs? Here, the majority divides into two camps: those who says that indicators on
Hello, Another question slows me out... I've made an indicator with several lines in the main-chart. But I need only two different colors. So it is kidding to set each used buffer one by one. This simple trick isn't working: #property indicator_width1 1#property indicator_color1...
Hello,   Terminal global variables are available for concurrent access from all running EAs. Each EA runs on its own thread (as stated on official documentation). Is access (Read/Write) to global variables assured to be race-condition-free?   More Generally: Can the MT4 terminal start processing a...
I am not a creator of Garch indicator therefore I have some problems to get some values from it. If somebody get an ideas how to get these values from it, I would be very appreciated. I mean previous highest value of dot 1 and reverse value of dot 2, Last lowest value of dot 3 and reverse value...
[Deleted]
Hello my problem is I have a big monitor when I use MT5 it works fine in high DPI Settings in windows like I am using 150% dpi increase but all of my MT4 are using small fonts and objects it makes me painful to read text plz tell me how can I fix it :(
Hello,All: I just finish a trendline indicator. The logic is quite simple: I make a judgement of the current market trendcondition( up or down ) ; then if it's UP, the line value is current bar's LOW; if it's DOWN, the  line value is current bar's HIGH; AND i want to use different color for it's...
Hello,    Try as I might, I can't get the strategy tester on MQL 4 or 5 to consistently operate over the specified date range. I've even tried clean re-installs of each multiple times. Sometimes it works, though usually it stops out only a fraction of the way into the test.   For example: I can run...
Hello I'd be very grateful if someone could confirm that I have my logic correct here:    // only trade Monday to Friday inclusive   if(DayOfWeek()==0 || DayOfWeek()==6) return;   // don't trade during the hours of 0, 4, 18 to 19 inclusive, 22 to 23 inclusive   if((Hour()>=0 && Hour()<1) ||...
This is just an example to demonstrate the ability of a MT4 Expert Advisor (non-scalping EA) to produce great results on the MT4 Strategy Tester. These results, with same MT4 EA and settings, are not producible on a forward Demo or Live Trading account.  Why? Lack of Strategy Tester to have full...
Deleted by the writer because of the forum rules. https://www.mql5.com/en/blogs/post/360981
[Deleted]
  What's wrong with my code?  (15   1 2)
Dear all I have no idea why ma[] cannot show correct figures ( moving average of bar length). #property indicator_separate_window #property indicator_buffers 2 extern int range = 10 ; //--- indicator buffers double ma[], length[];
Hi there, I have a question regarding moving SL to BE in my EA. Could you please help me? I want to move to BE when price moves X pips in my favour. Here is part of my code: void TrailOrder(int type) { { if(type==OP_BUY) {
Hi, i started a few ago on  MT4. previous steps were a lot, the last one was to install MT4 platform under PlayOnLinux. All seemed to work correctly. Now i want to test some EA on the platform. It seems to be dedicated for that, using button "start' on lower rigth. But i receive only a strange...
  Simple Question  (7)
I use the Print Function alot but I have noticed that there is some kind of limit in the number of lines available. If there is a limit.. 1..What is it? 2..Can it be lengthened? Thanks in advance
Hi, Is it possible to change the values of "depth of market" on MT4? For example, the Bid Price is 108.365 and the "Buy Stop Values" of DOM starts from 108.366 so the furthest one is 108.386 (only 2 pips far from the actual value). Is it possible to change it? For example, to start the Buy Stop...
Hello, up to now I`ve only found codes that write in the main-chart OR in a seperate and new one. (#property indicator_chart_window) But it is often useful, to address both or more outputs with only one mathematics. Mainly because of the performance. Else I have to calculate the nearly same thing...
Hello, I want to return one whole structure by function. (simple include or class) I`ve seen that there is a way by casting the thing. https://docs.mql4.com/basis/types/casting#casting_structure Is there another way useable now in newer versions ? - May be like that (NOT WORKING !): struct...
[Deleted]
I've seen, in several places, ones using a Pivot Point Indicator that displays the pivot points for each day ( Period ) on a chart with labels and values at each support and resistance line.   I was wondering if someone could show me where to find this indicator.  Been looking around and haven't...
I made an indicator which shows the total risk of all running trades. I don't want to let it run and check all orders with every tick because this is not necessary and wastes processor time. Therefore I check if the number of open orders (OP_BUY and OP_SELL) have changed and only then I check all...
I add following code to display Spread in chart. but it show spread as whole number not as decimal. (ex: it show 0.2 spread as 2.0) how to correct this code?          {   ObjectCreate("Spread", OBJ_LABEL, 0, 0, 0);   ObjectSet("Spread", OBJPROP_CORNER, 3);   ObjectSet("Spread", OBJPROP_XDISTANCE,...
Hello there Im developing an EA, that needes to be able to trade x position for every side as maximun. To make it easier lets say X is = 1. Meaning Only one buy market or sell market order can be activated at the same time. Not more than one for every directiom. Ok then this EA use a lot of buy...
Hello, I have a profile with 40 charts and when I use it there is an indicator in each chart which makes a screenshot. The problem here is that there are sometimes two screenshots of one chart. These screenshots are a bit different. The second screenshot contains more current data. I think that the...
Hello guys, i tried this as its specified in the MQL4 Documentation at: docs.mql4.com/basis/variables/inputvariables but it's not showing the commentary in the parameters window as it should.. //--- input parameters input int InpMAPeriod= 13 ; // Smoothing period input int