When I backtest this EA run properly but when I attach EA to chart for demo account, in Expert Tab display message "cannot load indicator 'MACD' [4302]". What's it mean? And what's wrong?
Hi all guys
I need an EA to monitor another EA that are working on an account.
I need a code in meta trader to log when a position is opened/closed or changed TP/SL.
May I ask you to help :)
Thanks
Hi, I want to write data to a CSV file for analyzing. It writes effectively but only one valye, and not each value at each tick or bar. There is something i don't understand. Anyone can help me? Here is my code, copied and adapted from mql5 reference. The write code is in a function, called in...
Hello,
have problem with writing file from within OnTest
string terminal_data_path=TerminalInfoString(TERMINAL_DATA_PATH); string filename=terminal_data_path+"\\MQL5\\Files\\"+"mytest.csv"; int filehandle=FileOpen(filename,FILE_WRITE|FILE_CSV);...
Hi!
From what I understand, the take profit is use to automatic close the deal when the price reach to the take profit price. but during strategy testing the deal is not close even the price is raise over x times of the take profit price. All my deal was closed at the end of the strategy testing....
Hellow guys
I notice some huge differences in the test tick data in different terminals for example in Meta Quotes(ATC 2012 Account) and Alpari Demo Server.
In Alpari Terminal i have lot more ticks over 1,8 million for the last month and in Meta Quotes over 800 000 in the same period.
Both shows...
As long as I know, EA parameters usually for setting up take profit and stop loss.
Can EA parameters set the hour for place an order?
Please, help me to understand it. For example, I chose the standard Expert Advisor from the "Moving Average.mq5" delivery (to avoid questions about the code in the Expert Advisor). Initial data: EURUSD, Daily, from 01.07.2010 to 31.08.2010, Open prices only, mode without optimization (i.e. one pass
Hi,
I am learning and writing my first Wizard Signal module and have trading signal depending on position type.
Is it necessary to create object to excess PositionType() within LongCondition() code part?
CPositionInfo m_position;
m_position.PositionType()
Or can I access it via pointer...
Dear Experts,
I encounter the issue that the Lines are drawn into the "first Window" but not into the Window where I want them to be seen...
So: I´m doing this for PERIOD_15, PERIOD_H1...:
//SNAP
.....
if(CopyRates(_Symbol,PERIOD_M15,0,500,rates_M15)<0)
...
I have an indicator that uses an onTick () event for one currency pair. I am trying to use that indicator on one currency pair that use on onTick event to trigger a trade for another currency pair. Does the onTick event work in an EA attached to a different currency pair?
I'm currently backtesting a multi-currency-pair EA in the MT5 Strategy Tester and I get different results when attaching it to different currency pairs . The EA trades on AUDUSD and GBPCHF. When I attach it to AUDUSD it gets 10k profit. When I attach it to GBPCHF it gets more than 30k profit. When I
Hi,
I'm a programmer new to MQL and to this forum. Right now I'm trying to trigger the NewTick event for an Expert Advisor attached to a chart on "open prices only" mode --which ticks for every new period for the chosen time-frame (M1, M5, M15, ...)-- so I can make use of the OnTick() function to...
Hello,
i like to code an expert advisor based on indicators and want thess indicators also drawn into chart.
Is this possible ? My tests shown that this seems only be possible when running strategy tester using iMA, for instance.
But when attaching ExpertAdvisor to chart, no line is drawn even...
How can i programmatically pause the button on Strategy Tester Visualization?
I've been researching the topic for some time now, but haven't been able to find the answers I was looking for. My question: Is it possible to control the features of the Visual Wizard programmatically? More broadly, my question relates to metaprogramming (code generating other code). There are...
The description says that the OrderSendAsync() function is designed to perform asynchronous operations without waiting for the server to respond to the sent request. On successful execution the response code in the result variable contains the value TRADE_RETCODE_PLACED ( code 10008) - "order
Hi Forum. I want to please place a request to all programmers. I have attached an ea that i have been using for a while now with great result and its entry signal is rarely wrong.I have an intention to turn it into a fast tick scalper but i don't have programming knowledge and skills. My strategy...
Hello, i am looking for a smart method to detect bar change within Indicator. Unfortunately, this seems to be an extra science (don't know what's the problem to give each bar a unique index...??) However, my idea was to use OnCalculate time[] parameter for this. On each call, i do a print of
I need your help :)
I'm taking the first steps to learn MQL5 lenguage and just to see 2 simple Ema on my backtest's chart is a great problem :(
Starting whit iMA function :
https://www.mql5.com/en/docs/indicators/ima
what i need to do to add a new ema whit different parameters?
Naturally...
Ok, here is the thing. Very simple but maybe I dont understand the concept of copybuffer in mql5 (I am new to it).
Well, I understand that after you define a handle in OnInit(), and then you use the CopyBuffer() method, you copy elements from the first array to the second.
However in my code...
Hi,
I have made a simple EA wich contains OrderSend wit DEAL type. If I run it from the Editor it runs and creates trades successfully on my Demo account.
But if I run it with Strategy Tester I receive error 4756 [Invalid request] on every OrderSend. I think the MqlTradeRequest structure is...
Hi,
This actually might be a silly question, but anyway - how to modify parameters of an existing indicator straight from MQL5 code? In the MQL5 reference, I only see IndicatorCreate and IndicatorRelease functions.
I started wondering because obviously a user can change the indicator parameters...
Hello,
I am using MQL4. The situation goes like this: from CSV file I get a list of Lot values, and put them to double array, then according to market, using it for OrderSend. The problem is, that I get error for OrderSend 4051, invalid lots amount for OrderSend function. When I manualy change...
Hi, Im impressed with Tim Fass EA performance. Where can I download Tim Fass Expert Advisor ? How can I use it? Thank you. deeply appreciated
It's my first mt5 ea. why my ea close orders immediately after it opened orders?
#property copyright ""#property link ""#property version "1.00"//--- input parametersinput ENUM_TIMEFRAMES TrendTimeFrame=PERIOD_H4;input ENUM_TIMEFRAMES TradeTimeFrame=PERIOD_H1;input int...
I've written a basic first code so i can get the hang of mql5, my buy function is working fine, but my sell function isn't, i'm not sure whether its a problem with the signals or trade function, could someone please advise?
bool Sell_Condition_1 = (MACD[1]<MACD[2]); // MA-8 Increasing upwards...
Hello all,
I want to sent something from an account of one broker to another account of other broker open on the same PC example for i want to sent the open or close trade signal, so how can i do it? can somebody show me the code for this kind of EA, or i can use the global variables for this task...
Hello,
I'm trying to do something VERY simple. All I'm trying to do is get the values of an MA indicator:
void OnTick() {//--- int maHandle; maHandle=iMA(NULL,0,14,0,MODE_SMA,PRICE_CLOSE); // check handle if (maHandle!=INVALID_HANDLE) { double values[];...
Hello,
i have a problem that i can't get history orders in some situations.
Basically i want to log my orders. For this, in OnTrade, i cycle over latest history:
HistorySelect(last_time_query,TimeCurrent());
for(oh=1;oh < HistoryOrdersTotal();oh++)
{...
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.