Indicators: Open Interest

 

Open Interest:

The indicator shows t he parameter "Total volume of open positions - SYMBOL_SESSION_INTEREST".

Author: Vladimir Karputov

 

Hi.

Thank you for constructing this indicator.

But this indicator has a delay tick. Are you fixing this problem please?

 
miillad :

Hi.

Thank you for constructing this indicator.

But this indicator has a delay tick. Are you fixing this problem please?

? Provide a detailed description.

 
The command    "double interest=SymbolInfoDouble(Symbol(),SYMBOL_SESSION_INTEREST);"  has a one tick delay
With each new tick, the data previous tick appears
 
miillad :
The command    "double interest=SymbolInfoDouble(Symbol(),SYMBOL_SESSION_INTEREST);"  has a one tick delay
With each new tick, the data previous tick appears

Is this what you decided? Or did you read it in the documentation?

 
No, I have not read in the documentation
I showed the open transaction data with Comment () on the screen. By comparing this number and the table details
Files:
Untitled1.jpg  53 kb
 
miillad :
No, I have not read in the documentation
I showed the open transaction data with Comment () on the screen. By comparing this number and the table details

Please show, your MQL5 code for Comment.

 
this code
Files:
 
miillad :
this code

There are no delays. Absolutely no delays. Read the code carefully: the histograms show MAXIMUM and MINIMUM values. Histograms DO NOT SHOW the current value.

 

I wrote the codes that were all accurate, but the SYMBOL_SESSION_INTEREST command has a delay tick.

   double bid=SymbolInfoDouble(Symbol(),SYMBOL_BID);
   double ask=SymbolInfoDouble(Symbol(),SYMBOL_ASK);
   double last=SymbolInfoDouble(Symbol(),SYMBOL_LAST);   
   double vol=SymbolInfoInteger(Symbol(),SYMBOL_VOLUME);

   double interest=SymbolInfoDouble(Symbol(),SYMBOL_SESSION_INTEREST);  

 
miillad :

I wrote the codes that were all accurate, but the SYMBOL_SESSION_INTEREST command has a delay tick.


Did you invent it yourself or read it in the documentation? Where is the delay in the documentation?