MQL4 and MetaTrader 4 - page 196

I have a problem with Metatrader 4 1090 this week after upgrading Windows 10  Pro N with the latest version to fix the processor hardware bug recently discovered. My system is an intel Core i7 8 core Sandy Bridge mobile processor with clock speed of 2.2Ghz and 16Gb or RAM.  It is fairly old now but...
Something is off... I've tested my EA before successfully, but now it does not work. The value for the CCI is always "0". cci_long= iCCI ( ChartSymbol (),cci_timeframe[pos],cci_bars, 6 , 0 ); Print ( " CCI_long = " ,cci_long, " " , iCCI ( ChartSymbol (), PERIOD_M5 , 13 , 6 , 0 ), " "
I have a MA line, say 28 exp close, and I want to have some kind of "shadow" line that mimicks the exact same trajectory, but a certain number of PIPs or points or rather price figure above or below the main MA line. I've been thinking about it and I can't figure out how to do it. Someone help
I just wrote an indicator for a friend, which draws several TEXT objects near/at each Low[] of several bars, only on D1 chart. I also added a fixed "padding" to move those objects a tiny bit away from Low[] price. This indicator works fine for me. But my friend has a habit: he often opens a chart
I am working on a trade copier and sometimes the copier cant open, close or modify an order at all , and it throws an off quote error. whats the best approach to deal with this situation to make sure every order is executed on the client account? because I was thinking of sending the order again (if
Sorry for the weird post title , I dont really know what to call this it , looks like a curved progress bar or half pie chart but dont really know the name of this type of charts. Can someone please have a look at the attached image, I was hoping to draw something like this in an EA or indicator but
Hello, I have a Simple Question that may seem elementry to you. How do i wright a Line of code that shows me the Time of Opening of an Order? i know about the time Operators, but they all can return the time of a Bar, not time of an Order Opening. even when i use TimeCurrent() in the Function of
Dear all. How do I code if I don't want to make EA run on certain symbol? I took the code from other topic. Thanks in advanced. int OnInit () { // Check Licensing Restrictions if ( boolRestrictOnInit() ) return ( INIT_FAILED ); // ... return ( INIT_SUCCEEDED ); // Initialisation complete }
hi guys , i wrote an indicator, and when i use it in expert in strategy tester, it just comment me true valumes for only 5-6 candles. then it comment a fixed wrong value like 2147483647.00 void OnTick () { if ( NormalizeDouble (Volume[ 1 ], 0 )<= 200 && NormalizeDouble ( iCustom ( Symbol ()
I want to draw many horizontal lines across the chart and use them as some kind of grid. I want to have a certain distance between any two of them. That "gap size" has been determined by eye. I look at it and decide whether it's good or not. My first attempt at it was to divide the chart area into a
I am trying to find the correct code to display the Day and time Date & Time :"+TimeCurrent()+" Day: "+TimeDayOfWeek(Time[0]) It currently displays as Date & Time: 2021.09.07 13:50:40 Day: 2 What I want to do is: Date & Time: 7th Sep 2021 13:50 Day: Tue Or something similar. Any guidance would be
good evening people, i was wondering if i could get some advice off anybody regarding my code (see below) so one of the basic but important factors in my strategy is the EMAs (50 &200) when 50>200 buy and when 200>50 sell. i was wondering how i could exit a buy trade if the EMAs switch over while i
Can anyone help me that in mql4 if I test an expert advisor and place an indicator on the tester chart, can I achieve the balance and equity values of the tester from that indicator? On real chart it works but during the backtest it gets the live balance and equity.(I tried with AccountBalance() and
Hi there! I am a newbie in MQL4 although I have managed to do some ea or indicator, now I need to make a "Panel of multiple Fibos", this panel has several buttons to draw different fibos of different colors and another button to clean the chat. In principle and taking advantage of the original Mql4
Hi there, i am coding the EA for buy and sell but in somehow, my EA only open the buy order, please help me a check :( . This was really weird :( //+------------------------------------------------------------------+ //| Scalping System.mq4 | //|
I have a special equirement for an EA I am building I want to read an email subject.. this is for a signal.. so I can open a trade automatically
void OnChartEvent ( const int id, const long &lparam, const double &dparam, const string &sparam) { string lastmove; if (id== CHARTEVENT_CLICK && lastmove!= "ctrl" ) { Print ( "clicked" ); lastmove="clicked"; } if (id==
  strategy tester  (2)
hi guys , i tried to test my strategy, in strategy tester from 1/5/2021 until 16/8/2021 but it returns me results of 3/5/2021 to 14/5/2021 ! whats the problem? there isnt any error, and also i need to test my strategy from 1/1/2020 , but there isnt data, what i should to do
Hello I use a number of EAs which have been generated using software for non programmers. A feature of this software is that all outputted EAs are coded to only trade one at a time, instead of trading all potential set ups. I am not a programmer but I imagine the code instructing the EA to only
Hi Everyone! I'm trying to make my EA checking order exist or not by order's ticket as the code below: bool orderexist = false ; // Global variable bool BotStatus = true ; // Global variable void OnTick () { if (BotStatus) { if (CheckOrderExist( "orders.csv" , 351851389 )) printf
  Restoring MT4 terminal  (16   1 2)
Hi fellow members/experts Is there a way i can get back my previous mt4 terminal setting (opened charts) A while ago terminal was working fine with all opened charts (including all indicators applied on) but due to power failure when restarted all gone blank even not a single chart,means removed all
  ARROW  (2)
HELLO How can I add an ARROW when the price breakout the hidhest asian session and the lowest? this is my code but it does not work well, it shows many ARROW #property copyright "test" #property link "" #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1
Reading through the various threads on the forum, the idea for such a list was suggested . Number one on my list is Satop! Everyone who wants to have their own EA, I guarantee that your wishes will be granted. I also propose to do a vote among the pros to add to the white list of pros people from
Can anyone advise how to make input parameters by iCustom? Please see the attached picture. Is this correct? double indicator = iCustom(NULL,0,"indicator name",0,"Alert name",false,false,false,false,"alert.wav",0,1);
Hello I am trying to read the text from the chart but there is something wrong The Arrow indicator draw arrows and also draw a text on the candle which has the arrow , i am trying to read that text on the arrow candle but i have been struggling for last 3 hours and couldn't get it to work for some
[Deleted]
  Terminal problem  (3)
I had a bug in my code and when I used the bugged indicator, it froze my laptop. I restarted the computer and fixed the bug but I am unable to open up the mt4 terminal but I can open up all other apps on my laptop. How do I get mt4 terminal to open again?
Hi all I have a problem that I struggle with for the last two days with my trailing stop - it's not working and I can't figure why. I'll appreciate any help, PLEASE. This is my trailing stop code part : extern bool Use_TrailingStop= true ; extern double StartTrailingAt=
I was trying some code in the MQL4 backtesting application. This code will not be ran outside of this "backtesting." Within this code I am using several ArrayResize calls with a large 'new_size' values. I am not using multiple ArrayResize calls because there are many cases where the arrays' size
Hi If you want a constant look back like MA it's writing is simple by: limit= rates_total - 1 - MathMax (prev_calculated, lookback) But i need a variable look back that is calulated in the last OnCalulate run. I tried two strategies: 1. Defining a variable look back using "While" instead of "For"
I know when you are creating a custom indicator , you can create a truly dynamic array to operate as a buffer where you are don't ever have to state its size. I was wondering if the same this is possible when creating EAs, currently I get the obvious out of range error with the code below. Example