MQL4 and MetaTrader 4 - page 1038

[Deleted]
Dear friends, I try to make a code (a function), to close orders following all conditions described in the code below (with all "if's"). BUT it doesn't work. It wouldn't select any order, and returns the Error 4105 (No order selected). In the trading pool are existing many executed and pending...
[Deleted]
  Dear metaquotes  (2)
Ive got an idea that could enable automated trading on your mobile app. Instead of expert advisors this system would implement an inbuilt system in your mobile apps that simply compares indicator values then sends trade signals without the user having to be a programmer. e.g. if MA crosses price...
Running iMA with a TF of 60 min. on 15 min chart, something seemed not right . Plot values returned from it and values were scattered all over the chart. Changed TF of chart to 60 mins, agreeing with value passed to iMA and dots were right on the iMA. Plotted one of the values from the 15min chart...
  ea listings  (7)
ive just tried to add my EA on the EA code list but it is in my own list but has not come up on the main exspert adviser list can some one tell me if there is a delay as i read that it has to be proof read
[Deleted]
  can someone help with this?  (19   1 2)
I wanted to code, when time = 6am, I coded it as "if (Time[]= datetime(6:00))" but it gives tons of error. If i add in a ( in front, the errors reduced to '(' - variable expected. to me, the ( and ) are balanced; but why do I keep having such errors? hope someone can help. Thanks.!
[Deleted]
Hi, when I place an order I tend to then immediately modify it by the same number of pips each time for stop loss and take profit. Is there a way this can be done automatically so the parameters on in place as soon as I place the order. Thanks
[Deleted]
Hi all, can u please help me with my problem? I read all lines from csv file to array. Problem is that when i read the last line all array lines change with this line. void ReadFile() {  int cmd = 0;  string str = "";  int handle=FileOpen("TradeCopy.csv",FILE_READ|FILE_CSV);  if (handle>0)...
[Deleted]
Dear Friends, in my EA I am using this command: order_ticket = OrderSend(symbol_to_trade, trade_direction, order_size_in_lots, price, Slippage, StopLoss, ProfitTarget, order_comment, MAGIC_NUMBER, 0, order_color); I was expecting that after placing the order there would be a Green or Red arrow...
Hi coders, Regarding OrderSend and this documenatation https://docs.mql4.com/trading/OrderSend I see in many EA's and tutorials including the documentation what appears to be a declaration and initialization of the variable ticket=OrderSend I have been using this syntax as shown in the...
[Deleted]
  EA pirat  (1)
How to have EA pirat ?
is there this kind function that i can get millseconds not like timelocal() and timecunrent() only get seconds .
[Deleted]
Hi, Does anybody know how to stop the pop up box asking if I would like the following program to make changes to my computer? I click yes and it use to go away but now just keeps popping up every 10 seconds or so. So can anyone give me any advice to cure this please?
Hello everyone, I am putting together a strategy and I want to use previous candle highs or lows as a final filter for entry For example if conditions A, B and C are satisfied at bar close, enter only if the price is above (for long trades) or moves above the last (specified number of candles),...
Hi guys, I've a small problem in coding in script, the code generates a report and keeps the required rows. i would like to display the total traded lots ..
How do I enter a comment on a manual trade executed through the keyboard directly on the platform so it will show up on the terminal? I want to document the particular method per trade that I enter manually. Thanks.
New article New Article Publishing System at the MQL5.community is published at mql5.com: We present you a new article publishing system at the MQL5.community. In the new system, we have tried to make the whole process of article writing clear and comfortable by breaking it into several steps. At...
Hello forum, I like trading a market where the main day session is far more meaningful when it comes to determining pivot levels, than using the entire 24 hour market period. That is, I always manually calculate pivot levels based on previous day session open,high, low, close etc Just wondering if...
[Deleted]
  louboutin pumps  (1)
I ample that if there were any flaws in cossack uppers (a primary activate of blisters).men louboutin sneakers No abruptness there: The those at Teva acclimated their Christian Pumps accomplished sandals to your basal from that abreast eliminates balance akin in my new Teva Challenger boots, this...
New article Kernel Density Estimation of the Unknown Probability Density Function is published at mql5.com: The article deals with the creation of a program allowing to estimate the kernel density of the unknown probability density function. Kernel Density Estimation method has been chosen for...
Hi there =) I am looking for a broker offering the widest variety of instruments :-) Which one would you recommend? I would like to trade... - Most uncorrelated currency pairs - Stock indexes from all the world - Sovereign bonds (Tbills and European debt) - Commodities: Gold, silver, copper, rice,...
Dear all, there is an indicator in mind which should draw lines in the chart window and also in a separate window (because line levels are totally different). In the chart window trigger lines should be drawn and in the separate window a conclusion of combinating the trigger lines should be drawn....
[Deleted]
Hello, Is there a script that put my EA off or on after reaching a specified margin niveau? Thanks
Hi, after sending a market order without stops I call this function to place SL and TP... both at once but failing that (in part or in full) the stops are to be placed in later passes until both SL and TP are in place. Problem is that I'm getting E 145, not many but enough to indicate there is a...
[Deleted]
  Problems with Time()  (78   1 2 3 4 5 ... 7 8)
Hello MQL4 Community! This is my first post. First, please not that I am not an MQL developer. I am a Trader, who uses a tool for helping me build EAs. That tool allows the use of some MQL structure, but it does not execute on explicit MQL functions. It simply takes MQL code, evaluates whether the
[Deleted]
Hello all, I'm trying like crazy to really understand the optimization process and have run into a stumbling block that is throwing me off. When i run a basic optimization i get pretty nice results, I'm only running a 3-4 month time period just so i can see if I've worked out a few bugs. Now i...
[Deleted]
My custom ExtMapBuffer[] is fluctuating between -ve and +ve regions, For each region, I need to get its MAX/MIN strokes - for the visible bars - in order to be used as EXIT for SELL/BUY positions. Any suggestions?
Dear all, I am looking for a guidance how to print MT4 historical charts "by one click". I need to print out 5M EURUSD chart since 1 January 2011 for manual backtesting. Could you please help me the easier way than single screenshots? Thank you a lot.
GetLastError() returns 0 which means NO ERROR. So, why does OrderSelect() failed? Did anyone encounter this problem?
i want to know 1/ if start function trigered by ticks, if we can get every ask/bid value from server, 2/ if get ask/bid value by markitinfo(symbol,mode_ask/bid) function,is it same by use ask/bid directly, is there some value missing ?,and may it use more time to get the value,may it get...
Hello everyone, hope someone might help me to understand the meaning of "Lookback" and == I was looking at an example in the code base and this newbie is not familiar with these basics yet In this example: if(Close[i]>iMA(Symbol(),0,Lookback,0,MODE_SMA,PRICE_HIGH,i+1)) If the Lookback value was...