MQL4 and MetaTrader 4 - page 1132

To post a new topic, please log in or register
Hi All, I have encountered a problem during writing EA, anybody could enlighten me? Problem in displaying 2 value from the same indicator with different period setting. Second value always display 0. double Demark_Test(){ double Demark1 = iDeMarker(NULL,PERIOD_M5,14,1); double Demark2 =...
HELLO HOUSE, DOES ANYONE KNOW HOW TO CODE THE TECHNICAL/FUNDAMENTAL ANALYSIS OF THE FOREX MARKET????????? ....I HAVE BEEN TRYING TO ANALYZE THE TECHNICAL TRENDS AND WOULD LIKE TO CODE IT AUTOMATICALLY. CAN I EVER ACHIEVE THAT?
I have a normal System, which I want to back check. See what the drawdown is etc. I want to go back in history and make a list of trades. The biggest condition is time. I want to do a single trade every day, at the about the same time +- 2 Hours. So, I will have a .csv file, with...
Can anyone tell me if it is possible to trap "at market" open and close order request calls from MT4 and route them into Microsoft Excell where Excell will perform some logic and then pump the order call back into MT4 for onward execution with the broker? Thanks, Duncan
Can someone help me out with a piece of code that detects when a new candle starts and sends an order to buy/sell at the candle open price please. Thank you
Hello, I like to have the MT4 reports (Statement.htm) on an excell sheet (I am in fact using OpenOffice Calc) with one line per order. Actually one order is described on 2 lines (magic number and Comment on the second line). As I do not know how to use or write scripts for this calc sheet I would...
Seems the M1 chart can only be scrolled back to the beginning of month. I want more! E.g if I mark a point on the H1 chart and want to have a closer look at it on the M1 chart the M1 chart can't be scrolled far enough back to reach this point. Have tried adding more bars to chart and history but it...
Is it possible to force MT4 to use a folder other than ClientTerminal_folder \experts for my scripts and indicators? There's a documentation about the file system here: https://book.mql4.com/metaeditor/files But it does not tell me how to do what I require.
Okay I've been trading a discretionary system with some success based on about 8 indicators, 4 of them have clear turning points that I want to use as signals. For example say I want my exit signal to be when a 9 day RSI goes above 80, hits a high and then turns down below 80. Now I assume it will...
I am trying to write a simple alarm for when an order is closed this is what I have but I can't get it to sleep. The alarm sounds evey tick and I want it to sound only once after the ordes are closed. int start() { if(OrdersTotal()==0)Alert("Orders Closed!!!"); Sleep(600000); }
Hi, I need an help in editing the attached indicator. The indicator plots previous day High and Low levels. The problem is that if DayofWeek()==1, the indicator plots Sunday night levels. I'd like that if it's Monday the indicator will look to Friday levels... Thank you!
Is there anyway to put in a "break" in the code so when it reaches a certain point the code will stop and you can check the values of certain variables ?
  Day profits (1)
How to calculate the totals profits of trading day ?Thank you in advance for your help
Hy I would like to know how can we ask to introduce only one order in the EA ?
I am trying to write an indicator which projects a line from the current bar into the future (it is a price prediction). Obviously I can draw a line by setting ExtMapBuffer1[i] to a value where i is the index from 0 into the chart history. What I need to do is draw the line into the future i.e. as...
Hi, How do I draw boxes like the ones in the screenshow in the post here? https://www.forex-tsd.com/general-discussion/15143-school-pimpology-57.html#post228211 Thanks, Mauzj.
Hello everybody, Its my first quistion here, im not too much good in this :), but i hope someone can help me coding this. lest say MA1 crossed MA2 from down to up direction at XXX price . how i can know if for example the next 15minute bar has been opned above the cross price after cross time...
Hi How to change PERIOD_M5 (5 minutes) to PERIOD_M10(10 minutes)? Can anyone help me? Thanks Scott
Hy, Is there a formula to modify the stop loss and take profit of a previously opened order ?
Hi, I want to program an indicator (like a special moving average) wich can be used on any indicators by dropping it in the indicator's window. Per example, I want to use my SpecialMM on a RSI indicator. I want to use it like we can use th "Moving Average of Oscillator" indicator... How can I do...
Currency: GBP/JPY or USD/JPY (though i use it mainly on gbp/jpy: Timeframe: 1M, 5M, 15M Indicators: 3 sets of bollinger bands: 1) Period 50. Deviation 2 (RED) 2) Period 50. Deviation 3 (orange) 3) Period 50. Deviation 4 (Yellow) Once you load your template you will notice the three...
i want to check for profit everytime the ea make a trade and when it does make 50 pips profit the system will set the stoploss to +20 pips that way i can keep my profit, any help would be nice
IS THERE A WAY TO MAKE A PROGRAM HIDDEN IN MQL4 EDITOR SUCH THAT IT CANNOT BE READ,VIEW,OR MODIFY BY UNAUTHORIZED ACCESS.THANKS FOR A A QUICK RESPONSE.
This is very exciting! I stumbled onto this site. I'm seeing all these strategies, but don't know how to place them in the EA in order to test them in a demo to see what works and what doesn't ? Are there any instructions to do that, or can someone out there point me in the right direction?
Does anyone know how to contact Michael Brown or Uriel Katz?
Hello, how can i send Emails to my MetaTrader Mailbox?
Below is a piece of my EA which trades a few pairs. I need some helpgetting the following put in here as a condition to trade. I have alsoadded the custom indicator at the bottom here-it is simply support andresistance which can be found here in the code base articles. I wantthe expert to buy once...
Free Forex Signals. This Signal Generate At Time GMT+2 18:30 Send All free e-mail,web and Cell Phone SMS. http://www.bastem.com.tr/29012009.htm ================== 29012009.htm -> 29 day 01 Month 2009 year 30012009.htm for 30/01/2009 ================== Signal Result http://www.uzmanforex...
I would like my EA to alternate buy orders and sell orders, i.e. 1. After buy order is closed by either TP or signal reversal; STOP - do not open another buy order again (even though it still meets buy conditions) until a sell order has been implemented. 2. After a sell is closed by either TP or...