Hi @all, it's me again and I still have questions. sorry :( So here is a simple script that opens an order for me and maintains it. THe script works as supposed but when I'm running the script simultaneously on two different pairs it fails to find one of the orders given its magic number and symbol....
Nothing special done on this code but new compiles shows this message and shuts down the platform. Does anyone have any ideas?
Hi, struggling with MT4's slow BT execution, MT4 only uses 12% of 1 of the proc's 8 cores...my testruns take forever. Have anyone tried running MT4 in a virtual machine , maybe there is a tweak so it can utilize more of the available processor power
Hello sir, Any body who can help to build simple EA which is based on exponential Moving avarage cross over. I have all the details. Thanks Sam
[Deleted]
I have been studying MQL4 for a while now hoping to someday code my strategy into an EA but i am still having problems here and there. Just for study purpose (something i can make reference to) can somebody PLEASE HELP me combine the MT4 platform Custom indicators "MACD and CCI" (attached below) to...
Given that Standard contract size = 1 lot ($100,000) Mini contract size = 0.1 lots ($10,000) Micro contract size = 0.01 lots ($1,000) is there a relationship between (0.01*AccountBalance) and ContractSize in money management? I'm trying to understand the differences between the money management...
I'm currently developing a theory of fluctuations in the market. I've been thinking about 2 things: 1) How to track a trend without closing on a pullback, and maybe even buying more on a pullback in the trend. 2) Why simple trading systems based on indicators and oscillators are profitable only for
[Deleted]
The Hong Kong Heng Seng Index futures was starting the PM opening hour from Beijing time from 13:30 to 13:00. However, the demo and real accounts are not yet changed and no data from 13:00 to 13:30, Who else can help me to change?
Hello !!!! Some traders believe that a very steep angle in regression line can mean a change in trend. There is someone with experience that uses these angles of the regression line? This situation can be confirmed with divergences or another type of signal ? Any comment is welcome..
I wrote small script to print out ticks with their respective tick number on a selected period. The code is the following: int start() { Print(StringConcatenate("[",Volume[0],"] ",DoubleToStr(Bid,5))); return(0);} And here's is the result: 2012.04.04 23:26:31 testTicks EURUSD,M1: [12] 1...
Any assistance would be greatly appreciated. I have read up on this Error 130 and have tested my EA on the strategy tester wit success... but when trying to run it on a Demo account it gives me error 130 on OP_BUY and OP_SELL: OrderSend(Symbol(),OP_BUY,StartLots,Ask,3,Ask-StopLoss*Point*10...
Hello, everyone.. What is the best way to check if there have been any orders closed from midnight to the current time on the same day? The next day the check should start from 0 again.I am thinking of using a OrdersHistoryTotal (0).. Thank you for any recommendations. R
Hi, My MT4 is currently Version 4 Build 409 - It hasn't automatically updated for a very long time. Is there anyway I can manually update it to Build 418??? Many thanks, Martin.
Hi, I have a little problem when I send my order in the EA. This order not works properly in all kinds of markets, the order however works fine on the EUR/USD. I need to change any part of the order to work properly in other markets than the EUR/USD? May be I need put the stoplosss or the take...
Hi all, I usually trade by setting my stop to obtain 1% max loss on every trade. To do this, I recall double AccountFreeMargin() but I'm not sure it's correct. May be it's more correct recall double AccountBalance() because this double returns the exact balance on the account at the new trade...
Hello, I need someone who can progam an EA To roughly describe it: eur/usd, 1h candlestick chart, automatic Lot calculation pending on the account balance only buy or sell stop orders just to imagine how it should work a little insight: a buy order is executed when after an rising candle the bodys...
Why doesn't works? I need to close the position BUY when new bar is close below close earlier bar the same on SELL close then BAR close under the earlier close bar: if(OrdersTotal()>0){for(i=1; i<=OrdersTotal(); i++){ // Cycle searching in ordersif (OrderSelect(i-1...
Hi, when I draw a line into my chart, I want to calculate the actual price of my line, the price is only correct, when the left and/or the right point is in the near of the actual price, int x1 = ObjectGet(ObjectArray[i], OBJPROP_TIME1); double y1 = ObjectGet(ObjectArray[i], OBJPROP_PRICE1);int...
My EA has started causing the platform to crash. I don't think I've made any susbstantial changes to it, but suddenly it does it every time. I also get message under the Experts tab of the platform that the EA file is corrupted. However it compiles without any problems. Any ideas as to what this...
Hi all, is there the possibility to run 2 experts on the same graph? Can I write an expert in which I recall 2 experts? Thank you!
[Deleted]
Hi, I have coded an indicator (macount) to count the number consecutive high of another indicator(mafilter). but it behave very strangely. it look into the future bar for counting.. Now I'm confused about int limit, counted_bars=IndicatorCounted();if(counted_bars<0) return(-1);...
[Deleted]
Hello I'm looking formula similar to this for amibroker. Does anybody maybe have similar ? It can be a little different of course...i will be try to reprogramming. http://www.wisestocktrader.com/indicators/2464-bollinger-band-squeeze-highlighter-and-exploration Thx for help lukibest
[Deleted]
Can I get strategy tester results or save StrategyTester.htm file programmatically?
Currently my mql4 script serializes OHLC data to delimited string and passes it to a DLL which performs further analysis. The performance is not very good, so I am thinking about alternatives. Would writing historical data from OHLC buffers to a binary file in a format just like .hst files be any
Please can someone explain how to import indicators from Code Base and insert them into MetaEditor? This OUGHT to be a simple intuitive process but one cannot account for software writers... thank you
hi everybody, I develop little ea. I need to identify at the movement trade run or not? so what is the code for identify it? I grate appreciate who can help me to this Thanks.
Hello traders, I am using a simple EA with RSI and MA crossover as two indicators. But i want the EA to check for RSI condition only during certain hours of the day, no the whole day. Only MA crossover should be checked the whole day. If anyone could help me with it, it would be really helpful to
Order request sometimes not being dispatched to server, causing trade timeout error. Could be a bug.
(7)
Each order operation request (OrderSend, OrderModify, OrderClose) goes through a number of stages, with the first steps being display of the details in the Journal log and the transmission of the request to the server. However, it often seems that the request is never dispatched, and the order...
Hi all I need too communicate between two or more terminals. I decide to use registry for this issue. #define ERROR_SUCCESS 0 #define ERROR_INVALID_PARAMETER 87 #define HKEY_CURRENT_USER 0x80000001 #define HKEY_LOCAL_MACHINE 0x80000002 #define REG_SZ 1 #define REG_BINARY 3...
[Deleted]
Dear Sir, I find articles such as below: -------------------------------------------------- ----------------------------------- A trader has $ 1000 USD account, he places a buy order of 4000 units on EUR / USD, the which will give him on average $ 0.40 cents per 1 pip. Since 2% risk he is...

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.