Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 900
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello! How do I connect a custom indicator to an EA as a resource?
Hello Taras! Been working with you. Good to meet you. I connected the indicator to my Expert Advisor as a resource. I am not sure if I did it correctly?
//|www.koles.75@inbox.ru |
//+------------------------------------------------------------------+
#resource "\\Indicators\\\KChange.ex4"
#property copyright "Koles"
#property link "https://www.koles.75@inbox.ru"
#property version "1.00"
#property strict
int start()
{
H=iCustom(NULL,TF,"::Indicators\\\KChange.ex4",History,Period_1,Period_2,MA_method,0,1);
The compiler has not found any errors, but the tester is working much slower? Is it normal?
//-----------------------------------------------------------------------------------------------------------------
The MQL4 manual says: reference to variables in theinitialization function?
//+------------------------------------------------------------------+
//| Expert initializationfunction|
//+------------------------------------------------------------------+
intOnInit()
{
//--- get the value of the custom indicator
doublevalue=iCustom(_Symbol,_Period,"::Indicators\\\SampleIndicator.ex4",0,0);
Reference to indicator variables in theinitialization function , not in the start function? Please advise experienced people!
Hello! How do I connect a custom indicator to an EA as a resource?
Help at the top:"Documentation" is called.
Please refer to "MQL5 Programs --> Resources --> " there see"Working with custom indicators connected as resources".
Everything is clear and simple. And often with examples.
Artem indicator and EA files EX4.
The indicator must be inserted into the EA as an executable file (.ex4/.ex5), but if the EA is also an executable file, and there is no source file, then there is no way.
Hello, I would like to write an EA which will place a pending order at every tick. But it will put BuyStop on the first tick and then not put it again. There is an error 130. What is the problem? Please help me.
Artem wrote the indicator and the Expert Advisor himself. Create with MQL4 Wizard an Expert Advisor(template), custom indicator, script, library, include file(mqh), new class? Include files (#include)?
If you wrote it yourself, you have the source code of the Expert Advisor - insert the indicator as a resource into it.
Hi, I want to write an EA that will place a pending order at every tick. But it will put BuyStop on the first tick and will not put it next. I have an error 130. What is the problem? Please help me.