
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
Look at the CList record format. You are ignoring it.
Right! Thanks, I'll look into it further.
...................
I think "Yay! It's working!" (С)
I've attached the CDataBase template itself, it would be convenient - any structure (class) created like mine and let it either store data in memory (constructor without parameter) or, when adding a new element, dump it to disk (constructor with parameter)
SZZ: probably something else I will dopish, but in general I am satisfied with the result
I rarely use const and static modifiers, and I accidentally tried to "plug" a class into function body, have no idea how it works, but I found no error when testing
I intentionally put calls of SymbolInfoDouble() into separate functions f1()-f3() to unprint it
And the question itself, how much of this code works, where can be bugs? I want to minimize unnecessary calls, but the class somehow works inside the function, in general it works, but to me it should not work!
I rarely use const and static modifiers, and I accidentally tried to "plug" a class into function body, have no idea how it works, but I found no error when testing
I intentionally put calls of SymbolInfoDouble() into separate functions f1()-f3() to unprint it
And the question itself, how much of this code works, where can be bugs? I want to minimize unnecessary calls, but the class somehow works inside the function, in general it works, but for me it should not work!
It's OK. It will work.
It's fine. It will work.
Thank you!
i have tested in the code of test EA, i haven't seen any bugs, i have shifted TFs and unloaded EA from chart, it works as i expected, all variables with const static modifier are initialized once (it is interesting, that initialization is done before starting OnItin() - i unsigned all calls)
I improved the code, may be someone may need normalization of order volume with rounding(will not work for multicurrency Expert Advisors!!!)
You could also write it like this. The meaning is the same, but there are fewer letters. The l_ variable will be removed by the compiler.
You may also write it that way. The sense is the same, but there are fewer letters. The compiler will remove the l_ variable itself.
I've just written my post and here you are... I think the codes are almost identical )))) , the L_ variable is needed below, it's a part of the code for placing an order, I decided to tidy up my library
SZZ: I checked, but modifier const for an instance of vol class may not be written... less letters ))))
To find the number of characters in a lot and the lot size itself.
To find the number of characters in a lot and the lot size itself.
I have seen similar solutions, but my function _OrderSend(....) is for procedural style, not always convenient to use OOP for primitive EAs,
I decided to make a minimum number of callsSymbolInfoDouble() at first, and then I decided to get rid of additional call NormalizeVolume() - I tried to include _OrderSend() into the body, but the purpose was to receive all the trading environment once and then, when an order opens, to read its volume only,
I will try it and in general I am satisfied with the result, if I find any bugs, I will report them in the topic