MQL4 and MetaTrader 4 - page 1256

[Deleted]
How to understand this codes? for(shift=Bars-ExtDepth; shift>=0; shift--) { val=Low[iLowest(NULL,0,MODE_LOW,ExtDepth,shift)]; if(val==lastlow) val=0.0; else { lastlow=val; if((Low[shift]-val)>(ExtDeviation*Point)) val=0.0; else...
  Two accounts at the same firm  (61   1 2 3 4 5 6 7)
Has anyone opened two accounts with the same company??? What is the difference between the quotations?...and does it arise at all
[Deleted]
Hi I am trying to learn mt4 by readfing the book here and at the same time looking at and modifying some of the custom inidcators I currently have. Can someone kiindly point me in the right direction for this problem: I have an indicator that defines price levels for the current day based on a...
Hi I'm looking for freelance to code email alerts. Requirements as follows: -Buy/Sell Trades alerts with details such as timestamp, price etc. -Close trades alert, together with details such as TP/SL -Hourly position/pnl/equity checks . Pls PM your qoutation. Thanks
  triangle pattern  (1)
hi where i can find one indicator for triangle pattern ? thanks
  Forex scanner  (1)
Hi MQL4 programmers, Does any body have any code that allows you to cycle through the available Forex pairs with your broker? So in its' simplest form to drop a EA or Indicator on to any chart which then goes and looks at all other chart pairs. thanks
//-------------------------------------------------------------------- // Tester_Invert.mq4 // To be used as an example in MQL4 book. #include <stdlib.mqh> #include <WinUser32.mqh> //-------------------------------------------------------------------- // Global variable...
[Deleted]
Hi there, Does anyone know how to code an EA that returns the value of what the bid/ask price was X amount of bars back ? Thank you !
[Deleted]
I will deal in two periods chart, one is day chart, another is 30 minute chart, i call them big chart and small chart, in big chart, when the high spot come, I call it A spot, a selling sigal will appear, I will sell one. since then, in small chart, when i meet high spot i will sell only. when...
[Deleted]
Hi guys, A quick summary what I'd like this EA to do: At start, it should open a buy position independent from any indicators and anything else. Right at this point, we determine 4 horizontal lines. One is established at the open price(Ubarrier), one is set above the open price by 5 pips (TP1). The...
[Deleted]
I am wondering if anyone can code an EA on Larry William's "Will Go" (Short term & Long term indicator)? This has been allowed by Larry Williams him self. I have an email to prove it. This what Larry Williams uses for his trading, plus COT reports and sentiment. "In the case of the stock market I...
[Deleted]
Hello, I'd like to observe the difference between Average True Range and High-Low (SMA). Can someone please help me program a small indicator that plots the ATR(period) with (High-Low) SMA (period) on same indicator window with red for ATR and blue for H-L? Similarly, if someone has the code for ATR
Hello! How can I make option of drawing arrow or line? I tried like this but it does draw arrows but not lines. Any idea? extern int Style=1;int init(){   if (Style==2){      SetIndexStyle(2, DRAW_ARROW);// UP      SetIndexArrow(2, 233);      SetIndexBuffer(2, bullish);      SetIndexStyle(3,...
[Deleted]
Hi I need help on how to write MT 4 formula for MS Excel worksheetin multiple time-frames to be able to see what a currency pair has donein the last 12 hours, 24 hours, past week till now and past month till now, in a form ofheat-map represented visually just like it is presented on these...
I need an mq4 script, that acts as a Take Profit set helper... On execution, it should be able to read/find ALL trades in my account, pending & market orders, in ALL currencies/pairs, and then, it should pop-up me a window that would show all orders, in this way: Order # Symbol Type Status...
Hello freinds, I need your help. I have an EA that have to do comparision between the Hour close price of EURUSD and Hour close price of GBPUSD. Unfortunately, the historical data is not so full, and some brokers have broken historical data, so if I will compare the historical data of H1 with...
//+------------------------------------------------------------------+//|                                                           doshur |//|                                                   www.doshur.com |//+------------------------------------------------------------------+#property copyright...
[Deleted]
I know MT4 can export quotes as a DDE server to other programs, is there any way to have MT4 import quotes from other MT4 terminals? Only the current bid and ask prices are relevant, history isn't
Hi, I’m searching for a manual or a guide to understan how to link the MetaTrader platform whit Microsoft Excel, through DDE server. Could you help me? Thank you!
[Deleted]
Hi, I am trying to get bid/ask in MS Excel and using this formula =MT4|BID!GBPUSD but I am getting this message when I open DDE Sample File in Excel "Remote Data not accessible - Start Application MT4.exe". Actually I have two different brokers MT4 in my computer. One is IBFX & another is FXPro. I...
[Deleted]
Hi to all… I’m starting with an idea of a EA… The trading part is all most done, but now I want to put a TIME MANAGEMENT for it to trade only between 9.30 and 17.30 (broker time). Does any one have a script for this??? Regards, Fly
Hi. For I download the full data of currency, I go in Histoty Center Data where I use the Export Button for save all data in .csv file. I can save the same data using the mql4 with the File_Write. I use a loop and save datas. But, for this process, is need many loops, 65000 for example. How I can...
  about slippage  (6)
What is slippage mean,can it be -? just like -3,-5, Or it must be bigger than 0? If Bid=1.0140 the: OrderSend(Symbol(),OP_SELL,Lots(),Bid,5,Bid+SL*Point,Bid-TP*Point,tdcomment,magic,0,Red); will be trade from 1.0135 to 1.0145, Or will be trade from 1.0140 to 1.0145? I let slippage=0, but in the...
  OrderCloseBy  (13   1 2)
if(iRSI(NULL,0,14,PRICE_CLOSE,0)>75) { OrderCloseBy(order_id,opposite_id); return(0); } From the book "If two market orders are opened for one symbol simultaneously, one of them being Buy and another one being Sell, they can be closed in one of two ways: you can close them...
[Deleted]
Is anybody able to explain me what is the difference between parameters "ma_shift" and "shift" in iMA(...) function? Its description in documentation is unsufficient to understand for me. Thanks.
New article Several Ways of Finding a Trend in MQL5 is published at mql5.com: Any trader would give a lot for opportunity to accurately detect a trend at any given time. Perhaps, this is the Holy Grail that everyone is looking for. In this article we will consider several ways to detect a trend. To...
Does anybody know how to find and select (in SIMPLE WAY) last closed order in OrdersHistoryTotal()? Any function how to do it can I please?
[Deleted]
when you get information like this Previous session overview The pair Euro against the U.S. dollar traded during the Asia session between the highest level at 1.27670 and the lowest level at 1.27250, while the pair trading now around the level of 1.27366. The pair Sterling against the U.S. dollar...
lets say i have 3 currency pairs eur/usd, usd/jpy and usd/chf and running on them the same EA. how can i close all orders only on 1 chart? i tried with these code, but didnt work out - it still closes all the orders on all charts... anybody can help? void string Symb=Symbol(); if(Total>0)...
[Deleted]
hi guys, I'd like to use the following code as a static variable but it seems like changing at every new tick. I'd like to have the Opened position's price as a static number. any thoughts about this issuse? many thanks in advance! while(Total==0) { if (x==1) { OrderSend(Symbol(),...