I am trying to back test a few EA's but get every time the following error message and can't find a proper answer so far on this issue. The error message is as follows: 11:15:20 EA name: optimization started 11:15:20 EA name: no data restored 11:15:20 EA name: optimization stopped 11:15:20 There...
I looked around the forum before posting this. What apparently works for others has not yet worked for me. • The file is not open. • The file is in the Scripts folder with the script file shown below. • I have tried to open text files and csv files and keep getting 4103. • Windows 7 Thanks in
[Deleted]
Hi, so I'm currently in the middle of writing a code that requires a minimum stop loss allowed, and so have: ticket1=OrderSend(Symbol(),OP_BUY,volume,Ask,0,0,0,"",magic,Blue);OrderSelect(ticket1,SELECT_BY_TICKET); btake=(OrderOpenPrice()+(level*adjusted_pips)); blimit=MarketInfo(Symbol()...
Attached is the source of this indicator. Currently it makes use of ObjectMove to continuously plot the pivot levels. I'm trying to modify this indi so that it plots HLINES (Horizontal lines) for the pivot levels for the past month.. I believe I have to change or replace the ObjectMove instances.....
Moneymanagement Tool as an indicator. How to get the information about the secondary currency?
(26 1 2 3)
Hi, I would like to make an indicator which has two extern variables: risk (in %) and stop loss. The indicator should print the correct lotsize in the upper right corner of the chart. But there is one issue I can't solve. For example, my loss is larger when I lose 20 Pips with a EURGBP-trade than...
The below codes are in Indicator, and I want to know the difference when I change a little About this Indicator, I don't want to draw any indicator in Terminal, I just want to select some points in Indicator and call this indicator in EA by iCustom(); Below codes include two case: one case is just...
hi, I'm looking for someone who has knowledge on how to get the informations about the last closed bar in my chart. I have been trying to figure out witch one it with count = IndicatorCounted()-1 or something like count = Bars-1 count = iBars(Symbol(),Period_D1 )-1 or else high = iHigh(Symbol()...
about below codes, it is very different when the red code "if(Pro<10000*Point)" is activated or not when I test it on the history data; In the fact the history data is very simple, about consecutive 5 days, and Pro never exceeds 10000*Point. when the red code is activated, the order stop line...
I have always been able to limit open orders across multiple pairs that all have different "magic numbers" but recently I am having a problem because my EA will open more than the allowed 1 trade if the entry criteria is met at the same time on different pairs. E.g. if the EA opens a trade when...
[Deleted]
What I'm trying to do is go through my closed trades and see what price action did 20-30 candlesticks afterwards. I want to move the chart window back to that point in time and take a screenshot of it. Does mq4 have some type of scroll function? The alternative I have right now is to run an EA...
[Deleted]
Hi, I am new to mql. Is it possible to summarize the high prices of the last 20 intraday-asia-sessions? I need as the result the compound number. Can somebody show me an code example?
I know that there must be an step by step explanation for this somewhere, but just can't find it. I want to try trading Bitcoins on a Demo account and I already got the server address, in this case: <removed by moderator> If someone could explain me where to put in this in or provide a link, that...
When i open a pending order it produces ticket number,ordertype etc.and can learn them with orderselect function. But after the pending order realizes and it becomes a market order,does its ticket number,ordertype change and becomes a new order?and could its ticket number,ordertype etc be learned...
[Deleted]
I would like to know the code necessary to set my Expert Advisor so it trades within a specific timeframe. For instance, Tuesdays from 09:15 to 11:15 and Wednesdays from 10:00 to 15:00.
[Deleted]
hi.. I have got an error message as below:- OrderModify error 130 Could somebody help me how to solve this problem ?... my code as below: Thank you extern double TopProfit = 0;extern double lot = 0.1;extern int StopLost = 0;.........void SetBuyStopLost() { if (OrderOpenPrice() - Ask > Point...
I have made an EA and test it, it is ok, the result profit is 5000; to optimize the EA, I copy it on an blank EA, named "test_0", then I changed many variables to test, and at last i find it become worse when I change variables. Now I copy this EA's code into "test_0" again and test again, I find it...
Hi, I am running a script and its name appears in the right top zone of the window, covering the bars sometimes. Can I remove the script name from the window, or move it to another place ? Thanks
When we run a back test and select open chart, it displays the entries/exits and indicators used. Is there any way to hide the indicators so the strategy cannot be duplicated?
I have got my first custom indicator program running on MT4 but I do not know how to stop it from running. I have searched for this info without any luck. Can somebody please help me with this?
Hi, I cant seem to get the iCustom function for the "!SM_ADR Marker" indicator working. Settings are as follows: iCustom(NULL,0,"!SM_ADR Marker",0,0,30,false,0,2,1,Orange,1,Red,-10,false,{0-7},0); This give me 0 for all buffers that I try. -- Sorry guys, I just thought there was a simple solution...
Hi everyone, All of Zigzag Indicators Make Backtest very slow. I need a code that calculate limited zigzags from right to left (EXP. Just 6 zigzags that given from extern input), And it has only "ExtDepth" in Extern inputs, just like "DT_ZZ_nen" Indicator. And I don't need to draw lines, I want...
When we want to get value from an Indicator, we always should use iCustom() to get, and the value must be stored in a double array which also should be defined as indicator buffer; so when we can only get double value from Indicator by iCustom(), how about to get an int value from an Indicator?...
Hi, is there a possibility to write s.th. like this: double hi( string sym= "0" , int per= 0 , int bar= 0 ) { Print ( Symbol (), ": " ,DoubleToStr(iHigh(sym,per,bar), Digits ), " == " ,DoubleToStr(iHigh( NULL ,per,bar), Digits )); return ( iHigh(sym,per,bar) ); } // => EURUSD
I'm using android mobile Metatrader 4 and have a Problem with my Candlesticks. I can't see any Candlestick shadows and I can't see this crosshair. . Help pls. I saw a lot of people are having this problems on the "play store " and internet. Please Fix it . Thanks I am using a full hd android...
Hi guys, I used Java, the Selenium framework and MQL4 to create an EA that can import data from a file inside the experts/file folder to get a trade permission when an other account of mine is making profits. //+------------------------------------------------------------------+// TradeErlaubnis...
[Deleted]
Hello, The situation is, I am running MetaTrader on Linux machine through Wine, I want to develop my software which will do some things. I do have some questions about Meta Trader, I would like to know from developers side is this possible to do such things: 1) Enable / Disable Expert Advisor...
[Deleted]
Hi, I’m facing an ugly problem here: after a few iterations the start() function of my indicator doesn’t come back again after the return() call, i.e. MT4 hangs in a loop, eating up CPU, without calling start() again. I wonder if somehow I destroyed the function call stack? What do you suggest that
please share a very stable indicator(very low noise)(low signal changes) that you have.
[Deleted]
Hello, have some people here also see that sometimes a wrong account number is given back from the AccountNumber() function during backtest and i think maybe just at weekend when the market is closed? I am wondering today why the function is often give me a complete wrong account number bac.
[Deleted]
datetime Time0; double point; int digits,cnt,Q; extern int MagicNumber=2533; int Di,Do; int init(){ if(AddSpread) { if(AddSpreadToBuyOrders){Di=0;Do=MarketInfo(Symbol(),MODE_SPREAD);} else{Di=MarketInfo(Symbol(),MODE_SPREAD);Do=0;} } else...

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.