Download MetaTrader 5

MQL4 and MetaTrader 4 - page 717

To post a new topic, please log in or register
Forum, I was wondering if there is anyway by which I can call a custom indicator from another one .. like making use of a iCustom( ) in an already customed indicator? Please how can I do this if its possible?
How many people here use price action instead of indicators in their EAs? How successful have you been so far?
Hi, I wonder if anyone can help. I have made an indicator which plots horizontal lines on a chart. Each line has a label using the following code: ObjectCreate("label", OBJ_TEXT, 0, TimeCurrent(), value); ObjectSetText("label",label, 8, "Arial", text_colour);...
Hello ; for example for the profit : we use : AccountProfit(); but I don't know ho to get the level of stop Loss and Take Profit ?? thanks
Hi, I'm new here. Hope someone can help. I'm looking for an indicator which will plot Price divided by a SMA (simple moving average). Would anyone know if there is already one available? I have looked through MQL4 indicator libraries, but haven't been able to find one. There are a couple similar...
Hello everyone. I am trying to write a piece of code to add to my EA that will allow a choice of getting/redeaing tick data from CSV files (so I can test with real market data, but not with generated by the tester). I think I need to open a file in the init function, but read data (date, time,...
Are there any tools available for helping with setting indentation correctly and allowing an EA writer to see which curly braces are closing which earlier braces (e.g. through using the same colour as in Excel)? I spend a lot of time thinking this through and I'm sure that some of my thinking could...
Hello, This EA is designed to place a number of buy and sell pending limit trades, using the TradesAboveBelow parameter. When the EA loads, it gets the current Bid price and places the specified number of trades above and below that Bid price, all spaced according to other variables. This part works...
Can someonehelp me to find an indicator that can give ma the “moving Average inclination”??? For example,if the moving average is flat it should be around zero… if going up, Positive,if going down, negative. Regards, Fly
i want to look several charts in one windows, after i plate them togeter, the window seems very crowdy, the border frame almost occupy half of the window, that is useless,waste many resouse . how to minimize they or delete them ? thanks
WishfulThinking=iMA(NULL,PERIOD_M1,24,0,MODE_SMA,PRICE_WEIGHTED,-1); pfffff....
HI, Looking for a way to have MT4 draw an arrow on the chart when you exit a trade via the Terminal window. If the exit is via an EA then the ObjectCreate function will achieve this, but what if I want to exit the trade manually ?. Any way to add a marker/arrow at the exit point ? Thanks.
i use scripts to open orders,and set 20 seconds interval period between two orders,ofter open one .i charge the timeframe, the orders were opened at once, no interval to wait, is it a bug ?
Hello, This EA is designed to place a number of buy and sell pending limit trades, using the TradesAboveBelow parameter. When the EA loads, it gets the current Bid price and places the specified number of trades above and below that Bid price, all spaced according to other variables. This part...
Is it possible to build an app. which remotely monitors MT4 installations? Here are the features I'd like: ---------------------------------------- MT4 Monitor Service Monitors MT4 installation to ensure up and operational 24/7 Features Runs as service or application either on different machine or...
  MT4 to MT4 (4)
Is there a way to send trades from my terminal(MT4) to another MT4 platform?
How would one modify the daily chart to be based off the London open?
Dear Sirs I am facing a problem with my EA which is, Take Profit is not being activated when hit by the bar as shown on the attached snapshot yellow circle. Can anybody advise what is the reason behind this occurrence and how to resolve this issue. Regards Greenblue
  ordersend() coding help... (35   1 2 3 4)
Hey guys, Really strange but when i run the following code it does nothing. GetLastError() returns 130.    Print("running");   OrderSend(Symbol(),OP_BUY,1,Ask,3,Ask-25*Point,Ask+25*Point,"My order #2",16384,0,Green) But if take the same code and remove the stop & target info it spits out orders just...
Hello Friends Can somebody help me code Stoploss in this good EA Thanks in advance
Hello again fellow coders. I have finished reading this very very impressive article: https://www.mql5.com/en/articles/1572 (titled: Protect Yourself, Developers!) That was an excellent article Sergey, thank you. I was successful at implementing all of those ideas without need for support, it was...
Can someone help me understand why my ea took the following trade? Sell on July 1 @ 17:17 for 1.44657 My EA is telling it NOT to sell if the Stoch is going up. Did I miss something? I have looked at this every way I can... going cross eyed. This is on the 4 hour chart. I don't know how to...
Hey, I am new to MQL (thats why my EA is so simple) and I'm getting this error but I have no idea why... The solution is probably very simple, but I just don't see it. I think the best would be just to post my EA code, thanks for your help! extern int MATimeframe = PERIOD_H4; extern int...
  open order after TP or SL (19   1 2)
Hello, I have tried without success to get an order opened after my current trade stop loss or take profit has been hit. Here are my requirements. I currently enter a trade where my ea sets the stop loss and take profit. I wait for the market to hit either my stop loss or my take profit and when...
  CCI indicator (6)
Does anyone have a CCI indicator that is in a bar format as opposed to a line?
I am trading my strategy for a couple of months now and it is giving me good rewards. Now I tried to code the strategy myselfe (read many books and tutorials) but just cant get it done. I am ready to share the strategy of course with the one who will help me out and code it.
Hello ; the indicator that I create is to indicate if line 1 > line 2 or line 2 > line 1 for all time frame : as you can see on the picture I would like to know if black line crosses over the red one (the indicator on down ) or not : and I calculate the difference : so I must call this indicator...
Hi guys, I just have a simple question. I am trying to use a custom indicator in an EA. What the custom indicator basically does is it adds 2 MAs from two variables that use iMA(), and sends that to a buffer. I then use iMAonArray() on that buffer to get another indicator as a crossover. This is...