MQL4 and MetaTrader 4 - page 817

I am sure everyone will agree that it is always a good idea to verify EA sanity in the tester... Is there a way to configure the tester to simulate various broker settings so I can test my EA's in these different environments? In particular the docs for AccountStopoutMode and AccountFreeMarginMode...
Hi I there any way i can change in the MT4 deposit value, from showing deposit value calculated with commission & swap or not?
[Deleted]
Hi.. How could i combine two indicator which are running different period in one EA ?. As example I want to combine 2MA indicator. The first MA running based on period one hour and the second MA running based on period four hour. Could some body guide me ? Thank you bh_hensem
Hi I am sometimes getting this error message on my small live account even though i am doing a check for lotstep and minlot. (I haven't been able to replicate the issue in backtesting, so i can't check the values to see if they had extra decimal places) I have already normalized the calclot value...
Is there way to export from MT4 Terminal iExposure's values to Excel or just somehow copy-paste them? Thanks
[Deleted]
Hi, I am using metatrader 4 on my mobile from last 6 months. I always have difficulty to find find support, pivot and resistance levels. Is it possible for you to add a indicators which draw these on any chart. Thanks Shailesh
Dear community, Recently I added a new broker and guess what: they do not provide a "Daily Confirmation" via eMail. According to their customer service, they want ro avoid to become marked as "spammers"... I will not comment on that. So, now I need another solution. My first idea was: this could...
Hi, I tried to ask my brokers to enable signals, but they just stopped to answer saying that they don't understand what I want, I don't know if I am making a mistake, maybe in the setting of the platform . can anyone help me?
Can someone please tell me what the UTC/GMT offset of the data in the history center of MT4 is when testing at the moment?
On real trade, And if you are using just ask and bid prices in ea for desicions. Does conclusion of ea differ on different timeframes? If you use demo account does it differ?
[Deleted]
Just wondering if someone could help me, on my ipad the trading history tabs have gone. Tried to get them back but lost my chart settings. I am sure it must be a simple click on something. I have trades running but cannot see them anywhere now !!! Much appreciated. Amanda
[Deleted]
Hi guys, I found maybe 400thread about send mail via function mql SendMail ()... but I would like find solution send mail from MT without using SendMail(). Inspiration: https://www.mql5.com/en/code/10428 (but only log in gmail mailbox and read) How do it send mail from @gmail.com (or other...
I was trying to verify (in Excel) my understanding of how MT4 computes the values shown in the Terminal window, such as Margin, Free Margin, Margin Level, etc. and I noticed something weird. Here's the summary, details are below with screenshot and my calculations in Excel attached: Step 1. Opened a...
Hallo I''m working on a trailingstop wich isnt sent to the broker everytime a better stoploss is possable. The problem I have is that the EA now Opens and closes orders in rappid fire. can someone help me? bool TS; if(OrdersTotal()>0) TS=true;   double currentprice = Bid; int total =...
Is it possible to backtest a strategy in the tester and still place live trades in a demo or real account with EA or manually? It appears so, but I wanted to confirm that these two operations. In the same way that each ea runs in a separate chart, a backtest can run in a separate chart. I'm...
its formula is : [E(Rp)-Rf]/σp I want to know how I can get the value of σp / Sharpe Ratio according to test report of MT4. In addition, shall I know how much money at most have been used in historical back testing according to test report? thank you !
How can i get the index of a past candle -> iHigh(NULL, PERIOD_M1, index) -> if i only know the starttime of that candle?
I want Code .mq4 find total OrderProfit for Buy or sell Please help me...... EX:
[Deleted]
Hello, I have made this program, but somehow I can't see my orders being executed, nor the alerts being triggered when the price has moved by 10 pips : int init()  {   return(0);  }  int deinit()  {   return(0);  }  double orderStartPrice = 0;double takeProfit = 0.001;double stopLoss = 0.001;bool...
Good Morning, Wondering if someone can help me out. I have been using the very useful attached script in my trading. I would really like for a few key actions to be added to it if someone with coding skills wouldn't mind? 1. I would like the pending orders to expire after a chosen period. This...
[Deleted]
  help me with the code  (44   1 2 3 4 5)
[Deleted]
After 14 trades, the report says the Maximal Drawdown was 1942.60 (see attached file). However, based on the balances, I calculate only $1069.50. Can someone explain how the 1942.60 was calculated? I've already read and looked up the definition for maximal drawdown on a number of sites. What am I...
[Deleted]
I'm planning to do a buy script for currency pairs which can set a SL and TP level FROM THE ENTRY PRICE which WORKS WITH 2,3,4,5 digits broker . Can someone help me to double check it, the SL and TP are not working . The way I do it was execute a trade FIRST, then only it will modify to add in the...
Please help me to understand why this is happening ? <TICKER>,<PER>,<DATE>,<TIME>,<OPEN>,<HIGH>,<LOW>,<CLOSE> USDJPY ,1,20140121,101200,104.5350000,104.5470000,104.5000000, 104.5400000 USDJPY,1,20140121,101300, 104.5300000 ,104.5430000,104.4700000, 104.4900000 USDJPY,1,20140121,101400, 104.5060000
[Deleted]
Am using indicator buffer, which am not using for drawing graphs. I observed that one the indicator buffer is given a value, it cannot be over written. So in a for-next loop, even if I try to change the value, it is not changing Is there a way to force the indicator buffer to accept the new value in...
Hello, have an Expert Advisor and can't touch to chart. No error, no message, nothing. (Experts allowed -> others work). When i open the Editor and try to compile it, i get the message : "cannot open the output expert file ". Anyone knows what's going on ? Thank you
[Deleted]
#property copyright "Copyright 2013, B.Y"#property link      "Boaz@UTrade.co.il"#property indicator_chart_window#property indicator_buffers 2#property indicator_color1 Red//---- input parametersextern int       period = 26;extern int       histper = 26;double VID[];double...
the codes are as below: if(OrderSelect(OrdersTotal()-1,SELECT_BY_POS)){ if(OrderSelect(0,SELECT_BY_POS));     if( 2*Stop_Loss > OrderOpenPrice()+ Bid )..............} In the sentence "if(OrderSelect(0,SELECT_BY_POS));" above the codes, that the semicolon--";" is delete or not is obvious different...
Hello, I am having some EA's programmed that place orders on the brokers trading platform. After being stopped out the EA needs to place more orders. In other words it is designed to manage the current position and if stopped out it should re enter based on certain criteria. It seems that when I get...
Hi, may be s.o. here knows an intelligent way that an EA slows down its speed in the strategy tester. I know you can slow down the execution speed manually by the sliding bar beside the 'Visual mode' - but I want the EA to do this by it self!! (Why do I have a computer and a program if I have to do...