MQL4 and MetaTrader 4 - page 459

hi, i'm interested in optimizing EA's for accuracy rather profitability - particularly I want to optimize for higher % successful trades vs losing trades as shown in the strategy testers report (% of longs and shorts won) My reason is that I'm ultimately more interested in the long term accuracy of...
Hi there, I just found a bug in drawing an arrow by using the "OrderDelete()" function. Maybe somebody can check if it is a bug or a feature :). First the system specs: - Windows 10 PRO 64 - MetaTrader 4 v1090 What happens?First I place pending orders - fine! Then I delete them with OrderDelete() -...
I have downloaded the Free PSAR to test but am trying to change the parameters . Is this possible and where can I do it ? I cant seem to open it in the Editor ? Also I wanted to use the PSAR to execute INTRADAY rather than at OHLC would this be possible ? Thanks
Hello Community, I have built an indicator which sums up the values of the ADX ad Aroon indicator and writes it into an array called "sum[]". Now i want to colorize the bars in the chart depending on the indicator value. Is the indicator value above a certain limit (double ext trendlimit) the bars...
problem old build
Hi guys. I want to do the back-testing by program control in mql4. 1. using program start the back-test rather than click the start button on strategy tester 2. controlling the setting of back-test parameters such as symbol, period, date etc. Is it possible for MT4?
Is there a method to chart backtest results (the trades that occurred during the backtest) without using visual mode? If so, how do I do this? Visual mode can often sometimes take a very long time to run with tick data backtesting. The non-visual mode backtest runs much faster, but I cannot see...
Hi guys, Im having some trouble with an EA in MT4. Its just a basic one, but when started in the tester, doesn`t trade at all. This is the code. Thank you in advance! //+------------------------------------------------------------------+//|                                                    Stan 4.0...
  Global Variables  (5)
Hello, I have an EA and a Indicator, running at the same time, Why do not take the Global variable the 2 value in the Expert . Both programs are under #property strict with the Expert within a loop OnTick, and the Indicator into OnCalculate. Expert double GV_Ind; Print(" Global Variable GV_Ind=
[Deleted]
In MT5 I've managed to automatically load a template (tester.tpl) after backtesting finished, in order to show my indicators and see where my expert traded. However, in MT4 this doesn't seem to work. If I manually load tester.tpl, all my indicators show properly, so my template is fine. After the...
excuse me whats wrong with this code >> pending orders doesn''t work !! if(deff>0){      double sum = (deff + b)/10;      int h=(9-deff);      double fin = (b-h)/10;            ObjectCreate( 0  ,"8" , OBJ_HLINE , 0, 0 , fin  );      ObjectCreate( 0  ,"6" , OBJ_HLINE , 0, 0 , sum  );...
Hi dear freind I tried to test a EA expert in MQL4. As you see in attached image: number 1: show value of WPR[0], when strategy tester is run. number 2: is value of WPR[0] in Data window in the same position of number1. and number 3:show position of it. there is some body, tell me what is problem?...
Is there away to tell metatrader to "Stop Trading when not enough money" in the account? ...and to wait for ACCOUNT BALANCE to increase. Currently I get multiple warnings as I forward test "M-NOT enough money to trade". margin is insufficient to trade a lot size of 1.6". After a while my account is...
  Toys from Vinin  (387   1 2 3 4 5 ... 38 39)
Decided to create a thread to put "Toys" in one place
Hello, I have an indicator that create rectangles for support and resistance, it draws several of them, all named : support-1 , support-2 , resistance-1 , resistance-2, ect.....  I want to use those values on an EA or an indicator, without having to enter every names one by one. Is it possible to...
Hi all Can anyone help me with the following. Im trying to write an EA that runs on an hourly chart, but I want to look at whats happening on the 5 minute window too. A couple of expressions I have.... TriggerMovingAverage = iMA(Symbol(),PERIOD_M5,8,0,MODE_EMA,0,1); and iClose (Symbol(),PERIOD_M5,1)
hi all i tried to write  my EA using Standard Deviation channel  but  i cannot  find any index  for  it's  lines only  time  points  but i need  price points please  i  want   the  formula  and  the  equation  that  used  to  draw this  tool  on meta trader  to be able to write  my own indicator...
Hi all, I am looking for an mql4 folmula for calculating an Heiken ash  red and greed candle on a chart. I am not interested with a colour of the candle, just the folmula in mql4.  Please help if someone has one at hand. Thanks.
I got sometimes Takeprofit modify error 130, when takeprofit go to negativ area. that means, takeprofit move buy order under orderopenprice, sell order move to upper. Then I got the error. I saw many other EA do also same, but they works without error. Why is it?
Hi community, Brokers don't seem to offer much history on the 1-minute charts, and downloading via MT4 history centre didn't get me much more. Wondering what sources everyone uses for 1-minute chart history data? Would like to try out some free and/or paid ones to see what works well. Thanks!
Hello Community, I have built an indicator which sums up the values of the ADX ad Aroon indicator and writes it into an array called "sum[]". Now i want to colorize the bars in the chart depending on the indicator value. Is the indicator value above a certain limit (double ext trendlimit) the bars...
//+------------------------------------------------------------------+//|                                        PivotHighLowIndicator.mq4 |//|                        Copyright 2018, MetaQuotes Software Corp. |//|                                             https://www.mql5.com...
Im looking for a complete torturial on mt4  
Hello Trading friends, I coded the attached indicator but when i load it to a chart, it doesnt get displayed...i assume that the array is empty but idk why. The idea is the following: First the the difference between aroon up and aroon down signals are calculated. The second indicator is the ADX...
I'm having trouble with setting up Sell Limit Orders. For some reason these orders are becoming losing positions. This makes NO since to me because I thought the who point of a sell limit order was for that order to become a position that automatically closes instantly once the price you set is...
Hi to everyone so I have this expert advisor which looks profitable but I have some problems with it. It trades against the trend and it has no stop loss but I'm no good at programing so I need all you help to make it work correctly to trade with the trend and add stop loss any help is welcome .
Looked quite a bit here and in my hard copy book on how to separate (Market) Sell and Buy orders. Then in this case, close one or the other type out separately. Though this would be useful for other purposes as well. This should be possible with them all in the same ticket pool shouldn't it?...
Guys, I created this small indicator that should analyze more than one currency exchange rate; calling the function "AlertSupportAndResistence (symbol1, timeframeSimbol1)" on "x" declared currencies at the beginning. I would expect that even if I load it only on a graph, for example "EURUSD DAY",...
By default mt4 is not to scale . I'm trying to make a simple code . After a candlestick that is 10cm long I would like the expert advisor to place a trade for me  . The problem is depending on the scale at the time a 10cm long candle could either be 10 pips or 5 pips or 3 pips etc , it varies .  So...
Hi Im trying to add a martingale on this Ea, but the void CalculateMartingale return a value :( Can someone help?