Download MetaTrader 5

MQL4 and MetaTrader 4 - page 41

To post a new topic, please log in or register
Hi guys, my question is simple, while creating a horizontal line I'd like to make it possible for the user to move it in case my algorith miscalculates it's placing. For example when you manually create a horizontal line you can drag it up and down. But when you programmatically create it you cannot...
how to set multiple take profits in one order and leave the computer 
Hello Why in a multi-pair EA this: take=NormalizeDouble(MarketInfo(pairmajeur,MODE_ASK)+Take*MarketInfo(pairmajeur,MODE_POINT),MarketInfo(pairmajeur,MODE_DIGITS)); Gives me an error ""possible loss of data due to type conversion Malibu.mq4 426 111". (111= MarketInfo(pairmajeur,MODE_DIGITS));) with:...
Hi Guys, I am trying to back test an EA . My friend is reporting success with this EA and I wanted to check it out before dropping onto a chart on my Live account. It will not run on anything other than a Tallinex Live account. I set the Tester to run from 1st Jan 2017 to 25th August 2017 but it...
Hello, I need help how to change a source code. I have Cent acount in MT4   Indicator show - 870 $ but correct valuet should by - 0,870 $. I will be grateful for your help. Mark
Hello Folks, I recently got this indicator which is pretty accurate. However, I am having trouble with the email alert. Do you know how I can modify it so that it alerts me when it changes trend? Thanks!
i declared something like "B1=Bid", so am wondering when the variable, B1 is updated. Is it every time i load the EA, or every time a new tick(price) comes in.
Hi there, I have been trying to test my strategy, but it is difficult to test directly on historical data. Is it possible to test in a more controlled environment? I have the impression in some articles are used "mock" currency (a currency made up with controlled data). Am I wrong? I'm using...
Hi everyone, I am seeking help to write the correct logic that can adjust the entry price for a trade, which is the nearest 25 level below each daily bar candle. For example, if the price of GBPUSD closed at 1.2966, then the entry price should be 1.2950. If the close was 1.2986, then the nearest 25...
  EA coding (1)
hello to all i have an indicator based on wd gann formulas, can any one code an ea with martingale system, close all trades on opposite signal, if once a TP hit than no trade until next signal appear.
Hello everyone, I don't really understand order 1 and order 3 error messages.   void CloseTicket()  {// 0= order 61204533 /NZDJPY     / Market is closed// 1= order 61204413 /oil-oct17  / Invalid price// 2= order 61202214 /USDHKD     / Market is closed// 3= order 61176067 /usdx-sep17 / Invalid trade...
I'd like to learn more about open orders -- getting information and modifying. Moving the stop to breakeven should be a good project. I found plenty of discussion on the subject but no finished code illustrating the details of how it's really done. Here's a few references if anyone wants to see...
  Convert mq4 to mq5 (14   1 2)
Is there a functioning program to convert a mq4-EA to mq5-EA? Thanks! traderdoc
Hi friends, i have a indicator. plz, add sound alert and email alert into indicator that create sound alert when change color from red to green/ green to red. I've also attached indicator here.  
Hi I have got a code but it doesn't seem to work properly. The EA opens 1 buy and 1 Sell trade of the same pair. I want the code to calculate the total profit of the two orders and return the result. I have got this function. double Money() {   double sum_profits = 0;      int i, iOrders =...
Hi, I tried to install MT4 on Linux with WINE: wine mt4setup.exe It asks for Server name, Login and password before installing MT4. I have seen on youtube people are showing installation without this information. If I do not have any broker account, how do I install MT4? Thanks.
hello How can Expert  determine the minimum stop loss value ?
Olá,   How can i do to add friendly labels for enum options? See my code below, i used 2 external parameters with enum: AppliedPrice and TradeMode. The first uses a language native enum (ENUM_APLIED_PRICE)  e the second uses an enum that i created myself (ENUM_TRADE_MODE).  extern ENUM_APPLIED_PRICE...
Hi everyone, I do not understand why using this feature, ChartSetSymbolPeriod(); my indicator is deinitialized and initialized each time I change symbol. How can I overcome this problem? thank you
Hi I want my EA to open only one trade per day. I've got a code that counts historical trades and gives a yest or no if a trade was opened,. However i'm a bit stuck. Can someone help. Thanks. for(int i=OrdersTotal()-1; i>=0; i--)        if ((OrderSelect(i,SELECT_BY_POS,MODE_HISTORY) &&...
dear friends, hope you're all doing great I want to ask is there any limitation on the number of orders (opened and pending) that is set by the mt4 platform ? I heard from one of the broker's relationship manager that the max number of orders that you can put on a real account on the MT4 platform is...
I read where I can create a script and assign it to a hotkey to change the template in MT4.  the Path for the template is : "C:\Program Files (x86)\OANDA - MetaTrader\Personal_Account\" and the template is called "!!LINEAR REGRESSION I figured this should be easy. Not so much.  The below is my...
i'm trying to understand period converter code, butinput int InpPeriodMultiplier=3; // Period multiplier factorint       ExtHandle;//=-1; tirado//+------------------------------------------------------------------+//| script program start...
can some one explain to me what exactly the Ordercloseby() function does, am having hard time to code it into my robot. Does it close and order and then opens an opposite one, or...it just closes an order depending on the opposite one. what exactly do the parameters of this function mean???...
Hi all. The Stop Level of an asset can change by broker or it's every the same ? If i use the  MarketInfo(_Symbol, MODE_STOPLEVEL)  function to get the current stop level, i need to use it: Just one time, in initialization function ( OnInit function )... in this case, i am presuming that brokers do...
How can I set multiple profit taking targets in mt4 ? Say i buy and it goes my way . I want at a certain level to take out 50% of the trade but let 50% running until it hits my next target ,and there i  want to have another 25% take out and let the remaining 25% running until it hits my final target...
Hi all, I have a custom indicator and I build an EA from it. I would like to know is there any chance to put the indicator into the EA so I would be able to sell it via the market? Iam not talking about the iCustum function, I already use this to use it with my terminal, but nobody would be able to...
Hi,  I have indicator that i would turned into EA. Because i tried but unfortunately i did not convert successful it into EA TF 15min Buy green arrow Sell red arrow Exit opposite arrow  would be awesome if you could help me
Dear sir Please Provide Small Example to save an String in Text File In D Drive using Named Pipes ( Mql4 Code ) Thank you
  Scalp_net (724   1 2 3 4 5 ... 72 73)
Scalp_net EA. M1 timeframe. EURUSD.