MQL4 and MetaTrader 4 - page 325

To post a new topic, please log in or register
Hi,   I am new in EA Development. I want to know the unit of return value of iBearsPower and iBullsPower. Is it unit currency or in lots? please answer me.
I have an EA that generates Notifications when certain chart conditions are met. The push Notifications are sent to my Samsung smartphone’s Notification page, BUT this is the problem – (1) the last notification overwrites the previous notification, so no matter how many I receive my phone’s...
Hi All,  I am trying to find a EA for MT4 that will automatically place a Take profit and Stoploss 15pips from my entry level, I have tried a Google search but to no avail,    Kindest Regards  Roman K 
having issue with a function that will calculate total profit. this is what i have so far. thanks for any help int BuyProfit (){   static int TotalBuyProfit = 0;   for(int iPos= OrdersTotal()-1; iPos >= 0; --iPos)   if(OrderSelect(iPos, SELECT_BY_POS)   && OrderMagicNumber() == MagicNumber   &&...
I am having a issue with some coding for an EA. I am wanting it to Not open another trade at the same positions. So if I have 5 open positions. The EA is not opening a trade at the same position as the previous trades, but the EA is opening trades at the same position as the others. I need a way to...
Here is my current code:            if (ArraySize(Close) > 101)                {               ArrayCopy(ClosePriceArray, Close, 0, 1, 100);               ArrayCopy(OpenPriceArray, Open, 0, 1, 100);                }   How can I rewrite the code so that it will always address EURUSD, PERIOD_M15? I...
  Point, revisited (21   1 2 3)
In this earlier thread we were told that a point was 1/10th of a pip. However, in the MQL4 book, we read: It can be easily seen that, in this case, the broker offers a spread of 2 points.   However, I would say that this is a 4-digit broker where the spread is 2 pips or 20 points (not 2 as the text...
Hi, please help me. My EA opens many order, not only one per pair. I don't know what is the problem in my code. In this session I am checking the order, if found live order the liveorder=true would block to open more than one order per pair. But doesn't work: for (counter1=0;...
I want to edit ADX crosses to arrow appear 5 seconds before the end of candle? Is it possible? Thanks
Excuse me. I had one month to learn mq4 Language, and I learned just want to make EA Fibo like in the picture. I very difficult to make. may exist that provide a solution for free. thank you
Hello, some standard time based buy/sell. for example at 10:00:00 he buys/sells that is easy but i wonder if youcan put a pending order buy/sell the moment that the time is 10:00 with thehigh/low bar from previous 1hour bar, i guess with this codeyou can get the  the high from the previous bar but i...
hi i need help with programming i will write what that program need to do so first order can be set manualy at for example 1.24350 so i need program which will automaticly set stopl loss to 1.24360 thats the easy part but then if it will go to profit i need that program to be moving take profit...
Hi, There seems to be an issue in the editor for Global Variables (F3) in Metatrader 4.00 Build 745 (and possibly also privious versions). When I enter a variable name longer than 62 characters then the variable can't be deleted inside the Global Variables editor. If I delete some characters so the...
Hello Guys, i found the function StartScript to excute scrips over ea events this is the function :  #import "user32.dll" int RegisterWindowMessageA(string MessageName); int PostMessageA(int hwnd, int msg, int wparam, string Name); void keybd_event(int VirtualKey, int ScanCode, int Flags, int...
Hello,   Is there a way how to make an EA modify orders even if there is no tick sent by the broker?     Thank you & Best Regards   fib 
this indicator has stopped working and I can not identify the reason, someone could help me? //+------------------------------------------------------------------+//|  SDX-ZoneBreakout-Lud-Z2-v21.mq4...
Dear Community, sorry for the double post. I ask the question at the www.mql5.com forum, but there nobody could help me. Maybe somebody here have an answer for me. I try using the Named Pipes to exchange data between two terminals. Unfortunately, I can not get it to work.. I've already read most of...
How to jump to a past date on the chart with an MQL4 code. I want this to be done by my indicator, with MQL4 code, for example if i write into my indicator to jump to 2010.1.1, then the indicator should move the chart to that date. Is it possible, if yes, then please tell me how :)
GregorAnton
I am looking for a multi colored Moving Average like the one in the picture that changes the color dynamically but not permanently, based on whatever conditions coded.    For example in the picture the MA line is red and then turns blue, red again, and so on.     
Hello. How are you? I am having this problem: when I run the BackTesting, it does not show any trade. The message is this: 2014.11.27 16:45:50.975    GBPUSD,H1: 4427965 tick events (3566 bars, 4428966 bar states) processed within 12808 ms (total time 18174 ms) 2014.11.27 16:45:38.168    Pruebas_MM...
I ma trying to use FFCal.mq4 and change one setting and then recompile it but when I try to compile it I get this error: 'TimeGMT' - override system function    FFCal.mq4    1363    10 1. what can I do to solve this? 2. How did the creators compile this indicator without getting this error?
I'm uninstalling MT4 , but when I try in program files, I get a box with a red "x" saying "The server returned a reference " and does nothing (do not uninstall) . When I try to uninstall it from control panel, leaves a message saying I do not have sufficient permissions to uninstall the program,...
Hello, I found a statement of interesting trades performed on rice, tin, lead, soybean, soyoil, soymeal, nickel, wheat and zinc in the period March-April 2008 on M1 interval. I tried with different mt4 brokers by rolling back the chart, but I can get only something above 65 000 candles (like 65 969)...
Does anyone have any code to write out the currently open trades to a text file? Or anything similar that I could modify? thanks 
Hello, do you use different versions of one EA for Backtest and Livetrading? I noticed that some functions arent needed for backtest but in Livetrading the EA works wrong. If i Backtest with this LiveEA the Backtest isnt fast as the other.
I don't know if this is good,bad or ugly I'm finally to the point where I can actually create an EA that does what I want so now I'm back testing and really don't know what to make of my testing. NOTE: I know martingale features are risky and generally stink, but this EA makes a profit and only had...
I would like to Enter the trade and then have the 1st Pyramid order occur at the next Bid with a multiple of 20pips.  Example:  Entry 1.3315 then (Pyramid at next Bid with  20pip multiple after entry) 1st Pyramid occurs at 1.3320    (5 Pips from Entry in this example , but varies depending on when...
Online Trading. Many have heard about Internet trading. Those who never met him, thinking that it is selling or buying anything online. This notion clearly indicates the currency market or the stock market. Internet Trading - so when people operate on buying or selling currency securities via the...
Day trading refers to the buying and selling of financial instruments like currencies, stocks or futures contracts, on the same trading day. This type of stock investment involves a lot of risk. Day traders carry out day trading by purchasing and selling stocks rapidly on the same day. Securing...