[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 272

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
And where is this variable set explicitly, if it's not a secret? :) I see in the libraryb-PSI@Base.mqh that it's only declared:
But there's essentially nothing further. In fact, the value of the current instrument is returned by default through Symbol(). So why do we need a variable here?
I have already answered this question in the section about multicurrency - current symbol = Symbol() - this is only a special case.
P.S. Your approach is interesting: you take somebody else's code and try "to fit" it to your logic - you have every right, but don't ask me: "Why your logic is different from mine!
I have already answered this question, where about multicurrency - current symbol = Symbol() - this is only a special case.
P.S. You have an interesting approach: you take someone else's code and try to "fit" it to your logic - you have every right, but don't ask me: "Why your logic is different from mine!
I'm not going to adjust it. I just want to study how it is implemented. But I will not copy anything. I'm interested to see how a pro thinks. That's the real reason. So, here it is.
I am looking at the void fGet_MarketInfo (string fs_Symbol, int fi_Ticket = 0) function:
This variable is not declared inside this function. It is not declared in other 2 base files (inclusion and function) either. It's not clear where to look for it. That's what I'm asking. I want to understand where it originally appeared at all, i.e. declared. If you don't mind telling me...
There is also one more strange thing with another variable. The following lines in thebool fCheck_LevelsBLOC function:
bda_Price[li_cmd] is first mentioned in theb-PSI@Base.mqh library:
bda_Price[2];
Elements of the array are not specified. So they are equal to zero each. It means that an expression whatever parameter of the li_cmd array will take the value 0?
Hello everyone. please respond to all who can create a script that increases the lots when opening a deal.
Are you opening a tender here for job satisfaction??? Usually it's not the tasks that satisfy...
If you don't understand something, ask us, we'll help you.
Or go to the job - there satisfy both you and the job ... for a fee
Is it possible to find out prices (Ask and Bid) in the history by time from the EA? For example Asc 10 min ago or 10 sec ago. There are known functions to get a time series of bars with opening and closing prices and Hai Lows in a certain period of time, but at a specific point in time how to know the Ask and Bid.
There is no Ask, only Bid! By the way, everyone would like that, myself included!
Asq no way, only Bid! By the way, everyone would like that, myself included!
Explain how to find out Bid 10 seconds ago preferably in code.
I asked about arrays earlier. Still don't seem to get it right. When you run it on the tester there is a division by zero. It means there is zero in some array. I cannot figure out where the error is. Code in appendix. Comments are in Russian in WORDe. Sorry about that. My Metaeditor does not support the Russian language.
Help me find the error(s). And if you don't mind explaining them.
Is it possible to find out prices (Ask and Bid) in the history by time from the EA? For example Asc 10 min ago or 10 sec ago. There are known functions of getting time series of bars with opening and closing prices and Hai Lows in a certain period of time, but at a specific point in time how to find out the Ask and Bid.
There is ticks.raw file in the folder /history/server/, from there you can theoretically get both Bid and Ask by the symbols from Market Watch for a short time before the current moment. Do a forum search in this direction... I can't say anything specific about the data storage mechanism in that file from memory.
I asked about arrays earlier. Still don't seem to get it right. When you run it on the tester there is a division by zero. It means there is zero in some array. I cannot figure out where the error is. Code in appendix. Comments are in Russian in WORDe. Sorry about that. My Metaeditor does not support the Russian language.
Help me find the error(s). And if you don't mind explaining them.
I recommend to write Print(to what we divide) before each division - you will immediately know where the zero is.
I recommend entering Print(to what we divide); before each division, you will immediately know where the zero is
.
There is only one division. And according to the CMM function (although it is full) it says that there is not enough data in the resulting array in the function. I cannot understand why. This is why I get division by zero.