MQL4 and MetaTrader 4 - page 451

Hi there, Following a similar pattern I've used in an EA, I have the following code at the top of an Indicator .mq4 file: ... //--- #include <gwDeltaCache.mqh> //--- CDeltaCache *DeltaCache; bool isInitialLoad= true ; ... However, when I do something like change the timeframe, OnDeinit() is called
hi everone i hope you have nice day i write code in mql4 that modify take profit with + 3pip for every 5 pip up for bay or down for sell the problem is that modify order work once  and give me 130 error -------""2018.04.24 23:57:30.751    2018.03.13 00:00:00  test v1.5 EURUSD,H1: OrderModify error...
Hello,  I have an indicator,it is very helpfull, but if creates alerts all the time. And this is spamming my mailbox. I want only alerts on the selected timeframes. So when I have the indicator on a 4 H chart then it should create an alerts every 4 hours etc..  Can anybody help me with this? I tried...
#property copyright "Ch Le" // External variables extern double Lots = 0.01 ; extern double StopLoss = 300 ; extern double TakeProfit = 600 ; extern int Slip = 3 ; extern int MagicNumber = 123 ; // Global variables double M15Ema5, M15Ema20,H1Ema5,H1Ema20,H1Ema100; int
Hi, i have a question. I have to do this  If a check shows that there are insufficient funds to perform a trade operation, it is necessary to output an error message to the log instead of calling the OrderSend() function. So i use that code from here https://www.mql5...
I have problem with drawing line in custom indicator at the calculation event.  If i draw a line in only just bar[1] = 20, bar[2] = 10 and [bar[3] = 11, the result is line at bar[0] and other bar up to rates_total is set to 0.0. double bar[]; //it's indicator buffer at calculation event:  bar[1] =...
I have problem with drawing line in custom indicator at the calculation event.  If i draw a line in only just bar[1] = 20, bar[2] = 10 and [bar[3] = 11, the result is line at bar[0] and other bar up to rates_total is set to 0.0. double bar[]; //it's indicator buffer at calculation event:  bar[1] =...
Hi everybody, I'm wondering if there is a way to convert DT oscillator (attached) to a function, such as this: double calculateDT(int timeframe, int PeriodRSI, int PeriodStoch,int PeriodSK, int PeriodSD,int MAMode,int line,int shift) { // //here is the codes // } here is the main "start" section...
Hi everybody, Please note that I have a great work coded in MT4. But I have this puzzle of the error 4108 as you can see below   This error I have searched everywhere in this forum and others' forums but I found no one have totally got the final answer and was happy! all people says to don't select...
hello, I have installed mt4 on my google drive in portable mode, so I can use it on my desktop and laptop{, not at the same time}. now the problem with my mt4 is... 1} I open mt4 in desktop, enter my login details and it works fine. after this I close my mt4, give some time to update all files to
I am trying to connect MT4 to SQL Server according to the following link (https://www.mql5.com/en/articles/1533). When I try to compile a basic script to import the dll, I get 'msado15.dll' - #import was not closed. #property copyright "" #property link "" #property version "1.00" #property
I am trying to retrieve the value of the highest point and lowest point of a moving average over the last 20 bars. Simple, if this was an excel spreadsheet . This is as close as I have been able to get. No Errors, but when MaxValue> MinValue is used as a BUY or SELL condition, it prevents all
I'm having a difficult time figuring out why my iCustom lines are only using one value and drawing straight across the window. From everything I can tell it should be changing on each candle. Could someone please help me identify the problem that is causing my lines to only use one value? I dont...
There are 20 graphics. how can i go to this chart  13 Chart. (Default) example long id=ChartID();        Alert("This System is BUY Signals Chart ID: "+ID);     // Show This Chart  from ID=     //  ChartSymbol(131690754453499446)
[Deleted]
  DAX 30 m1 data needed  (15   1 2)
Hi, I'm hoping that someone will be able to help me. I need dax30 m1 data for back testing purposes. Is there anybody that has been trading with a mt4 IG index platform for longer than 12 months who could supply me this historical data. New accounts only have a couple of months. I may be willing to...
  Android
How do i create a different line in my Moving Average in my Android phone
hello every one,               I need help in fixing the buy on an EA Which is seen during compiling. I'm alos looking to add the following details to the EA. 1. an autoclick function to the EA allowing its trades to be displayed as manual at the brokers End, so that the EA will execute BUY...
Is there any way to close all buy/sell trades at once? There is a "Multiple Close By" feature in N2Trader which can close all buys/sells alternatively until all trades be closed or just one trade (which there are no pair trade for closing it) remains: At first, i thought N2Trader uses the "Close...
Hi MT4 has been updated automatically by Google Play Since new update Built 1114 (19 apr 2018), alerts messages sent via MetaQuotesID are sometimes late, sometime not received anymore. I cannot even rollback MT4 android
  oldest order's profits  (18   1 2)
Is this the right way to get the oldest order's profits from too many opened orders thanks for help//+------------------------------------------------------------------+//|                   oldest order...
Dear how to count only open orders like OP_BUY and OP_SELL only. i like to compare order count and after i want to execute the program. i made the function as below. int totalordercount() { int total=0; for(int i=0;i<=OrdersTotal();i++) { OrderSelect(i,SELECT_BY_POS,MODE_TRADES); {...
Hi all together - I do need an Custom Code for opening of the trades. I have created an EA with EABuilder for MT4 First trade 0.01 Next     0.02 Next    0.03 Next    0.05 Next    0.08 Next    0.13 Next    0.21 Next    0.34 Next    0.55 Next    0.89 Maximum is 10 Trades And after closing of all...
Hi I've found that there can be gaps in Heiken Ashi calculations when presented in MTF. But not when heiken ashi is called from another indicator. Does this make sense? A Heiken Ashi calculation uses the following formula   double haClose=(Open[pos]+High[pos]+Low[pos]+Close[pos])/4;  double...
[Deleted]
Hi all, I am new to trading and MT4 so please forgive the new-ness. I am making it a habit of printing charts and put my comments on them but have been encountering problems printing them. Here's what happens: 1. Print preview is good. 2. It's only when I click "print", which whether printed as soft...
Hi Experts, What do you guys think of the strategy tester report of the EA I coded? Is it worth trying live? Regards, Tim
Hello, Here is my goal : Immediatly hide/show Moving Averages after click on button. But, now, it always waits a tick, as the function is placed in "OnCalculate". How can I do it please ? Here is my code : int OnInit(){    TLR_Moving_Averages_Settings();...
I've been using Bahnschrift font for an EA on Windows 10.  Tested it on other OS, and found that Bahnschrift font is not working properly on Windows 7, and it reverts to Arial.  So I tried the following: #resource "\\Files\\bahn_bold.ttf"string bahn_bold = "::Files\\bahn_bold.ttf";Void...
Hello i got an error like this   could anyone please help me to figure out how to fixed it?.. this is my stoploss code : double getOrderStopLoss(int orderMagicNumber, int orderType, double price) {   double value = 0;   if(orderMagicNumber == 700) {      if ((Bars>20)&&(sqLowest(Symbol(), 0, 20 , 2)...
please help me with this code I need to use v keys to right: (AaBb) // First need to check if VK_CAPITAL is ON? keybd_event(VK_SHIFT, 0, KEYEVENTF_EXTENDEDKEY, 0);// Press Shift Key keybd_event(VK_A, 0, WM_COMMAND, 0); // Press A Key (To Right A not a) keybd_event(VK_SHIFT, 0
Hello, I am looking for EA that will close positions after close candle under/above MA. I found EA that closing positions when price crossing MA but it is not what I need