As a result, it is not calculated correctly initially. Values in array Load_Depo constantly change and need, that open positions too were considered. Show me an example, someone, if you have a spare minute. ))
Thanks, the point is clear, I'm sorry that I'm not very good with the programming language.
Suppose:
Blue - number 0 - buy signal
Red - number 1 - sell signal
and another question, the arrow can flash while it is forming a bar above which it can lock and give a signal. The deals should be opened after the signal is formed
Can someone implement this in code?
Are you studying the programming or looking for someone to do it for you?
Victor has already explained that the iCustom() function should be used. Read about it in MetaEditor's help. It is quite detailed there. To avoid a "flutter" - use in iCustom() the data of the first bar instead of zero - it has already been completely formed.
When you start to write something yourself, you'll be glad to get help and correction here...
Are you learning to program or are you looking for someone to do it for you?
Victor has already made it clear to you that you need to use the iCustom() function. Read about it in MetaEditor's help. It is quite detailed there. To get rid of "chatter" - use the data of the first bar instead of zero bar in iCustom() - it has already been completely formed.
When you start to write at least something yourself, then they will help you here with pleasure and will correct anything...
I write myself, although it's hard for me, and the only thing left is the binding of the Expert Advisor to the indicator, although thanks to Victor it will soon be solved with my own efforts. In any case, thanks to all who responded and showed me the direction in which to move forward.
There can be countless options. It is best to choose the simple ones. For example:
int Orderov; int Tip;
//+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { int i,k;
Do we have to make a variable Orderov ? Can we do it this way ?
for(i=0;i<OrdersTotal();i++)
The script needs a variable "k" ?
You got it all wrong.
You're trying to compose poetry in German without knowing a word. Do I make myself clear?
Read the reference, learn all the functions and properties of the language. It'll take you a couple of months. Use the examples that are included in the installation of MetaTrader4. Then we will talk. You don't know what we're talking about yet.
Trying to compose poetry in German without knowing a single word. Do I make myself clear?
Read the reference, learn all the functions and properties of the language. It'll take you a couple of months. Use the examples that are included in the installation of MetaTrader4. Then we will talk. You don't know what we are talking about yet.
I am a beginner in programming, and I have no teachers. And if it is difficult for you to answer the questions that are important to me, you could have written nothing to me.
I am a beginner in programming, and I have no teachers. If it is difficult for you to answer the questions that are important to me, you could have written nothing to me.
Sometimes you have to ask questions to understand something .
int Orderov; int Tip;
//+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { int i,k;
case OP_BUY: //Задача для ордера типа OP_BUY break;
case OP_SELL: //Задача для ордера типа OP_BUY break;
It should only be triggered every time a new order is open, once.
Maybe I need to attach some counters, by ticks, magiks or other orders identifiers, or maybe arrays? I dont know what it has to do with it, I can't move forward until I figure it out.
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.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi all!
I can't seem to get the deposit load correctly in the trading report. )) I do this:
As a result, it is not calculated correctly initially. Values in array Load_Depo constantly change and need, that open positions too were considered. Show me an example, someone, if you have a spare minute. ))
Honestly, I don't get it, it's so complicated)))
Thanks, the point is clear, I'm sorry that I'm not very good with the programming language.
Suppose:
Blue - number 0 - buy signal
Red - number 1 - sell signal
and another question, the arrow can flash while it is forming a bar above which it can lock and give a signal. The deals should be opened after the signal is formed
Can someone implement this in code?
Are you studying the programming or looking for someone to do it for you?
Victor has already explained that the iCustom() function should be used. Read about it in MetaEditor's help. It is quite detailed there. To avoid a "flutter" - use in iCustom() the data of the first bar instead of zero - it has already been completely formed.
When you start to write something yourself, you'll be glad to get help and correction here...
Are you learning to program or are you looking for someone to do it for you?
Victor has already made it clear to you that you need to use the iCustom() function. Read about it in MetaEditor's help. It is quite detailed there. To get rid of "chatter" - use the data of the first bar instead of zero bar in iCustom() - it has already been completely formed.
When you start to write at least something yourself, then they will help you here with pleasure and will correct anything...
There can be countless options. It is best to choose the simple ones. For example:
int Orderov;
int Tip;
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
int i,k;
Orderov=OrdersTotal();
for(i=0;i<Orderov;i++)
{
OrderSelect(i,SELECT_BY_POS);
switch( OrderType() )
{
case OP_BUY:
//Задача для ордера типа OP_BUY
break;
case OP_SELL:
//Задача для ордера типа OP_BUY
break;
case OP_BUYLIMIT:
//Задача для ордера типа OP_BUY
break;
/////------ и т.д.
}
}
return(0);
}
Help.... Answer the question ..............
This is the part which is triggered on every tick
case OP_BUY:
//Задача для ордера типа OP_BUY
break;
case OP_SELL:
//Задача для ордера типа OP_BUY
break;
And it should only be triggered with every new order opened, once.
Maybe you need to add some counter, by ticks, magiks or other orders identifier?
----------------------------------------------------------------------------------------
Do we have to create a variable Orderov ?
Can I do it this way?
for(i=0;i<OrdersTotal();i++)
Do you need a variable "k" in the script ?
int i,k;
That even the examples from the test script don't help?
This is the part that is triggered on every tick
case OP_BUY:
//Задача для ордера типа OP_BUY
break;
case OP_SELL:
//Задача для ордера типа OP_BUY
break;
And it should be triggered only once with each new order opened.
Maybe there should be a counter attached, by ticks, magiks or other order identifier?
----------------------------------------------------------------------------------------
Do we have to make a variable Orderov ?
Can we do it this way ?
for(i=0;i<OrdersTotal();i++)
The script needs a variable "k" ?
You got it all wrong.
You're trying to compose poetry in German without knowing a word. Do I make myself clear?
Read the reference, learn all the functions and properties of the language. It'll take you a couple of months. Use the examples that are included in the installation of MetaTrader4. Then we will talk. You don't know what we're talking about yet.
You've got it all wrong.
Trying to compose poetry in German without knowing a single word. Do I make myself clear?
Read the reference, learn all the functions and properties of the language. It'll take you a couple of months. Use the examples that are included in the installation of MetaTrader4. Then we will talk. You don't know what we are talking about yet.
I am a beginner in programming, and I have no teachers. And if it is difficult for you to answer the questions that are important to me, you could have written nothing to me.
And I'm addressing you as you, actually.....
I am a beginner in programming, and I have no teachers. If it is difficult for you to answer the questions that are important to me, you could have written nothing to me.
And I'm addressing you as you, actually.....
I'm sorry.
I wrote about how you can't learn to swim ashore.
Excuse me.
I wrote about how you can't learn to swim ashore.
Sometimes you have to ask questions to understand something .
int Orderov;
int Tip;
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
int i,k;
Orderov=OrdersTotal();
for(i=0;i<Orderov;i++)
{
OrderSelect(i,SELECT_BY_POS);
switch( OrderType() )
{
case OP_BUY:
//Задача для ордера типа OP_BUY
break;
case OP_SELL:
//Задача для ордера типа OP_BUY
break;
case OP_BUYLIMIT:
//Задача для ордера типа OP_BUY
break;
/////------ и т.д.
}
}
return(0);
}
Help.... Answer the question ..............
This is the part that triggers every tick.
case OP_BUY:
//Задача для ордера типа OP_BUY
break;
case OP_SELL:
//Задача для ордера типа OP_BUY
break;
It should only be triggered every time a new order is open, once.
Maybe I need to attach some counters, by ticks, magiks or other orders identifiers, or maybe arrays? I dont know what it has to do with it, I can't move forward until I figure it out.
----------------------------------------------------------------------------------------
Do we have to make a variable Orderov ?
Can I do it this way?
for(i=0;i<OrdersTotal();i++)
Does the script need a variable "k" ?
int i,k;