MQL4 and MetaTrader 4 - page 18

To post a new topic, please log in or register
I have a row of dynamic rectangle labels drawn on a chart as above - they change size with certain data that is generated by price which works fine. I would like to display their value by hovering the mouse above the label so I am using the 'ToolTip' function. ObjectSetString(0,rectname...
Hello All, I am have very basic programming skills in mql4 and I'd appreciate some help with the following code.  I'm trying to code a simple moving average that starts at daily open that has a period equal to the number of candles present on chart since the beginning of the current day (timeframe...
  mtf ichimuko (4)
hi, this indicator shows the result in 4-digits for all pairs in data window mt4. i want that it show 5-digits for 5-digit pairs and 3-digits for 3-digit pairs. can someone help me? http://forexmt4ea.com/ichimoku-mtf-indicator-mt4/
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...
  EAs' files (45   1 2 3 4 5)
All the EAs are in this section posted already. Each EA is having the thread. Name of this thread is the same with the name of EA. If you want to find Mandarine EA so you need to find the thread namely "Mandarine". I am posting something here to find it more quickly. But please all the question...
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?
I have a custom indicator that uses some buffers for calculations to create objects (horizontal lines in the indicator window).  I have used SetIndexBuffer(n,DRAW_NONE) and it all performs correctly.  But in the indicator's Properties menu under the 'Color' tab there is still the option to choose...
I am new to the platform and can figure out how to get open close high and low information on each candle on the charts. Sometimes a box appears with the info other times nothing I do brings it up. sometimes it will appear for every candle I put the cursor on and other times I'll get nothing. Not...
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 to...
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...
Anybody know how to fix a failed [Common error]? My EA did a sell trade which is successfull previously and now when it tries to place a sell trade again, it has a failed [Common error]. No problem with the buy order. I have search in the metaeditor documentation and this forum but it doesnt do much...
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
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
What code can accomplish importing the current bid and ask price of the currency pair that would be in the account base currency, and that would be used in the TICKVALUE calculation?   I ask because more and more brokers are prostituting MT4 data feed by not including incorrect values which the...
Hi friends I read the documentation about StopLevel and FreezeLevel, but for being confident about where to check StopLevel and FreezeLevel I decided to ask it from experts. I want to know whether I should use both -StopLevel and FreezeLevel- for all the following trade operations: OrderSend,...
need advice on above error. what the is this error
  Various (1123   1 2 3 4 5 ... 112 113)
In case some of you have been wondering what was the "wonder" indicator picture posted a couple of times in the digital filters thread, and, since rules for advanced elite section are a bit different : It was a MACD of a Hodrick-Prescott filter. One version of that indicator (Hodrick-Prescott...
  TMA Bands (5)
Does anyone have a TMA Bands indicator that work on MT4? Thanks
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?