Download MetaTrader 5

MQL4 and MetaTrader 4 - page 267

To post a new topic, please log in or register
L14
  I NEED HELP (3)
hi there.. i am a new trader..just join forex trading for about 2 month ago. just want to ask about market execution and how it works because i cannot enter the position more than 0.50 volume. i tried 1.00 volume and its executed with "not enough money" stated. what should i do?
Let's say i have opened order 10 buy and 12 sell, and current order profit from OrderProfit() function is let's say 1 USD, and i have profit target 5 USD, with this situation, can i calculate 5 USD - 1 USD = 4 USD  that mean 4 USD from current market price i can make order modify to all order with...
Hi, My problem/question if I have created the fxt-files my self (tick-data of Ducaskopy, GMT) I want to be sure that they are not mixed with the prices (and the broker-timeshift) of the broker I am logged in! If I test an EA in the mt4-strategy-tester I can get the quotes: Bid,...
Hi, How to get today's high/low? while i run on any timeframe whenever candle closed i need to get today's high/low value! please suggest me to get the easy idea! i tried, but it shows alltime high/low: int   firstbaroftoday=0;double today_high=+99999,       today_low=-99999;for (int j=...
Hi, I'm trying to code a EA for the Japanese Candlesticks.  I want an EA that emails/texts/alerts me when a trading opportunity presents itself.  My code is below.  If anyone can help me or offer any feedback, I'd greatly appreciate it....
Hi forum, I want to make an indicator which calculates the total risk of all open orders. My idea is to check all OP_BUY and OP_SELL orders and calculate the risk of each individial order by using OrderOpenPrice() and OrderStopLoss(). Then I convert this into my account currency, add them and...
Dear MQL4 Users, is it possible to return a reference in MQL4? E.g. to a member variable. In C++ this is common practice, but I get an ugly "reference cannot used" error from the mql4 compiler. Thanks in advance, Tom
Hi. I'm looking for a programmer to create a relatively simple trading robot. Having manually tested half a system and breaking even, a further indicator needs to be built and applied. I just can't find the right indicator anywhere but maybe I'm looking in the wrong place?. Should this work (and in...
Hello, the below is failing to open. when i compile it it shows errors. Help clear the erros please //+------------------------------------------------------------------+ //|                                             Momentum Candles.mq4 |...
Im working with harmonic PRZ logic. I project areas of price using fib ratios +/- a delta. So a BCD fib ratios of 0.886 would return both a max and min price for that ratios projection as price. double BCD_Ratio = 0.886;double Delta = 10;double BCDMinRatio =...
Hi everyone Does anyone know a method for acquiring the activity in 'Journal' for a period when the program was not opened at all? I had some positions which were stopped out on a day when I did not open MT4 at all, and I am curious if there were any requote during closing the positions. I am aware...
These are two scripts to buy and sell two orders with the same stop loss of 15 pips when I compile the script I'm getting two warnings on lines 44 and 49 on both.  return value of 'OrderSend' should be checked !Sell 2 Orders.mq4 44 19 function must return a value !Sell 2 Orders.mq4 49 14 I'm not a...
Hi, I am searching a walk forward analyzer for the EAs of the MT4. Unfortunately the Walk Forward Optimizer from easyexpertforex is no longer available. Does anyone know a competitor who is offering a walk forward optimizer in the same price range? How can I now perform a walk forward analysis with...
Can anyone tell me how to find the past value of a value found within an indicator? I can find past values of Open, Close, High, Low and Volume, but not sure how to find past values of indicators. Thanks!
Hi! Can anyone help me to receive the account history from php using investor's password?
I just made simple EA but it draws nothing although I use visual mode. Then I made simple test on init function like this to drew some arrows but nothing showed up. void init() {          ObjectCreate( ChartID(), "Test", OBJ_ARROW_DOWN, 0, Time[1], High[1] ) ;          ObjectSet("Test",...
I wish there is a method/function to tell us what is the broker's slippage going to be if I trade? If broker's slippage is greater than x pips then do not trade. To avoid like this: NZDUSD Ask Price: 0.86952 After BUY trade is executed the opened price is 0.87004 That is 5.2 pips slippage which is...
Please, help. I try an Ea on the two mt4 of two different companies,in the same conditions. But the RESULT is different. Why?
I cannot find a MTF indicator that works in tester .    i.e.  run 1 min chart and plot 5min MTF indicator........ Are there any examples to follow? I saw an iunima_mtf.mq5  but it uses stuff not in MT4 compiler. BarsCalculated CopyBuffer I was thinking that  embedded indicator in a MTF version may...
I'm looking for a new trading account (to trade the DAX30) that offers its account holders access to their own historical data. I appreciate I'm not likely to get historical data for 'Free' so am prepared to pay for the account. I currently use IG but they only offer 6 months of free data it would...
When trading with codes, you have to define slippage and below are examples with SRC.  However, I have a few questions:  . May I understand  that there's some relationship between spread and slippage in live trading? E.g. Less spread and less slippage. Or other relationship or corresponding? ....
May be there will be a repreneur, may be there will be insolvency All traders may loose a part of there balance, they don't know how much, yet https://www.insolvency-kpmg.co.uk/Viewer/pdfViewer.aspx?sid=mzl0nc01eior1gj1pgjjvijd&did=367a7ac9-7095-444a-92a0-17c473a72213
Please is there any forex broker that offer trading on a cent account and provide trading on Agricultural commodity like Wheat Coffee Cotton Oats Cocoa, etc?
Hidden
  Profit to pips (11   1 2)
Hi,   how can I convert order profit to pips? Asuming I know lotsize etc.  I want to create trailing stop, but profit oriented.    Thanks. 
  Can anyone tell me what is this called 'CREDIT' in my MT4 Terminal?   I deposit my money to broker but I got nothing in 'Balance' and all funds in 'Credit'. But I cannot trade with 'Credit'...! 
Hi my friends, I want to know whether there is a way to restrict the number of trading volumes up to a predefined amount from the server? e.g. suppose that I do not want to allow my trader to have an aggregate amount of opened positions more than 10 LOTs , so I put a limitation on the server so that...
  Range-bound switch? (15   1 2)
How can I do something like this better; int zero_to_hundred=x,shift;if(zero_to_hundred<=10){shift=4;}else{if(zero_to_hundred<=20){shift=5;}else{if(zero_to_hundred<=30){shift=8;}else{if(zero_to_hundred<=40){shift=4;}else{if(zero_to_hundred<=50){shift=9;}else{if(zero_to_hundred<=60){shift=3;}else{...
My EA always compiled without any warnings, but recently decided to compile again and have been getting these warnings. For the life of me, I cannot work out why as I'm storing the return value of the File* functions in the correct variable type and only using those variables as int values in the...
recently i have downloaded tick history for EURUSD since Jan 1, 2004 till now, but the problem when i back test any EA on any time frame using every tick mode, the back test stops at July 2 , 2008, so what is the possible problem that cause this. Notes : - when i use candle open mode during back...
i need to count the total open orders by all charts ... can I use simply? bool countok = false;if (OrdersTotal() <= 3 ){ countok = true;}