MQL4 and MetaTrader 4 - page 467

To post a new topic, please log in or register
Hello, Does anybody know how different installations (coming from different brokers) of the MT4 terminal can use different amounts of RAM while running? Example: I download and install 2 terminals. One from BrokerA and one from brokerB. I register accounts, limit the amount of bars on chart and...
Hi, Below is the standard moving average strategy that comes with the system. Can someone show me how to modify it slightly. I see no profit target, and I'm finding it difficult to even adjust the parameters of of the buying and selling levels. I assume the two orders at the bottom are for the...
Hi all! Does anyone know/experience that the price was hit with much distance of what you set, for example, a sell stop pending order set at 1300 but it was finally hit at around 1293. (OMG that's 700pips!!!) Adding to above, i am talking about a quick drop during news release. Is that normal or...
Dear Sir I observed the values displayed in Metratrader is wrong. For ex.g NSE_Nifty values are wrong (high, Low, CMP). Looks like these are modified depending on some calculation and CMP value. Pls let me know is there a way to edit values Regards sreedhar
Hello, Is it possible to interrupt the line of an indicator? I tried setting it to null at points, but I get vertical lines. //--------------------------------------------------------------------// hight5bars.mq4// The code should be used for educational purpose only...
I'm trying to run back test but it's only going back for two days, even though I have it set to go back almost a year. I'm using tick seting. It finished the test in about 1/2 of a second too. any ideas? thanks
Hi, after 15 minutes of searching for the account window that would show, balance, profit etc. I finally gave up. Really? 15 minutes to find the account window? Who designed this? I'm a relatively intelligent human being, and I can't believe they would design a system that requires and extensive...
Hi Dear Friends, I just want to add the trailing stop code to my ea. Can you please help me to know exactly where should I add code. If possible help me with trailing stop code. my ea is as below. Kiran
Hello, I am trying to use the follow code in an EA. Any alternative code ? SetIndexStyle(0, DRAW_NONE);SetIndexBuffer(0, ExtMapBuffer0);SetIndexStyle(1, DRAW_NONE);SetIndexBuffer(1, ExtMapBuffer1);SetIndexStyle(1, DRAW_NONE);SetIndexBuffer(2, ExtMapBuffer2);IndicatorShortName("ShortNameHere");
  OrderSend error 129 (13   1 2)
void OpenOrdersToTP(){  //to place orders so as to TP in choppy markets.  RefreshRates();  double point=MarketInfo(Symbol(),MODE_POINT);  Print("in OpenOrdersToTP():Bid=",DoubleToStr(Bid,Digits), ",Ask=",DoubleToStr(Ask,Digits));  int ticketBuy=OrderSend(Symbol(),OP_BUY, initialLotz, Ask, 3, 0...
how to open a buy and sell order at the same time when the floating spread falls to zero (when ask price is equal to bid price)
  GTerminal EA (1)
Hello I had this EA always like to use to place trendlines Pendingorder, but he works on the new version of MT4 NOT MORE. Who can help me, Who knows a EA to trigger trendlines Pendingorder? regards Matthias
I want to make an EA based on one of my simple trading system. Its really very difficult to trade with manually using this system. That's why I want to make an EA. I hope it will profitable to all. I trade with this system with EU, GU, GJ, NU. its really work very well. Easily one can make 70-100...
how to code close order ex : order opbuy at the opening candle [0,] say it 1.3000, then ea close the order at closing [next candle] above 1.3000. it means at the closing bullish candle above 1.3000 ea only close that specific order, maybe there are several new opening order sell/buy after that one....
OK, so as we know the MT4 terminal time is set to EET. It has been seen in the past that certain countries change their daylight saving times, dates, or even shift to not using it, or using it all the time. Which country should I pay attention to, such that should that country change it's times, the...
Hi guys, I'm new to all this, and was wondering if someone could help me understand how this works. I have installed MT4 and opened a demo account with a broker (AAAfx) a few weeks ago. I have done some trading with my demo account to get the gist of it. I was wondering if it is possible to run...
Hello I've gone through the help manual and it suggests that my terminal journal is logging and I can richt-click -> open a journal entry and it opens the explorer window showing the logs directory where the log for that entry is. It does that. But I look at the files and none of them have been...
Hi, I have written EA and using for more than 5 different currency pairs. I open chart and applied my EA for different chart and different currency. currently i remove EA when i dont want to run EA for particulr currency. Is this possible to add code to start/stop EA as input parameters.if i need to...
New article Advanced Analysis of a Trading Account has been published: The article deals with the automatic system for analyzing any trading account in MetaTrader 4 terminal. Technical aspects of a generated report and interpretation of the obtained results are considered. Conclusions on improving...
Hello, Is there a code that automaticly remove only the EA on current chart? I havde tried : PostMessageA( WindowHandle( Symbol(), Period()), WM_COMMAND, 33050, 0); but it removed the EA on all charts?
How come running a back test on the same EA using the same broker, yields 2 diferent and completely different results. I used both computers and went to history center and reloaded data to make the test uniform, but the results are WILDLY different. Thanks for any imput.
I have a multicurrency EA that operates on 27 pairs. It takes 4 trades for every trade opportunity 3 scale out and on trailer. Open orders quite often run up to 8-10 percent of the accountbalance rather fast and I like to take that I am implementing a "Total System" type TP and SL EA that monitors...
Hello, It seems like MT4 refreshed all symbols (all currencies etc)... Is it possible to only make it refresh one FX pair ? When using 3G connection, it may be less data to send/receive if you only refresh the FX pair you're trading. Thanks Gregory
Hi, how do I have the moving average look back to a certain number of bars ago? I tried the classic variable name with[2] after it, but that just gets me an error. I did search online and the help search and surprisingly cannot find any understandable info on this basic question on how to refer to...
Hi, first im sorry if there is similar topic :) to the question. i would like to set my TP to close only 50% of my position at one price level and the other half on another price lvl. Now i can close 50% of podition only at market but im not present on market all day. So anyone know some solution ?...
Hi guys, Can you help me, please, with my save default platform environment?
if a buy order is open and this is true(OrderOpenPrice()==OrderOpenPrice-(3*Point)) then close buy.
hi, as below is a simple code i had create. But y output will be zero ? it suppose be 87.5 int int_lower_shadow = 70;int int_upper_shadow = 81;Print(((int_lower_shadow / int_upper_shadow) * 100)); Thanks
I have this WPR version with alerts. Is possible to have a different color ONLY for the last leg of the indicator, i mean the leg which repaints until the current candle hasn't finished yet? Then it turns on default color waiting for the next leg forming (of course in the different colour). Thank...
Hi, in order to perform a quick (binary) search within a string array to get the index I compare strings like that Symbols[mi] > sym It works as this amended script shows (try yourself):...