MQL4 and MetaTrader 4 - page 697

To post a new topic, please log in or register
  Contract Size (3)
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...
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..
  Missing ticks (2)
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!
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);...
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
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...
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 everybody, I need help to solve the following issue I am struggling with.. The I use the iCustom function to import into an EA the values of the buffers of the " ShinNeAshi 2 " indicator, but I get only Zero value for all the buffers. I use the following code to call the first and second buffers...
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...
  Need Help ! (2)
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...
Hi NN Gurus, I would like to learn how to program a simple neural network. My idea of trend calculation is 1. relation of tue, wed, thu, fri day candle compare to mon day candle (meaning if mon is a bull bar, the relation of tue, wed, thu, fri bull or bear candle to mon) 2. comparing to previous...
Strategy Tester doesnt seem to be giving correct results in the report, the numbers dont add up for instance this report states there was 100 consecutive wins totaling 107,000 but in the graph you can see it never went anywhere near that level. SymbolEURUSD (Euro vs US Dollar)Period15 Minutes (M15)...
I have carefully put in the information of this Order Delay for entry. It is supposed to Delay the entry and then look for the Stochastics and RSI to be in an OverSold or OverBought zone. This HAS to be seperate from the main signal code.The reason is the Main code is more of a momentum and...
Hello all. I hope I am not going to ask something too silly but I am trying my best to learn the backtesting environment in MT4. I am trying to develop an EA and I am backtesting using a signal from an higher time frame that I trade on the 5 minute chart. The problem I have at the moment is that I...