Indicators: Open Interest

To add comments, please log in or register
Automated-Trading
146096
Automated-Trading  

Open Interest:

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

Author: Vladimir Karputov

miillad
31
miillad  

Hi.

Thank you for constructing this indicator.

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

Vladimir Karputov
Moderator
150983
Vladimir Karputov  
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.

miillad
31
miillad  
The command    "double interest=SymbolInfoDouble(Symbol(),SYMBOL_SESSION_INTEREST);"  has a one tick delay
With each new tick, the data previous tick appears
Vladimir Karputov
Moderator
150983
Vladimir Karputov  
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?

miillad
31
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
Files:
Untitled1.jpg 53 kb
Vladimir Karputov
Moderator
150983
Vladimir Karputov  
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.

miillad
31
miillad  
this code
Files:
Vladimir Karputov
Moderator
150983
Vladimir Karputov  
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.

miillad
31
miillad  

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);  

Vladimir Karputov
Moderator
150983
Vladimir Karputov  
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?

123
To add comments, please log in or register