[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 270

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
I didn't mean that thefi_Ticket parameter isn't needed, but why it was set to 0 (zero) by default. I would just do it that way:
I'll duplicate the source code again:
This function allows to get trading information by an instrument (without binding to an order, for example, before opening an order) and the same, but in conjunction with a specific order (when it is followed by an order). The default value is used for ease of use of the function. The negative value of fi_Ticket is used when initializing the trade library.
P.S. And first, pay attention to the variable names, or more precisely their prefixes. Variables that have an initial b, such as bs_Symbol are declared globally from the library. Most global variables are declared in b-PSI@Base.
Please look at EA code, can't figure out what the reason is.... At first start it trades can open a trade immediately, but after closing it stops working until next terminal restart or on/off allow EA to trade... Works with Gann 2.0 indicator
Here's an example from the documentation of a command that will help you - figure out how it works, change the parameters:
High[iHighest(NULL,0,MODE_HIGH,20,4)];
Low[iLowest(NULL,0,MODE_LOW,10,10)];
THANK YOU
Here's an example from the documentation of a command that will help you - figure out how it works, change the parameters:
High[iHighest(NULL,0,MODE_HIGH,20,4)];
Low[iLowest(NULL,0,MODE_LOW,10,10)];
Sorry I'm late with my reply, I've been having problems with my computer.
Here's an example from the documentation of a command that will help you - figure out how it works, change the parameters:
High[iHighest(NULL,0,MODE_HIGH,20,4)];
Low[iLowest(NULL,0,MODE_LOW,10,10)];
Sorry I'm late with my reply, I've been having problems with my computer.
Please look at EA code, can't figure out what the reason is.... At first start it trades can open a trade immediately, but after closing it stops working until next terminal restart or on/off allow EA to trade... Works with Gann 2.0 indicator
This function allows you to get trading information for an instrument (without linking it to an order, for example, before opening an order) and the same, but in conjunction with a specific order (when accompanying it). The default value is used for ease of use of the function. The negative value of fi_Ticket is used when initializing the trade library.
P.S. And first, pay attention to the variable names, or more precisely their prefixes. Variables that have an initial b, such as bs_Symbol are declared globally from the library. Most global variables are declared in b-PSI@Base.
Igor, I understand that. But the point is, as I understand it, to get market information for a given symbol, we don't need to link it to an order at all. If there is an instrument, an order is not needed... Not necessary at all. After all, you only need the name of the instrument to get market information. Don't you agree?
This variable I was asking aboutbs_Symbol is first mentioned in the inclusion of b-PSY@Base.mqh, here is the string:
bs_Symbol, // текущий инструмент
But, nothing is assigned to it. Then:
There's an expression:
Should be understood as:fs_Symbol != 0 right?
P.S. And first, pay attention to the names of variables, or more precisely, their prefixes. Variables that have an initial b, such as bs_Symbol are declared globally from the library. Most global variables are declared in b-PSI@Base.
Hm. I usually use g_ to denote global variables (from the word global). Do you use l(e.g. li_cnt) to mean local variables?
Friends! I need help in fine-tuning an EA.
There is some code that opens an order under certain if condition. The execution of the condition can take place every tick because it is placed in the body of int start().
We need:
1. After the execution of a condition (and opening of an order), we should pause for the opening of new orders, pause for n bars. For example, if my Expert Advisor is on timeframe M30 and I need to pass 3 hours, then the pause should be 6 bars.
2. The program should work in the strategy tester.
What code is needed? And where would be the right place to insert it.
Igor, I understand that. But the point is, as I understand it, to get market information on a given instrument, you don't need to link it to an order at all. If there is an instrument, an order is not needed... Not necessary at all. After all, you only need the name of the instrument to get market information. Don't you agree?
This variable I was asking aboutbs_Symbol is first mentioned in the inclusion of b-PSY@Base.mqh, here is the string:
But, nothing is assigned to it. Then:
There's an expression:
Should be understood as:fs_Symbol != 0 right?
Hm. I usually use g_ to denote global variables (from the word global) and l(e.g. li_cnt) to mean local?
You still have a lot to learn. So far your assumptions are not true. My functions can serve different purposes at the same time (in order to reduce the code itself), in particular fGet_MarketInfo(). Everything is repeatedly thought out and nothing needs to be changed!
Start, for example, with an experiment: declare a global variable in the EA body and try to call this variable from the linked library. Try to link the results to variable names that have a prefix starting with b, for example bs_Symbol.
P.S. I don't need to be checked: you either use my libraries, or you don't. If something (some of my library) doesn't work correctly - let me know and I will correct it. And to ask questions - "Why does it work that way? - you need more knowledge, because "the obviousness is not on the surface".
You still have a lot to learn. So far, your assumptions are not true. My functions can serve different purposes at the same time (in order to reduce the code itself), in particular fGet_MarketInfo(). Everything is repeatedly thought out and nothing needs to be changed!
I understand what's there. But it's not clear why it's implemented this way.
For example, start with an experiment: declare a global variable in the EA body and try to call this variable from the linked library. Try to link the results to variable names that have a prefix starting with b, for example bs_Symbol.
You will not be able to use your libraries in their original form anyway, i.e. everything is bound there. Every function on a pack of others...
P.S. I don't need to be checked: you either use my libraries, or you don't. If something (some library of mine) isn't working properly - let me know and I'll fix it. And to ask questions - "Why does it work that way? - you need more knowledge, because "the obviousness doesn't lie on the surface".
I didn't mean to test it in any way... In fact, there's no doubt that it's written very competently. It's just that I don't quite understand everything, that's why I said I don't think so... I look, I think... But I don't understand everything. That's why I asked.
P.S. With bs_Symbol I still don't get it.