MQL4 and MetaTrader 4 - page 517

  Order ID number  (1)
Comments that do not relate to the "Deleted topic "Deleted topic "Where is my order ID number?""", have been moved into this topic.
Hi there!  I am relatively new to the MT4 platform and after watching endless amounts of you tube videos - was wondering if anyone could help me with a few remaining questions:  1. Do you know how to create a shortcut/hot key for adding a line or addinga text box?   2. Is there a shortcut/hot key...
  Adaptive rsi  (13   1 2)
Hi, does anyone have an adaptive rsi that is like the attached color rsi. I need it to show arrows at the over-bought and over-sold levels as well as being able to change the price. Basically a clone of the original color rsi, just adaptive. If anyone could share this indicator or doesn't mind...
[Deleted]
  Parabolic sar based ea  (19   1 2)
Hi everyone, I'm just a newbie in EA realm... and i'm sorry for my english.. i'm from Indonesia. i'd like to ask for help in this great forum... i made this EA a couple weeks ago.. it's based on Parabolic SAR in multi time frame.. but i need to change the rule... In previous rule, the EA waits for...
Hello everyone.  Brand new coding baby here...haha.  I just got my first EA to place its first order...hurrrray.  However, I can't get the dang thing to stop placing the order on every tick.  I tried this "if (t < 1)" snippet that looked like it was used to stop the function from repeating. Not...
Hello altogether, I try to develop myself an EA including the StochRSI indicator. Now i just want to modify the indicator a bit, and want to smooth it a bit by calculating the average, of the last 10 values of the indicator. I tried it with this code of Buffer3[i]: int start()  {...
Hi friends, I'm using iCustom function to get the needed data and I want to put the received data in arrays, Here is the main problem : As I mentioned I want to get the data from my indicator and store them in Arrays. The data would differ from one timeframe to other timeframe and each timeframe has...
  Running script using CMD  (12   1 2)
Greetings, I have encounter that I can run script on terminal startup (https://www.metatrader4.com/en/trading-platform/help/service/start_conf_file), but I would like to load the script after startup or is there any way for me to run script using command line? Regards.
Hi, maybe someone could help me with this: I am trying to change the MT4 charts time frame to 2 or 3 minutes. I know that I can do this with offline-charts. But the problem then: they're OFFline of course and don't update automatically, so they're not usesable for trading. Is there a way to change...
if (OrderSymbol()=="USDJPY_" && OrderType()==OP_SELL && OrderProfit() < (OrderCommission()+OrderSwap()))OrderModify(OrderTicket(),OrderOpenPrice(),Ask,0,0,clrNONE);if (OrderSymbol()=="USDJPY_" && OrderType()==OP_BUY && OrderProfit() < (OrderCommission()+OrderSwap()))OrderModify(OrderTicket()...
Hi, I need someone to help me code this indicators that will draw  1. Open Price Line 2. Current Hi Price Line 3. Current Lo Price Line 4. Additional line of Hi Price - 50pips 5. Additional line of Low Price + 50pips I found a indicators that draw open price line and the hi lo indicators, but i...
Hi everyone, I have been trading for a few years now and have tried and tested lots of different indicators. I came to the conclusion "What is it we are all really looking at?" How can there be so many different indicators for the same thing!! That got me thinking, why do buyers buy and sellers
I have made an EA. When i place a buy order, to make a profit, the ask and bid price should go up. However, i have made my EA so that when it goes the wrong way xpips, it places another buy order. if it continues to go in the wrong direction by 2xpips, it will place another buy order. If the market...
Hi every one. I wrote a simple indicator that shows lowest and highestprice value for each day in a separate window. There are two buffers that are labeled as “A” and “B” respectivelyfor lowest and highest day price. I’m going to develop the code in order to 1)     Add a buffer in histogram...
Hello, I'm using the #Resources command to import my logo and it works. The problem is in file ex4 because it is not embedded during compilation and if the logo is not in its folder it does not work. // Global scope #resource "\\Images\\Logo2.bmp" // int OnCalculate(....){
Please help...i just loaded new indicators on my MT4 platform, and now i cannot get the prices, which normally appear on the RIGHT of the Charts Any assistance on getting the pricing info on teh chart will be apprecaiated please. Akash1205
Hello, backtest return me 4051 error during CloseOrder() execution inside my OrderCheck() fuction. int ticket[3] = {-1,-1,-1};   is a global variable How can I fix it? The code is attached. Thanks Giovanni
Error message I get when I try to attach myFxBook EA to MT4. I select 'Allow DLL import ' and enter my username and password correctly but as soon as I click 'OK' mt4 gives 'Unhandled exception ' error and then it gives out 'expert removed' message. Not able to attach myFxBook EA to chart. Please
Please could someone help with coding this?  I require a box to be made, which is divided into two sections.  One section showing the current value of the Bears and the other showing the current value of the Bulls.    Something like this;  BEARSBULLS 0.00002 -.000123 Many thanks   
im learning to to code by modifying existing EAs so please bear with me im having trouble getting this technique to work i figured out how to simply load up multiple orders upon a condition CODE IS ATTACHED so my entries grab two positions but how do i hold onto one, and close the other at 20pips...
Hello, In my libraries I was used to implement a function called InternetUtcNow(). That function just loaded the page at https://greenwichmeantime.com/time/scripts/clock-8/x.php and read the current UTC time. Now that page is not working anymore and I was searching for a replacement or another...
Hi at all! thanks for all your infos:
guys, for some strange reason 1 our of 3 pairs does not work on MT4 tester, and i cant understand why. error closing order. what can be wrong and why 2 pairs work, the 3rd wont (all pairs are in market watch window - valid). here is the code. any ideas please?...
void OnTick () { //--- int tkt_buy = OrderSend ( "GBPUSD" , //Pair OP_BUY , //Command Type 0.01 , //Lot Size Ask , //Market Price
In the following code why is it I cant get it to place stop loss and take profit onto the pending order after it has been placed? int gBuyTicket;void OnTick(){ //--------------    // Timer   //--------------   int hour = Hour();   bool timer = (hour >= 0 && hour <= 23);   // Buy Order...
Ive been trying to send an EA to the market and get it published by a moderator. It doesn't show any errors in tester on the tickmill demo account I use. It doesn't show any error when put it through automatic validation. But why is the moderator getting an ordersend error 130 on their tester? So I...
Hi I have hit a brick wall with with running anything on my latest MT4 platform (1562) build on the mac.  I am using the playonmac emulator and have tried re-installing MT4 many times as well as changing the wine versions (tried mt4 website recommended 1.4.1 and 1.5.21).  Despite the compile working...
  IBarShift error  (12   1 2)
iBarShift does not seem to work properly with build 840. I never see 1440 bars in a 1 day period using M1 timeframe. I've seen a limitation on 1000 bars in the past and than things go wrong. Is this a know bug ? I've also added a list with the log-file. Here's the code :  previousday_start =...
Hi there, I'm new to mql. I've done my research but couldn't find the answer. My issue is that the second condition is ignored while the first is true. What can be wrong here? if(Use_MACD_divergence) {  // Check MACD filter           double OsMA_1 = iOsMA(NULL,Timeframe,Fast_ema_period...