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
Help, I can't find any information anywhere.
How can I find out the weighted average opening price of a position after several trades? PriceOpen() from CPositionInfo shows the price of the first trade, but I need the current price, obtained after several trades.
the interest is probably purely academic
how to make Q3 in C++ : public Q1, public Q2
and at the same time make the compiler understand what is expected of it.
What's wrong with this post? This is called multiple inheritance.
Yes, it's just that if prototypes have the same functions, it's more logical to do cascading inheritance.
Multiple inheritance is required if different set of virtual functions or explicit functions, and all virtuals or explicit functions must be available in descendant.
It is especially important when there already is a certain hierarchy, but it lacks some virtuals, not to rewrite the established classes multiple inheritance is done and the missing virtuals are virtualized in a parallel branch.
Yes, it's just that if prototypes have the same functions, it's more logical to do cascading inheritance.
Multiple inheritance is required if different set of virtual functions or explicit functions, and all virtuals or explicit functions must be available in descendant.
It is especially important when there is already a certain hierarchy but it lacks some virtuals, to avoid rewriting established classes multiple inheritance is done and missing virtuals are virtualized in a parallel branch.
What's wrong with this entry? It's called multiple inheritance.
call it what you like, but you still need to negotiate with the compiler.
and it seems the only agreement is to define Fn in Q2
Good afternoon.
How do I select the volume of open positions for all symbols at once?
if(PositionSelect(Symbol_)) open_volume = PositionGetDouble(POSITION_VOLUME) - This function only outputs the result for each symbol individually.
Good afternoon.
How do I select the volume of open positions for all symbols at once?
if(PositionSelect(Symbol_)) open_volume = PositionGetDouble(POSITION_VOLUME) - This function gives a result only for each symbol separately.
I would loop through all symbols and summarize. Approximately like this:
Didn't check for correctness (didn't compile at all).I would loop through all the characters and summarise. Like this:
I haven't checked it for correctness (I haven't compiled it at all).I thought there might be something like AccountInfoDouble(ACCOUNT_BALANCE) only by open positions. But I see I will have to loop through all the characters. Thanks.
I can't figure out why the Print function prints 0 instead of 40?