MQL4 and MetaTrader 4 - page 274

To post a new topic, please log in or register
Anybody that has any experience with 'ECN style' brokers (with a LIVE account), I'd appreciate if you can share: 1. What was the max slippage you experienced for a market order? (slippage -> I mean the difference in points between requested price and the actual opening price). 2. Roughly, what is...
Hi, How can I create a combo box for different symbols? For example I would like a dropdown box from which I can select different symbols to trade? I am trying the following and it is not working... input string Currency1="GBPUSD.SBg";enum Currencies{ GBP="GBPUSD.Sbg", EUR="EURUSD.Sbg",};input...
i have two EAs running on different cloud (parallel) with same EA. I want to update that EA for each a/c. Is it possible to do it on one point without going to update each individual software on cloud? For example  have  100 EAs on different clouds since subscription is one a/c one server running...
[Indicator] How do you get the current changes in Price/Pips/Ticks in Multi-TimeFrame & Symbol?  I used 'Bid' but I don't know if this is the CORRECT/BEST WAY to get the current changes in Pips/Price/Ticks. I have no idea how can I use 'Bid' to display the current price in Multi-TimeFrame & Symbols...
Hello everyone, I created a simple indicator that reads 2 time frame and according to the trend puts a red or green dots. But sometimes it happens that the dots are 3 instead of 2 this is my code: #include <stdlib.mqh>#include <stderror.mqh>//--- indicator settings#property...
During a back test I receive the error message 'OrderSend error 4107 .... invalid price 1.39103000' in the Journal tab. I bracketed the suspect function with 2 print statements as shown below Print("Ask1=",Ask); ticket=OrderSend(Symbol(),OP_BUY, user_lots, Ask, slip, stoploss, takeprofit, EA,...
Hi, I am using Dropbox to synchronize my metatrader to use it on two different PCs. Until now it worked fine, but now some Indicator-Files/Foldes weren't shown in my Metatrader Navigator. I can see it in the right folder, an even in the MetaEditor, but not in my metatrader?! What can I do, to see...
What is the difference of DoubleToStr and DoubleToString? I read the documentation but I'm confused because they do the same thing. Can you give me example of uses of this function?
Dear guys is there any way to get which BW MFI color in current shift. I used iBWMFI but it return value but I want to get which color in current shift. thanks is advanced
I don't know the syntax, I've tried the mt4 guide/book, no help! I just need the information from people who have done it before, its taking me a week! Main idea: for(row=0; row<=8; row++)   for(col=0; col<=8; col++)    Arr[row][col] = FileReadNumber(handle)
Hi, I'm new to mql4 I wrote too many alert, but because they indicator used Array, I couldn't write the alert for it. Can someone help please? //+------------------------------------------------------------------+//|                                                  Custom MACD.mq4...
Hi everyone,  Just a quick one. I have two accounts, one I personally trade and one that is a mirror account. I am interested in helping my contacts setup a broker account and then mirror my mirror account. Is this even possible? There must be a way surely? I'm not interested in Affiliate programs...
Hi comrades, I want to write a program to print "Printed Output" after the chat has been clicked. I have the following code which obviously did not work. Please how do I go about it? Thank you in advance.   void OnChartEvent(const int id, const long &lparam, const double &dparam, const string...
Hello all, I've been working on a custom indicator. I've followed codes from other indicators but i can't seem to make it work. The second StrengthMo works but does not calculate the current value. The first, Strength-Momentum does not work at all. Can anyone help me to identify what the problem is?...
for sharing and improving   double last_closed_order_profit(int Magic){     double orderStopLoss;     for(int i= OrdersHistoryTotal() ;i >= 0;i--)      {        OrderSelect(i,SELECT_BY_POS,MODE_HISTORY);        if (OrderMagicNumber() == Magic) break;      }         return OrderProfit();}...
Hi, I have my system placing it's stop order's in the correct places, however Iam having trouble writing the code to control how many and what type are placed.I have some specific paramters that are hanging me up. -It can never have more that 2 orders, pending or open. It could have 1...
Looking for someone to build Expert Advisor without revealing my strategy... Any suggestions?  I have no code experience and have been looking for free code creators online but no luck.  How do i get someone to build one without revealing strategy and getting it done correctly.  Step by step...
Hi! When I drag the "Period Converter" (raw copy attached) to a chart (for instance, onto a 1-minute EURUSD chart), then I am able to separately create a new offline chart, for instance 3minute off-line chart (basically a new .hst file is created). My ask from the clever team here is the following:...
Hi comrades. How can I tell EA that the value of an input has changed in the parameter window for the EA. The input can be of type integer or double or string (or extern or input) etc. I want my EA to know that the value of an input parameter has changed the moment I clicks OK button. Thank you in...
Hey Guys, I seem to be pulling my hair out on this one. All I would like to do is have an indicator in a new window measuring the spread between two pairs by drawing a line with it's price?   Could anyone help with this?   Any suggestions are welcome.   Thanks Dean 
  Lines ahoy! (2)
Take a look at the attached picture.  See how the lines go the next candle?  How can I get rid of that angle line?  Note: this is a Pivot Point indicator.  So, I just want sets of straight lines without the "slides" in between.  Thanks.  
I've been trying to write a part of a Support and Resistance script, where a Horizontal Line is drawn where price has previously stalled, meaning that we've had either many closes at that price, or highs, or lows, or bars that have ranged across those levels.  Then the script merges levels that are...
Hi: I wrote a script to close all orders at the same time.  But I don't know why it closes orders one at a time.  I need to run the script repeatedly in order to close all open orders.  Does anyone know what I might have done wrong? The script I wrote is as follows: #property copyright "Copyright...
Hey All,  I've done some googling on this but nothing concrete has come up. Here's my problem. This morning I woke up and went to get on my laptop. The windows login screen was showing, so I'm assuming that windows updated. That is all well and good, but when I went to open my MT4, it asked me to...
Hello, fellow coders! I have been working on my trend indicator lately and here is how the code looks like so far: //+------------------------------------------------------------------------------------------------------------------+// YOU CAN CHANGE THESE PARAMETERS ACCORDING TO YOUR TASTE...
Hi I want to write a EA that will place buy order at fix price interval like this for (i = 0; i < 5; i++)                {                BuyPrice1 = BuyPrice + DPR*(i)/n;                                                if( Close[0] >= BuyPrice1)                                   // Buy Order...
I want to run my ea on following times: 00:15 to 20:30 i have tried following logic. but it does not accept the times like 0015, which takes as 15:00 int datetime800 = TimeCurrent();    int hour0 = TimeHour(datetime800);        if ((HoursMinutesFrom < HoursMinutesTo && hour0 >= HoursMinutesFrom &&...
Hello Im using this code snippet to calculate position size Can anyone spot anything wrong with this code, either logically or programmatically? Thanks! /* ==========================================================================||   Function...
I'm fairly new to coding mql4. Currently coding my first EA and just learnt about Arrays. I was wondering, how to code a dynamic array? What I'm trying to do is when my EA is initialized, for the past 100 bars, find out the Highest 50 bars and save and name them accordingly, then out of the 50 bars,...