MQL4 and MetaTrader 4 - page 286

  Needs a little tweaking  (171   1 2 3 4 5 ... 17 18)
Hi all, I need your little help in fixing the manual EA......... Losses and profits are not being set and trawl is not being set //+------------------------------------------------------------------+ //| InstantExecution.mq4 | //|
I have a leader-board style indicator that shows the most profitable comments from order history. The problem is if there's a tie it overwrites one of the values instead of showing both tied comments in order. This is how it looks normally. This is after I tried to fix it. int OnCalculate ( const
Hi everyone I modified MT4's official DMI+ADX indicator( https://www.mql5.com/en/code/7955 ) to make it same as other other platforms. The change is, MT4 calculates the EMA of (±DM/TrueRange) for ±DI while my version is to calculate EMA of ±DM and TrueRange separately then divide them. The ADX part
Hello Everyone. Please can anyone help to add sound and notification alert to this indicator...really would appreciate it
Hi, I would like to add a sound alert to this mq4 indicator(it seems very simple to get it done but I am really not good at even the basic coding), is there anyone who could help me, please? thanks in advance! yours, shunfengcn
Hi All, Hopefully, someone can help me with the below. I want to check if a condition remains true for a given number of bars. Specifically, I want a MA to keep growing for at least 10 bars, after having crossed a slower MA. If the condition is not met, I want the FOR loop to restart from 0. This is
I have read and tried every forum post about refreshing/updating charts on new bar.  I can't get any of them to work, even those that seem to be working for others.  For example the following two versions of the same one, both placed within start().  What am I doing wrong?!  Edit:  I also tried it...
hi guys i have this script //+------------------------------------------------------------------+ //| | //| | //| |
Dear All, I trying to write a code to Trail Stop Loss. ///////////////////////////////Trailing Stoploss////////////////////////////////////////////////// if ( OrdersTotal () >= 1 && startModify) { if ( OrderSelect ( 0 ,SELECT_BY_POS,MODE_TRADES)) { double currentPrice = 0 ;
Hi everyone, very new to mql4. Hope someone here can help me out. I want to create an ea that measure the highest and lowest price within a specific time period every single day. For example from 8am to 12:00. I want to use the high and the low within this period to set pending buy/sell-stop orders
Hi all, I have several charts open, each with the same Expert Advisor. I am having trouble running 5 of them simultaneously. For example, when I close a EURUSD chart , another trade takes place from the same ea but on a different chart say the CADJPY. Its as if the ea system is running them one
Hello all, if(id==CHARTEVENT_KEYDOWN) { if (CharToStr(lparam)=="1") {--- I made this way and it works, how can I catch a "11" per example? Thank you
Hi I'm new to trading and MT4 and I'm trying to find a good Camarilla Pivot Indicator. I got a bit lost in the Indicator market an I'm unsure how to find a good one that works well with the current version of MT4. Any suggestions
Hi Guys, Im trying to create a EA that trades moving averages. I can enter orders but not close. Can anyone help? My code is : attached
MetaTrader4 v4.00 Build 1260 Tested on MetaQuotes Data from 2020.06.15 to 2020.06.16 on EURUSD M1 Using a For Loop Operator and ObjectCreate(), we create a VLine the first time a candle has had a higher low and a higher high than iBar1 (last finished candle). Method 1 doesn't work even though it
double Close[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ nt OnCalculate(const int rates_total, const int prev_calculated
  Futures volume indicator for MT4  (93   1 2 3 4 5 ... 9 10)
Published a futures volume indicator in codebase. https://www.mql5.com/ru/code/10978 - script for uploading history of traded CME futures volumes https://www.mql5.com/ru/code/10979 - advisor to record volumes in a file https://www.mql5.com/ru/code/10980 - the futures volumes indicator. There was a
int buyticket = OrderSend ( Symbol (), OP_BUY, (AccountBalance() 1 / 100 )/( NormalizeDouble ((Ask-StopLoss* Point ), Digits )), Ask, 3 , StopLoss, NULL , NULL , 0 , 0 , Green
Good morning all, I have some indicators that generate an alert at the close of a bar, they generate a symbol on the chart and they generate an alert in the alertbox. The indicators work fine, except for the alert in the alertbox, some do appear and some don't. I have 10 charts active and they are
I am trying to make instead of drawing lines draw a rectangle thanks who can help me //+------------------------------------------------------------------+ //| MU.mq4 | //| Copyright © 2020 | //|
HI, I have been trying to put together my first self made EA I ahve been able to solve the 1st issue with stochastic now its the candle wick length. I want to instruct the EA to only take trades when the upper wick is greater than or equal to 20pips for a sell and the lower wick is greater than or
Hi, how are you ? A few days ago I published this subject, but I did not get answers that would help me. Then I made a script that gets the highest price all day and also the lowest, showing the information in message boxes. But I also want to get the opening price of the 0 hours and the closing...
hi everyone i made a custom indicator have some label rectangular sometimes they turns black but i checked my code and i never used black color for any object sometimes if i change time frame the back to normal color i put in the code
Can anyone helps me , I have updated windows 10 and now my MT4 platform is not getting installed
Hello guys. One part of my EA requires to compare the ATR between different pairs when the number of pending orders is grater than 2 and delete the order with the smallest ART value. Any ideas on how to accomplish this? Below is the part when I check for the total of BUYSTOP/SELLSTOP (pending)
hello, i have a windows 10 computer and sometimes when i open chart and change the candle time its show me a white screen and not the chart. someone can help me to know why its happend ? thank you
  xb4d indicator  (2)
hi i use xb4d indicator for my ea & i use beffer 0 >0 for "buy" and buffer0<0 'sell' like: if ( iCustom ( NULL , 0 , "xb4d" , 50 , 0 , 0 )> 0 ) return ( "buy" ); else if ( iCustom ( NULL , 0 , "xb4d" , 50 , 0 , 0 )< 0 ) return ( "sell" ); but in this coding ea send "buy"
Hi all, I have the candlestick pattern indicator that I want to use in my EA. This indicator will alert me if there's a candlestick pattern that occur on the chart. I tried to use function below to retrieve it and I understand that the function is not working because iCustom return value is a double
  EA skips trades  (7)
Hi, Need help explaining why my EA skips trades when running on live account. When backtesting the same period, it is clear that certain trades are not taken when trading live. Does anyone know why this might happen? To be clear, the parameters are the same. Does anyone have any tips or pointers as
Hello guys, Just wondering is there anywhere that I can still download the original MT4 installer without all the broker stuff? A very clean version that used to be able to get it from the metaquotes website. And would you please provide the link if you can? Thank you