Hi guys, I've been messing around with the Camarilla Indicator and I wanted to get the main pivot values for my EA, can I use iCustom() for that? or should I just pass the code to the EA? but where exactly would I place it? I tried to place it on the onTick() but with a condition of only calculating
Hi everyone, I am trying to show arrow once the bearish pattern is found but my code is not giving me any error nor even it is showing anything on chart. Please read the below code and your help is very much appreciated. Many thanks
I want to copy an EA, change it and make another fairly similar EA. The EA uses an .mqh include. I open the include in Meta Editor. I press F7 (compile). No errors. I drag and copy it with another name. I open it in Meta Editor. I make NO CHANGES to it. No change whatsoever. It is an exact copy of
Hi Guys, Could anyone help, i can't seem to correctly balance the parentheses. Any help would be appreciated. thanks Tim int SmallSMA = 5 ; int BigSMA = 15 ; int BuyOrderNumber; int SellOrderNumber; #define MAGICSMA 202006 extern double TakeProfit = 500 ; extern double Lots = 0.01 ; extern double
Hi guys, I have an issue with my EA where it works fine on the back test, but goes completely berserk on the live. What happens is when I back test, the EA places a total of 269 trades right? With a win rate of just over 60%. But when I released the beast into the lives, it placed more than 40
hi i have the a custom indicator that shows some arrow and line some of them suppose be delete but they are there as i open the custom indicator setting and close it without any change in the input the chart goes to normal and unwanted object deleted how i can prevent that
I am trying to do something along the lines of: If( *variable changes* ){ Buy=true; } I am pretty sure this would involve some type of loop, but I cannot seem to get it to work without doing something more complicated that involves multiple variables. Is there a simple way to do this
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
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

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.