MQL4 and MetaTrader 4 - page 409

Hi All, Need someone help on my EA. i want to upload my EA and it shows error during the validation, the error is not enough money as below; my code as below; #property copyright "Copyright © 2017,"#property version     "1.00"              // Version#property strictextern string OptionsEA="DEFAULT...
Hi, Using MetaTrader4. I have some questions on what Volume number to choose. If I had $200USD and wanted to put it all on USD/CHF currency pair, which Volume number would I choose and why? Is there a certain Dollar amount when a trade goes from Micro (1,000 Units) to Mini (10,000 Units)?  Or...
hi traders, is there any semafor indicator which changes mt4 background colour as alert? Thanks!
I replaced the HDD drive by a SDD drive. Did a volume copy with macrium software.Everything works well on behalf of the bought EA, these don't want to start anymore. Is there anything I can do without using an extra activation
Hello, I have a EA that uses void Start () and runs ok on local desktop. It only goes round on every tick if placed on a VPS. I tried replacing void Start with void OnStart() but the problem stays the same. What should I use instead of void Start() and void OnStart() to have my EA go arround...
Hi all, I have created this function that sums up net pip movements for buy  and sell orders but it  does not seem to work properly. Basically  for example, the ea opens a buy order at   81.50 and now the pair has moved 81.70. the net pip movement is 0.20. then the same ea sells the same pair at 81...
Hi guys Could someone tell me why I get a "Possible Loss of Data due to Type Conversion" Error when getting the Chart Height in Pixels... It's not the end of the world, but it is driving me crazy as I have tried everything to get rid of this "Warning"... // int ChartHeight; set as Global...
Hi I have an indicator that gives 2 arrows. And I would liek to remove the 1st one named as DNBuffer. But I have no clue what to replace or take away. If anyone know how, I would appreciate it: if( iClose (Symbol(),TF,i+3)>=iOpen(Symbol(),TF,i+3)){TOP1 = iClose(Symbol(),TF,i+3); DNBuffer [i+3]=
Hello there, I am working on a indicator in which i could switch between oscillators indicators ; and i am implementing the indicators but i have a problem with the stochastic . Undesired lines are drawn ; i need them not to be drawn BUT with no level set in #property // I don't want to set levels
Hello, I am getting error # 130 while trying to OrderSend() in MQL4.    LotSize        = 0.05;              // 0.05 Lot      SLPips         = 0.00030;           // 3 pips   TpFirstOrder   = 0.00100;           // 10 pips   TpSecondOrder  = 0.00150;           // 15 pips   StopLossBuy    = Low[2] -...
Hi , I'm new to your forum and I need help. Sorry if I speak and writeEnglish a little  I'm running de backtest with metatrader 4 but the values I get during the tests are different from those in real time. A very competent friend told me that if I use indicators with shift = 0 surely all the...
Hello, is it possible to make MT4 play a sound when Trend Direction and Force reaches the value 1 or -1? Not a regular alert pop-up window, only a sound alert every time the indicator reaches the value 1 or -, before the close of the candle, each time. Just like this indicator, BolliToucher make a...
Hi, I am trying to put together a simple EA to give me the price in relation to the EMAs on multiple timeframes. I dont seem to get the color right. it is always coming out as clrBlack //// Start functiondouble   ema5m1, ema5m5, ema5m15, ema5m30,         ema8m1, ema8m5, ema8m15, ema8m30;...
Could anyone help and teach me how to arrange back "standard",charts,line studies and timeframe like beginning download.i was accidentally drag out form the row
  Play - VSA/PSVRA  (6)
I start my new topic about VSA/PVSRA. I play red or green. Very easy It's my view EURJPY Monthly I use templates from https://www.forexfactory.com/showthread.php?t=114792
Hello What can I do to get the price of a moving moving average now? I visited but unfortunately I did not find
need advice on above error. what the is this error
  TMA Bands  (5)
Does anyone have a TMA Bands indicator that work on MT4? Thanks
  error code 131  (5)
I am so tired of strategy tester  error code 131 iv read too many topics which almost says it is du to wrong trade volume which could be fixed by normalizing the order's lot iv do that but fails tooooo!! finally i found strange case that there was a ticket with no order matching on chart ,but how to...
How do I find "enable checkbox " so that I may enter trades
I followed the instructions on how to download mta4/5 to mac laptop and it does not work. this instruction seems are outdated. Anyone know how to install mta 4/5 to mac laptop? I need some help. It is so complicated.
I should do a backtest with absolutely reliable data. What do you recommend me  I have tried with the historical data of Metarader of TickStory and Tick Downloader but I have always obtained very different results and different from the real ones of the last month. Thank you Maurizio
i wrote this code & its work but just one problem: some time it send 2 or 3 or more order like order closed. i want just send 1 thanks for helping void openorderagain()  {    for(int d = OrdersHistoryTotal() - 1; d >= 0; d--)      {        OrderSelect(d,SELECT_BY_POS...
How can I program triggering a key press/event? For the following use case: Normally one can zoom with the "+" and "-" keys, but I would like to zoom with "q" and "r" and my idea is when "q" is pressed to trigger pressing the "+" key. Or are there better ideas how to create this use case?
Dear Everyone! i wrote a little script (only to test if EA would've worked or not in the past) which SHOULD do the following: on HOURLY frame (any chart is okay but i tested it mainly on EURUSD) the script calculate from 522 candles and at every candle opens a long trade which has a tp and sl same...
I want to start the calculation of ShiftTime from spesific datetime in the future for BeginTime and skip calculation in current time before BeginTime (return nothing). datetime BeginTime = D'2018.09.01 00:00'; datetime ShiftTime = iTime(NULL, PERIOD_MN1, 1); I try this code, is it correct? int...
Hello, I need to calculate the difference in pips of two values. e.g. // some price double var1 = 1. 3574 ; // current price double cprice = Close[0]; How to calculate the difference of pips in these variables, considering the decimal places used by different brokers. Thanks in advance.
Hi  I want writing a martingle EA code How I can select the biggest lot position for *2 for new position? Please write sample code
double DR[260]; for(j=1; j<=259; j++)   {   DR[j]=Close[j]-Open[j];    Sum=Sum+DR[j];   Count++;   } In the above code, to the best of my knowledge, the loop should run for 259 iterations and therefore the array 'DR' would require 259 elements for the values to be stored. However if I set 'DR' to...
Hi everyone, Troubleshooting my EA at the moment and have had some problems with a particular 'if' condition not being activated. I suspect the issue is an improper calculation from the ICustom code that comes before or the way time is expressed as a string "..." ICustom code (the value of 1000 is...