MQL4 and MetaTrader 4 - page 250

Hello guys, I would like to suggest you a new EA idea that will be helpful and needed by many traders. Please go through the following scenario: In my trading strategy I use an EA that helps me in my trading. But, from time to time I have to change the EA's settings from time to time in order to
Hello. I need help with a specific indicator in MetaTrader4. I do not believe it the Bollinger Band is programmed correctly. In fact I was scrolling on other indicators and noticed that some of them are not programmed correctly. Anyone know how I can fix this issue
hi, does any coders can help to add some buffers to this indicator? i need these buffers : Bulls1 Bears1 UpPer1 DnPer1 hope some one can help. thanks
Hello, I've been struggling with this for a quite a while, and I get some error that just don't make sense to me, Hopefully some of you pros can help me out and find what I'm missing. I want to assign the ticket number to each open order after removal and then also get the open price of the oldest
I have a problem with my expert, I created a very simple scalping to try but it doesn't work. very simple RSI> MACD = BUY / MACD> RSI = SELL. very simple just for testing, but it just makes me BUY in all cases in the test. what should I do? I put the code below, if I made any mistakes, I am learning
  .csv file error  (2)
why am I unable to obtain the exact value of timing? string sg02[ 2 ]; sg02[ 0 ] = StringSubstr ( _Symbol , 0 , 3 ); sg02[ 1 ] = StringSubstr ( _Symbol , 3 , 3 ); datetime Mesure = StringToTime ( TimeToString ( TimeCurrent (), TIME_DATE ) + " " + "09:00:00" ); for ( int i =
Hello guys I wrote an expert. But when I test it, the indicator changes in the tester strategy. What is the problem? *Please help me* Picture 1: *** Picture 2: ***
Hi. I have created an order with MT4 on Personal computer with the same account logged in the smartphone. When I want close this order inside smartphone I see this error: parameters not valid. Why
Hi. I have a code of close all order and I want, after close all, EA will stop for a certain period of time. someone help me? void CloseAllOrder() { int total = OrdersTotal(); for(int i=total-1;i>=0;i--) { if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) { if(OrderSymbol() == Symbol()) { int
Hi guys, In MQL4, how can i use OrderClose() for partial close? I use this code: ticket = OrderClose(OrderTicket(), lots/ 2 , Bid, Ask - Bid, NULL ); but doesn't work. Can you do an example for me, please Thanks. Marco
//Indicator Buffer 11 Cross_Top_Line TP2 if (High[i] >Buffer2[i]&& High[i+ 1 ]<Buffer2[i+ 1 ]) { Buffer11[i] = Buffer1[i]; ObjectSetText( "TP2Result" , NormalizeDouble (Buffer1[i],MarketInfo( Symbol (),MODE_DIGITS)), 9 , "Arial"
[Deleted]
  Exporting pivot point to excel  (33   1 2 3 4)
Hello friend, My English is not very good but I will try. I need to export the pivot point to excel CSV. Someone can help me? Thaks Dhylon Brazil
//---- #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Blue #property indicator_color2 Red #define SH_BUY 1 #define SH_SELL - 1 //---- Parâmetros de entrada extern bool SoundON= false ; extern int AllBars= 0 ;//Para quantos compassos contar. 0 -
hello dear traders i am so confused to find the right forex sessions starting time and ending time in 3 major sessions (tokyo,london and newyork) because some websites and indicators show different starting and ending times than other indicators and websites. for example right now we are in winter
this is my third time purchasing an indicator that won't download to my MT4 platform, the first two i purchased and downloaded a few days ago worked fine, however the rest are not working, please can this issue get sorted out ASAP
Hi everyone, I have downloaded this really useful EA from GitHub which sends MT4 updates to Telegram. However when I place a pending order it doesn't retrieve very much information. I managed to edit the code to include Price, TP and SL however I haven't been able to add OrderType. The original
Hey guys, I am fairly new to the MT4 and just recently started writing some code. With this code I am getting 4108 error with comment being invalid unknown ticket #.. for OrderModify, even with correct order id and so on.. I would very much appreciate any kind of help Thanks a lot if ( OrderSelect
Hi staff, How can I calculate the margin required for CFD GE30Dec20?. I make a script to write the “NormalizeDouble(MarketInfo(Symbol(),MODE_MARGINREQUIRED),2)” and (MarketInfo(Symbol(),MODE_LOTSIZE)*ask/AccountInfoInteger(ACCOUNT_LEVERAGE)) in a file. If I test my script on CFD GE30Dec20 chart I
void OnTick () { //--- if (!CheckIfOpenOrdersByMagicNumber(MN)) { int i = OrdersHistoryTotal(); int a = OrdersHistoryTotal() - 5 ; int b = OrdersHistoryTotal(); for (i = a;i<b;i++) { if ( OrderSelect (i,SELECT_BY_POS,MODE_HISTORY) == true && OrderMagicNumber() == MN
I was under the impression that I could create a variable from inside a for loop and then use that variable outside the loop. That can't be done, can it? I'm simply trying check every candle for certain conditions to be met and create a variable (or store that candle number or time) for use outside
I have a table indicator that shows whether there is a buy or a sell signal on the last bar based on a criteria that I coded, For some reason that I don't know the indicator shows correct signals when the market is closed or the pc isn't connected to the internet and when connected the indicator
I make a EA that use RSI filter for up and dwon trend . when filter show up signal only buy trade and vise versa. Problem is when buy orders open near end of uptrend ,big loss happen. How can know end of trend in this condition. Similar case also happen in all trend indicators. If use MA cross over
Hello Friends I am creating an EA based on Trending Strategy and it is working fine while in trend. However, when it reached divergence it start taking order most of which result in loss. any guide how to handle this, will highly appreciated or a recommended book to learn professional MQL4
I am trying to use this recently purchased tool and it is not working. I am getting several lines of errors. Can someone please assist me in resolving this. The errors are on the EURUSD chart. 2020.11.01 22:23:31.505 1970.01.01 00:00:00 Virtual Stops MT 4 inputs: ProfitType=0; Lot=0.1; Magic=113;
  Edit box on chart  (10)
Hi, I have created an indicator with displays and buttons that change variables, but now I want to create an edit button on the chart. I have managed to get the button on the chart, but I can't seem to figure out how to get the entry (number) to transfer to my variable. //=====================Input
Do you use the OrderClose() function to close buy stops and sell stops ?  if not is there another way or function to close buy stops and sell stops.
Like from one master account, be it real or demo. Trades to be duplicated to the subordinated accounts, but I am not looking to act as a signal provider . Alternatively, is there a way I can view different MT4 accounts at the same time? Thanks
Hello I want to know How can I get data from a time frame other than period setting in strategy tester (MT4),using the sample code below, I get zero results for op2 & EMA2 whenever I choose period setting other than M5 in strategy tester. any opinion on how can I fix it? void OnTick () { string
I'd like to add to the indexes of an array with a loop. I'm new to coding (not just mql4) so I'm not sure this is the best way to do this at all. What my goal is, is to use an array to look up a candle number. I'm counting every time the MACD line crosses over and counting those "events". I'm also
Why aren't the arrows being drawn/displayed on each candle's respective highs and/or lows