extern double MaPeriod = 14;extern double MaShift = 0;//extern string MAMethodHelp="SMA=MODE_SMA;EMA=MODE_EMA;SMMA=MODE_SMMA;LWMA=MODE_LWMA";extern double MaMethod = MODE_SMA;//extern string MAAppliedHelp="PRICE_CLOSE;PRICE_OPEN;PRICE_HIGH;PRICE_LOW;PRICE_MEDIAN,PRICE_TYPICAL;PRICE_WEIGHTED";extern...
Hi, for a better overview I sorted my indicators in seperate folders. Now the EA can't find this indicators with iCustom Function, because he is searching direct in MQL4\indicators-path. What can I do?
Hi, I'm new to MQL I am working on an EA with a simple strategy trading on a certain price levels. My defined price levels are 00, 20, 50 and 80. So let's say in a EUR/USD pair if the last two to three bars closes at my trigger price level i.e. 1.30500 then I will execute a trade with a take profit...
[Deleted]
Hey guys, I know it was her few times. I'm trying to get candle closing always in 60 seconds (at the end of bar). I know about MQL4 coding nothing. But I tried a lot of codes here for that but no success. Probably because I don't know in which part of code source I should insert it. Could someone...
Automatically loading .set files on OnInit()? Concerned when terminal crashes or restarts that the EA will not associate with the .set file required. Looking for it to automatically pull this file and use it on OnInit()?
[Deleted]
Hi guys, I have this problem: I have indicator which calculate some arithmetic operations. If change period on chart --> all aritmetic operations have to be make again. This very very slowing down and placing a burden on my pc. And some data is loss. My idea was - simply demonstrative mql code
Hi, I'm fairly new in MQL is there a way to get the exact value of the Digit variable let's say for EU 1.3050, is there a way to get 3050 or can I do it by splicing the variable? Thanks in advance!
I am a new trader and using a demo account with MT4. I have saved a profile EURUSD but it is not loading, they are in the profile list. Can anyone help ? I attach screenshots.
Please what is rebates and how is it calculated in forex and CFD?
Excuse my bad English. I have a problem with ArraySort(). I used it to classify a basket of orders before closing. Rarely, but from time to time I take a "Invalid ticket for OrderClose function". If I do not class them, I is never this error. I cannot find or is my error! If someone can tell me....
Does anyone know why the ping can be so dramatically high or way out from the ping test I carry out from the SRV file of the brokers server within CMD? It seems very ambiguous what this number really means let alone where it is derived from (definitively speaking)?
I need to modify BuyStop order when market revers with keeping 2 pips Gap. i use this following code. but it is not working. someone help me to fix it. void BuyStopModify() { for (int i=OrdersTotal()-1; i >= 0; i--) if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) { if...
[Deleted]
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?
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=...
[Deleted]
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...
[Deleted]
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
Hello everyone
I would like to test a second signalprovider. Unfortunately I can not integrate it. In my MT 4 Journal it says: "Signal - no conversion rate for the deposit currency of provider (USD100) and subsriber (CHF)."
Indeed my account with the broker is in Swiss Fancs. But with the first...
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
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 =...
[Deleted]
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
[Deleted]
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...
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.