[Deleted]
I was wondering if someone out there could help me write an expert advisor to dosome backtesting? I don't really know to much about writing code. I am lookingfor an expert advisor that will trigger a buy or sell if price moves above or belowthe 50 SMA & 100 SMA by more than 10 pips and checks to see...
Hi, I tried the FileWrite function and it works, but it writes only one line...howdo I use it in 'append' mode so the output file can store the complete historyof EA run in backtesting? I'm attaching my code below... handle=FileOpen("Pivots", FILE_CSV|FILE_WRITE, ';'); if(handle>0) { //...
[Deleted]
Since the backtesting table only shows few information that I would like to expandthe table for few more items like MAE, but to do so I need the code that I shouldadd to my expert advisor so when backtesting is done a file with all of the backtestingresuls are saved somewhere. Can someone help...
I need to have this script run continuously run until the conditions are met forthe email to be sent once and the alarm to sound once. I need to enter theRefreshrates(); command in the correct areas in the script so the bid and the indicatorsare updated continuously. Any thoughts???
I would like to program this IF NUMBER OF OPEN TRADES = 8 THEN CLOSE THE OLDEST OPEN TRADE thanks
[Deleted]
I need assistance taking the following pseudo code and making it work in MQL4. I'msure it's simple, but, I just can't bring it together. I have the conditions forestablishing a BO bar. I just need to set things properly for a comparison of themost recent BO bar with future bars and establish a mark...
Anyone have any idea why the publisher is not working. I have it set to auto-updatefor 5 minutes. But it is not updating or sending the file to the ftp server. Isthere anything im doing wrong? any help is much appreciated.
I was wondering if it's possible to create a semi-automatic expert. The way it works is this. I manually execute the trade(s) I want and the expert manages each trade with the coded (pre-set) parameters. This way, I'm in control of the direction and the expert is in control of TP, SL and MM. The...
Hi, is there a way to show my trades online live on my website or some server and automaticallyupdte every 5 minutes just like the competition? Any help would be greatly appreciated. best regards
[Deleted]
HELP ME WITH IDEALS N REWRITTING THIS GREAT INDICATOR PLEASE I WOULD LIKE TO REWRITE THIS WRONGLY CODED INDICATOR AS I WILL LIKE TO USEIT IN MY EXPERT ADVISOR.THE INDICATOR CODE IS WRITTEN BELOW. #property indicator_separate_window #property indicator_buffers 2 #property indicator_color1 Lime...
[Deleted]
Hy Everybody, I have the following situation: extern double A=1.1; double L, M; L=(Close[1]+Close[0])/2-A; M=(Low[1]+Low[0])/2-A; N= (L+ M)/2; The question: Is there any way to find out next "N" Highest or Lowestvalues since "N" Last Highest or Lowest values(they can happen in anyamount of periods...
hi all, i am a newbie at EA programming and eager to become proficient and a contributingmember. i've read your posts and am most impressed with the comradery here. was wondering if anyone could tell me what i am doing wrong in this line of code: if (PRICE_OPEN==iBands(NULL,0,20,2,0,PRICE_CLOSE...
I have tried to place these lines in the MACD Sample, but always I have mistakes. string symbols = { "GBPUSD", "EURUSD", ... }; // all symbols to trade int pair = -1; string tradeSymbol; // current symbol to trade void start() { pair = (pair + 1) % ArraySize(symbols); tradeSymbol = symbols[pair]; //
Hi. I would like to draw horizontal line from yesterday close to actual bar but I donot know how to do it. And I would like to place onb chart digits which is ditfence yesterday close minusactual close. I you know how to do it please place some code line for me. Thanks. Boogie
[Deleted]
My EA trading on EURUSD or USDCHF can not place orders, it gets error code 4109.But it works well on other pairs. What is the reason? Anyone can help? please. Thanks marshall Why trades are NOT allowed on these two pairs?
[Deleted]
i have been trying to code an EA for this indicator which i found out to work efficientlywell for me but when i attached it to the chart it doesnot seems to do anythingall i see is freeway:currency pair at the expert tab at the terminal box .the indicator codeis shown below: #property...
[Deleted]
Both of the methods below seem to execute fine, but when the scripts are removed or replaced a massive number of print messages appear on the screen with historic data. Is this confirmed by other people in Build 204? Is there a work around? I'm actually building a polling script, and the print
[Deleted]
Hey fellow traders. I require some help coding a simple alert EA. Basically what I would like to do is have MQ4 alert me when two indicators have met a certain benchmark. The parameters are pretty straightforward. An alert will sound when: - EMA 10 of the last bar was sloping up -OSMA standard of
How would I code this : IF ACCOUNT BALANCE HAS INCREASED THEN .... thanks
Attention! Starting from the 1st of July 2007, client terminal builds having numbers under200 will not be supported. This limitation is intended for speeding up change for the latest build of the clientterminal in order to reduce the trade server loads and the amount of requests totechnical support...
Hi guys, could someone share or code an MQ4 script (NOT EA) that opens two pending orders (buy stop and sell stop) x pips away from the daily open (with GMT shift) with TP and SL. It will save me 'a lot of' trouble from making the orders myself. I've been an elite member for months, and for me...
MetaTrader 4 Client Terminal build 205 has been released:MQL4: Fixed operation of function WindowFirstVisibleBar if it is called from functioninit of a custom indicator.MQL4: Improved code optimization.Tester: Improved algorithm of economical recalculation of indicators.Tester: Fixed modelling of...
[Deleted]
Hi, Please help me. I am only a beginner here and making arrow sign on chart. I wrote the next: if(......) { ObjectCreate("ObjectName", OBJ_ARROW, 0, TimeCurrent(), Bid); ObjectSet("ObjectName", OBJPROP_ARROWCODE, 233); ObjectSet("ObjectName", OBJPROP_COLOR, Blue); } I am testing with...
Hi All, I'd welcome a script that would publish either the journal or the alerts or theexperts log, to RSS from a Windows XP SP2 Client (where MTD4 runs). This is convenientto monitor activity from a cell phone with little overhead costs. Many thanks for your input and suggestions. Olivier
[Deleted]
is there any possibility that i'm able to backtest custom indicators like how ibacktest EA's? thanks =]
[Deleted]
Hi, i have a list with datetimes like 2007.05.21 23:33, etc. So what i want is a script or indicator to draw the time as text with the correct datetime as parameter . How can i do this with mql4? I need to know how to do it with more than 1 datetime. Thank you in advance ps: is possible to read the
[Deleted]
i want my EA to give different stoploss value to different currency pair based onthe spread. if spread <5 stoploss = 20 if spread > =5 <=10 stoploss =30 and if spread >10 stoploss=35 pls help me with this simple code i have tried different means but it keep givingevery trade the same stoploss...
[Deleted]
#property indicator_separate_window #property indicator_buffers 2 #property indicator_color1 Lime #property indicator_color2 Red extern double Threshold=1.2; double buffer1[]; double buffer2[]; extern int period=10; extern int price=0; // 0 or other = (H+L)/2 // 1 = Open // 2 = Close...

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.