MQL4 and MetaTrader 4 - page 128

To post a new topic, please log in or register
I am currently trying to develop an indicator that plots a candlestick chart of a spread (distance between two currency pairs of choice). To work out open and close for spread is fairly simple as open and close will always happen at the same time so you just subtract open and close...
Hello,fellow traders and well wisher. please, i want to know if anybody has the idea on how to design a website that will purposely be used for managing forex account for traders such that any trade i perform on my masters account, will be automatically carried out on the mt4  account of my...
Good Day I'm a still learner trader would appreciate if someone can please edit the attached indicator to give pop up and email alerts. Thank You
I would like to change stop pending order price of Binary option. and write below code but does not work. Can i modify pending order price of BO or What is wrong here? bool fm;   for (int i=0; i < OrdersTotal(); i++)   {      if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES))       {         if...
This one is odd. Take the following: MqlDateTime tl; Now, I should be able to type "tl." (without the "") and see what the options are (maybe a better word would be "intellisense").  After the update of Windows 10 today, it has disappeared.  This only happens on pre-defined structures within MQL4;...
How can I get the candle number on which the vertical line is drawn? Sorry for my English.
i created an ea that use a bridge to open trade on binary.com . I want to implement a martin gale system or a system based on events .  so i wrote this if(isWon==1 || contractFound==0){investment=capital*(3/100);}   else if(isWon==0 && isExpired==1)     {      for(int i=0;i<4;i++)        {...
Hi!  The following code is an example of metaquotes.  #include <Controls\Dialog.mqh> #include <Controls\CheckBox.mqh> //+------------------------------------------------------------------+ //| defines                                                          |...
  Trend Line Trader (44   1 2 3 4 5)
This Ea draws trendlines using fractal calculations you can choose either for a 2 fractal trend line or a 3 fractal trend line, the Ea should find 2 or 3(your choice) fractals that line up and draw trendline off that, and if down trend will draw trend lines on highs and on lows for uptrend, if...
Can someone tell me why this text object doesn't appear on the chart?  It shows in the object list. //+------------------------------------------------------------------+//|                                                    TestChart.mq4 |//|...
Hello Everybody, when i set rectangle objects that overlay, their color mixes up like they are transparent. However, how can i change that, so the color stays the color i set up for the rectangle? really annoying ... thanks for any help!
hello, this is my 1st question here in mql forum. im new to coding and sorry if my english is bad as the title says, heres the code for(int i=0; i<50; i++) {      currentHigh=iHigh(Symbol(),0,i);    previousHigh=iHigh(Symbol(),0...
Hi All, Lately my EA's have been running into the OrderSend error 136 a lot of the time. So I have placed my OrderSend code into a loop that repeatedly retries to send the order up to a maximum of X times until the order is filled. Problem is sometimes even after 10-15 attempts I still get the same...
With the following code I cant see why I'm getting order send error 130? When I test on my broker vipromarkets it is bug free but when I take it to auto validation it returns ordersend error 130. Why is it the first code here works okay with no bugs :          if(OrderType() == OP_BUY)...
void start(){//Find Moving Averages  double fastma, slowma;  double total;  bool ticket;  fastma = iMA(Symbol(),0,5,0,MODE_EMA,PRICE_CLOSE,1);  slowma = iMA(Symbol(),0,8,0,MODE_SMA,PRICE_CLOSE,1);  total = OrdersTotal();//Start operations if(total < 1) {  if(fastma > slowma)   {      ticket =...
Hi,guys. It's first time posting the theme. If I broke the rule, plz tell me. I am a C programmer, and I don't know where the entry point is(it's main() in C).  For example: //External,variables extern double LotSize = 0.1; ... ... // Global variables int BuyTicket; int SellTicket; ... int...
I have develop 5 Expert robot, and this one is good one, but need your help. I have develop expert base on bars patterns.  following tutorial : https://www.tradingsetupsreview.com/10-price-action-bar-patterns-must-know/ Now some patterns return good result, but some return always in lose... Pattern...
Hi All, I am creating an E.A based on IADX. When +D1 is greater then -D1 then it will buy and vice versa. my problem is when i integrate this E.A on chart it directly place buy or sell order based on these condition no matter where current trend is, like. if the buy trend is nearly to end no matter...
Hallo, I want to add my "close all trades" script to my indicator, can someone explain how to add the codes to my indicator ? thanks
  PipsChart (55   1 2 3 4 5 6)
I posted this elsewhere, there wasn't much interest, so it should be safe to make a thread of it... The PipsChart indicator draws bars based on the pips movement rather than time, to only make a new bar when price moves far enough from the opening price. This is similar to a Point&Figure chart, but...
Hi there,  I am attempting to validate my EA for the market.  My EA trades only the EURUSD and it is required to be attached to the 1M chart. Why is the automatic validation checking for other symbols and higher timeframes? Is there a way to work around this issue?              Test report for...
Why an I receiving ordersend error 4107 and invalid takeprofit for ordersend function on testing the following code? extern string SECTION_C = "*** Trade Management ***";input int StopLoss = 40;  // Stop Lossinput int TakeProfit = 1000;  // Take Profitinput int TrailingStop = 10; // Trailing Stop As...
Tried using iClose, however it is only good for "candle close price", I want whenever it actually happened so as to be more precise. So I went the HLINE route, and cant find a way to just give me the last time the current HLINE touched the same bid price. Thought about drawing another VLINE on the...
if(OrderMagicNumber()==00000 && OrderSymbol()==Symbol() && OrderProfit()>(-OrderCommission()+-OrderSwap()))OrderModify(OrderTicket(),0,Ask,0,0); The above code sometimes nails it, sometimes doesn't. Maybe works right like 90 per cent of times or so. Sometimes misses the right moment, yet then later...
Did anyone have this issue too? I just recently spotted both FXPro and Tickmill Hourly Bar didn't close at XX:00. Instead it closes 10 minutes earlier before the hour. 
Dear All, I got some problem with my EA. Now it is in development phase. I run it parallelly with coding and updated version. But after the EA is running and opening some orders, after I updated my code and refresh it. It seems my EA can not continue working with existing orders. Anyone knows how to...
Hi! I have some COT data that I want to plot under the main price window as an indicator. The COT data are external data, i.e. independent of the prices. So one can not write it like a traditional indicator calculated from the prices. Since I have all the data needed, I don't need to do any...
  Simba Trades (65   1 2 3 4 5 6 7)
1-I would like to post a few live trades..just to follow the example of my friend cementman ..and enjoy the discussion..if any 2-Every week I will summarize the results for closed and open trades..let`s start,position sizes are for an account size of 150k to 200k usd..Do them exclusively on demo.....
  >> Pivot range << (34   1 2 3 4)
the pivot range's simple but effective , pivot = ( high + low + close ) / 3 , the range two lines are calculated like that, range = ( high - low ) / 2 , 1st line ( above the pivot ) = pivot + range , 2nd line ( below the pivot ) = pivot - range , at the next chart i draw all the lines manualy cause...
Hi, where is the RSI in the MT4 app? Cannot find it... Regards