MQL4 and MetaTrader 4 - page 183

Have a nice day. I use the Dialog object of the CAppDialog class in the indicator and I can minimize it by the minimize button, but when switching the instrument or changing the time frame, it is automatically maximized again. I need it to stay minimized when switching instr. or TF. Does anyone know
[Deleted]
I am looking for a method to get the position of highest or lowest point of Indicator(MACD,etc) from a period(for example from 0 to 30 bars), when i found out the point of a indicator from them,i also want to know the number of the bar it corresponded. it's so kind of you telling me how to find...
  EA on offline charts  (11   1 2)
Hi everyone, I'm currently using a renko chart generator to generate a 4M offline timeframe. I recently had some trouble coding (and using) a certain indicator on this offline chart; It seemed that for every new tick the IndicatorCounted() value was 0. My question: the next few days I'm going to...
int oldSellEntry = 0 ; if ( OrderSend ( _Symbol ,OP_SELLLIMIT , NormalizeDouble ( sellLot , 2 ), ighest1, 3 , SL_TMP, TP_TMP, "1" , 0 , 0 ,Red)) { oldSellEntry = 555 ; } print (oldSellEntry); // Why output is 555 even if no trade is open? How to make sure Ordersend() successful before
Hello, Can anyone please tell me how to create a Label Rectangle that acts like a window ? Meaning that it can be dragged when it is touched (preferably in the top part of it like in a normal window) The normal Rectangle label or Rectangle don't have the ability to be dragged, but for the rectangle...
  about last order  (2)
can some one slove this cod plz about last order double LastOrderInfoSell( string Info, int type =- 1 ) { for ( int i = OrdersTotal ()- 1 ; i>= 0 ;i--) { if ( OrderSelect (i,SELECT_BY_POS,MODE_TRADES)) if (OrderSymbol()== Symbol () && OrderMagicNumber()==MagicNumber && (OrderType()==type
Hi, I want to do debugging on my EA. I only have data till last 2020. Is there a way to use date and use it on shift (on the indicator)
I want to check the close price of Last Friday (time xxxxxxx) For example, now Thirthday and 14:00 I want to know the close price of 16:00 on Last Friday. Below is basic code but I am not sure how to know the time gap between current xxxx and Last Friday time xxxxx. datetime when = ...; int
Hi There, I would like to know were I have gone wrong. Attached below is the code. It is giving the error message FUNCTIONDEFINITION UNEXPECTED. void Ontick() { double K_Line= iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_MAIN,1); double D_Line=
I have tried setting up trade alerts (under TOOLS > Options) via the email option in the mt4 platform on my local PC, (which I filled out correctly), however I always get error message in journal (cannot connect to server ). Any advice welcomed
Hi, Can someone help me how I use value 1 and value 2 from QQE indicator in an ea with iCustom? I want to use it as exit trade in ea. V1=value1 and V2=value2 , the P= previous candle because I want to make a crossover of value1 and value 2 Did is what I did: double TrLevelSlow; double RsiMa;
Hi, Can someone help me how I use value 1 and value 2 from QQE indicator in an ea with iCustom? I want to use it as exit trade in ea. V1=value1 and V2=value2 , the P= previous candle because I want to make a crossover of value1 and value 2 Did is what I did: double TrLevelSlow; double RsiMa;
Hello I have an EA running on 8 charts (indices). All works okay on my desktop MT4. All works okay on my demo account MQL5 VPS too. However, when I run it on the MQL5 VPS on my real account, no trades are placed for symbols in Euro currency. The broker is FXCM. My account is GBP. The EA does
Hello - I'm hoping someone can help me. I've rented a new virtual desktop to run my MT4 trading platform. I have a stupid problem where when I open the strategy test window within MT4 it is very small and I just can't read the text. All the other windows are fine i.e. market watch, terminal
string eeeee= "" ; //8. TRADING TIME FILTER string start_time = "07:15" ; //Disable time end string end_time = "05:50" ; //Disable time start ------------------------------------------------------------------------- bool time_check(){ bool in_range=( TimeCurrent ()<StrToTime(end_time)||
I am currently making an EA based off my own strategy, in my strategy I have an indicator called the RSO. I can get two signals from it, one from the RSO line itself but the other is from adding a separate SMA to the RSO and looking for a cross (adding the SMA to the first indicators data). How do I
Good evening. I'm working on a project with a lot of files. As I didn't know exactly what the best was is to pass something to other files I tought I ask the communtity how they do it. What ist the most beautiful/common way to solve this: So in this example there is a Main file in wich 3 other files
I want to upload my Expert Advisor in the market section, but it gives an error I also disabled all the expert advisor restrictions and set the trading lot to 0.01 but it gives error131 again please help me Thank you
Hi, I need a function where I can find out the OrderTicket() or OrderOpenPrice() of the order, that is the most closet to the current price-level (e.g. price-level = (Ask+Bid/2) ) I'm currently creating a kind of Grid-Trader thanks for any help or hint
The graphical systems should be compatible in large amount as they share the same resources, libraries of the later should be then available to the former. There are more functions in the later and primitives are differents so the question remains open. I see no readon why thet are not compatibles
well I don't know Why, but after getting acquainted with this topic & some of my tests, that I will not reproduce now, - I found that such code ONLY template < typename T, typename U, typename T0> void PrintArrObj( const T &arrobj0) { T arrobj= (T) arrobj0; int sz=arrobj.Total(); int i= 0 ;
Hi everyone, I cannot submit EA to the Market successfully, I stuck with the error no trading operator. In my source code will check whether custom indicator exist, if no it will break the program on the onTick() method. Everything working find in my PC for both scenario, i.e, there is custom
Hello, I hope this is not a duplicate topic, and if it is please direct me. I have been writing a code to identify the highest day of the previous week (easy stuff), and the highest 4HR candle of the highest day of the previous week. Not so easy since I have to identify and hold the highest 4HR
Hi all, I am having issues with indicator not loading on chart. They are in the right data folder as ex4 files. When I drag the indicator onto a chart it shows in the Journal tab that it uploaded successfully, but as soon as I click on the OK button on the indicator window, the indicator is
I noticed that when I try to test my EA with a specified use date, it cannot doesn't test all the use date. For example, I specify to test from 2017.01.01 - 2021.10.10 using the 5 minute period. It would then skip 2017-2020 and begin testing in 2021. Have you faced this before & do you know a way
I purchased and successfully activated an MT4 indicator via the marketplace today BUT when I drag the indicator to a chart it will not load on the chart(s). I tested other indicators I purchased previously in the same manner and they all load with no problem. Can you help please
[Deleted]
Hello everyone ! I have a personnal VantageFX account : It's logged on my phone, my computer, and a friend's phone. My friend manages my account : He opens and closes trades. I want to receive a notification each time a trade is opened or closed. I've enabled Push Notifications and Notify of trade
double highestPrice = iHigh ( Symbol (), 0 , iHighest ( NULL , 0 , MODE_HIGH , 1900 , 2 )); How to get what is the datetime of the iHigh in format YYYY-mm-dd 03:12:01
So every time i try to backtest my code error 138 comes up and no trades are placed, no matter how low the timeframe. Would appreciate any feedback. #property version "1.00" #property strict #property show_inputs #include <customfunctions01.mqh> int rsiPeriod = 7; input double riskPerTrade = 0.01;
so i accidentally uploaded this to mql5, hopefully i can get a bit luckier here. Any help as to why no trades are being placed (no matter how low the time frame) would be appreciated. #property version "1.00" #property strict #property show_inputs #include <customfunctions01.mqh> int rsiPeriod =