MQL4 and MetaTrader 4 - page 210

On my indicator that I am making data is only displayed for the most recent 50% or so (it varies) bars and then after that it does not display anymore data. Here's a picture showing what I mean https://imgur.com/a/NquoQLo . property indicator_separate_window #property indicator_buffers 1 #property
Hi friends, i have moving average 20 period. I want the have data of 5 period before but couldnt get the value. Are there any solution? //" -5 " seen on chart as a visual but EA doesnt see any value :( double ma20_5 () { double ma20_5= iMA ( _Symbol , _Period , 20 ,- 5 , MODE_EMA , PRICE_MEDIAN
  MT4 on 4k Monitor  (15   1 2)
Hi I bought a 4K monitor and am having trouble with the metatrader 4. The taskbar, the vertical bar prices, terminal, etc. appear with a very small font size. It is difficult to read. Can anyone help?
I think I know the answer, I though I would check with those that are more knowledgeable than me just in case someone has a good idea. I'm coding for an Indicator, I want to do something when a Trend Line has been moved by the user, ideally I want to only do the something when the TL has been...
hi guys I been having a problem regarding OrderOpenTime() function this ea runs only on 1 chart ***
  GRAAL is found. Chapter I prologue.  (382   1 2 3 4 5 ... 38 39)
Did you believe it??? ))) If you believe it's good, it means you are not lost and you haven't lost your inner faith that it really exists, as we know its power makes every trader motivate, dig, move forward. I want to give some context, it will be useful so How many people understand the word Grail
Hi all, i am newbie of Mql4, i am trying to write my own code, i want to leverage some result of default indicator, i tried to get them by my coding, but don't why doesn't work. I guess (rates_total) is the result of the indicator, so i created a variable for storage of result: int Awesome_result =
[Deleted]
I'm very happy by the existence of Period_Converter_Opt.mq4 on 'Period Converter Optimized' so that I'm able to convert into my own comfortable time frame. But recently, after my broker shifting the Daily opening time from GMT +4 (opened at 5 am EST) into GMT +3 (opens at 4 am EST)...
MQL4 Order Send Fine But Nothing Happen, No Order Send. Can be a latency problem? Hi All, this code sometimes return me nothing after having all condition met for open an order. No error, nothing. Is it possible that in some ms price changed and order automatically discarded? Thanks in advance, I
Hi, Can we use the standard library in script? I'm trying to create rectangle using script and the library but nothing happen. Got no problem using ObjectCreate. #property strict #include <ChartObjects\ChartObjectsShapes.mqh> CChartObjectRectangle try;
Hey everyone, Trailing Step only work from the client side as I have read. Is it possible to use a Trailing Stop with a VPS? Thanks, PiL
  old tick  (8)
Hi, what's means when "Old tick" appears on Diary?? thanks Bolla
Hello, how can I code 3 identical i-Regs with different settings? I tried: extern string i_Regr_1 = "---i-Regr_Settings" ; extern int degree_1 = 4 ; extern double kstd_1 = 2.0 ; extern int bars_1 = 120 ; extern int shift_1 = 0 ; extern string
  Ea testing  (1)
hello guys i created my Ea by FSB and i wantet to test it with mt4 but ive got this error : There were 1 passes done during optimization anyone can help? thank you
I am trying to copy a signal from a telegram forum that lists multiple TPs into my MT4 on iOS. There is a tutorial video where they place multiple trades for the same pair, each with one of the different TPs from the signal. When I try to do this each subsequent trade I place with a new TP
Hello Guys, i found the function StartScript to excute scrips over ea events this is the function :  #import "user32.dll" int RegisterWindowMessageA(string MessageName); int PostMessageA(int hwnd, int msg, int wparam, string Name); void keybd_event(int VirtualKey, int ScanCode, int Flags, int...
  Interesting and humorous  (2555   1 2 3 4 5 ... 255 256)
If a man doesn't take serious things seriously, he's a fool. If a man takes frivolous things seriously, he's a nerd. But when a person combines these two qualities, he's a humorist! *** The girl got tangled up in her purse and instead of a can of gas sprayed the maniac with Chanel. And screaming
hi, can somebody help me code trailing stop EA, the rule pic below thanks
Hi, I am unable to understand whats wrong with the code. HighestHigh & HighestOpen working , But lowestLow & LowestOpen for current day not working. int HighestHigh = iHighest ( _Symbol , _Period , MODE_HIGH ,Day(), 0 ); int HighestOpen = iHighest ( _Symbol , _Period , MODE_OPEN ,Day(), 0 ); int
void ATRTrailingStop() { double ATR = NormalizeDouble ( iATR ( Symbol (),ATRTRSPERIOD,ATR_Period, 0 )*Trailing_ATR_Multiplier, 3 ); RefreshRates(); for ( int i= OrdersTotal ()- 1 ; i>= 0 ;i--) { if ( OrderSelect (i,SELECT_BY_POS,MODE_TRADES)) if (OrderSymbol()== Symbol ())
Hello, I'm trying to access the data of customer indicators I have "Aroon Up&Dn" and "MCAD" and get its Data in an array to do some checks on it later. But I always get "Array out of range" error. Maybe that's because I'm attempting to access the data of an indicator buffer while its size has not
Hi guys, did anyone meet same situation like me i try to back test the EA which download from Market. it is free version. i have closed and restarted MT4,but its still not work.. was it restricted by the owner or? Thankssss so much~
Hello all; I am Looking for apartner to help me (eventually) create an EA. I have created a uniqueprofitable trading system, and have come to the end of how muchbetter I can make it. Unfortunately the 4 indicators that thesystem uses are not optimally coded to do exactly what I need them todo. To be...
[Deleted]
Hi! I'm looking at a lot of charts at the same time and it's so annoying that I can'tmake two tab rows in the bottom of the screen, but I have to scroll t the rightand to the left every time. Is there any solution that's more user friendly? Thankyou
[Deleted]
wanted to block this indicator to have id mt4 of mt4 but already tried everything I can not //------------------------------------------------------------------ #property copyright "<Deleted>" #property link " <Deleted> " #property description "OBS:LEI 184. Violar direitos de autor e os que lhe
I code an EA that use an indicator that I haven't source code of it, This indicator give signal by appearing arrows but I have a problem with this indicator, sometimes when I changed time frame and so EA reinitialized, I see that chart refresh and new arrows appeared and EA act as programmed, How...
Hi all i would like my ea to open trade/s in trend & close (As i have posted my code). The problem i don't want it to open anymore trades while trend is going in that direction. I would like to limit it, if there is a way to do this. #property copyright "Copyright 2021, MetaQuotes Software Corp."
needed_free_margin_for_one_lot = MarketInfo( Symbol() , MODE_MARGINREQUIRED) DOES THIS FUNCTION TAKE ACCOUNT THE SET LEVARAGE
Please Help I tried to make first EA. in onTick I can make BuyItNow or SellItOut run seperate is OK ! They make good result in M15 I want to change that if BuyItNow make profit < 0 then instant Call SellItOut to make lower risk. But It's not running SellItOut :'( Can someone please help, thank you
Hi friends, i wrote simple moving averege crossing buy/sell robot but StopLoss doesnt working. When mov20 cross up from mov50 it opens buy but it must be close order when ma20 croos ma50 to down. Please help this amateur coder :) //+------------------------------------------------------------------+