Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1131

 
Where does open interest lie in MT5 on futures?
 
Сергей Таболин:

Not exactly. Each bid can contain a different number of lots.

You have 3 notes (total number of bids) of 5, 10 and 50 roubles (lots)(total 65 (total number of bids))....

.

Instead of "Volume of buy orders - total amount of ordersthe number of lots to buy"

It should be"Volume of buy orders- total number of buy lots"

 
ascerdfg:

Instead of "Volume of Buy Orders - Total Number of Bid Lots".

It should be"Volume of Buy Ord ers - total number of lots tobuy".

The words quantity and volume have a different meaning.

 
Сергей Таболин:

The words quantity and volume have different meanings.

And it should be mentioned in the Help!
 
ascerdfg:
And this should be stated in the hatpas!

No. You have to understand plain Russian correctly - it's unambiguous.

The volume of a bucket is the volume of liquid that can be put into the bucket.

The number of buckets is the number in units.

The total volume of all buckets is the volume of one bucket * the number of buckets available.

This, by the way, is the ordered volume.

There is also a fulfilled - how much liquid you have actually poured into the ordered volume.

 

I accidentally discovered that there can be functions in structures.


What is the fundamental difference between the codes (first class, second structure)

class A
  {
   int               a;
public:
   void              SetA(int aa)
     {
      a = aa;
     }
  };

//-------------------

struct B
  {
   int               b;
   void              SetB(int bb)
     {
      b = bb;
     }
  };
 
 void OnTick()
  {
   MqlTick last_tick;
   if(SymbolInfoTick(_Symbol,last_tick))
     {
      count+=count;
      Print(count);
     }
   else 
      Print("SymbolInfoTick() failed, error = ",GetLastError());
  }

counts a million per second. Why? I filtered it by _Symbol.

 
ascerdfg:

count counts a million a second. Why? I filtered it by _Symbol.

Change your avatar - it's impossible to take your questions seriously - totally fits the character. Hence the "Come on, TV, educate on..." style answers to you.

What is count initialized with ? Why do you increase count progressively?

 
Artyom Trishkin:

Change your avatar - it's impossible to take your questions seriously - totally fits the character. Hence the "Come on, television, educate on..." style answers to you.

What is count initialized with ? Why do you increase count progressively?

double count=1;
Is it a progression? Not an increment?
 
ascerdfg:
Is it a progression? Not an increment?
count+=count;

A harsh Chelyabinsk increment :-)

Reason: