Download MetaTrader 5

Indicator Miscellaneous Questions - page 13

To add comments, please log in or register
whroeder1
15013
whroeder1  
    datetime a = iTime( Symbol(), 0, 0 );     // Get time of bar zero
    int      b = iBarShift( Symbol(), 0, a ); // Get shift of that time will always be zero.
Max Enrik
942
Max Enrik  

It's just for example - actually I use it with very different parameters but absolutely same method.

Thanks for mentioned it to me.

Max Enrik
942
Max Enrik  

@Mr. William - you said: " Get shift of that time will always be zero. "

Q:  Is it meaning only with that parameters or what, please?
Because I see my few indicators shows 0 ( zero / Current ) bar Price before I restart my MT4 platform, so can you answer me, please?

Thanks in advance.

( Absolutely I know for sure it's Price issue not Time issue - even that part of codes places in OnInit(). )

whroeder1
15013
whroeder1  
Max Enrik: @Mr. William - you said: " Get shift of that time will always be zero. "
    datetime a = iTime( Symbol(), 0, 0 );     // Get time of bar zero
    int      b = iBarShift( Symbol(), 0, a ); // Get shift of that time will always be zero.
The shift of Time[x] will always be x.
Max Enrik
942
Max Enrik  
whroeder1:
The shift of Time[x] will always be x.

I got it.

Thank you!

Max Enrik
942
Max Enrik  

#Indicator Buffers Value - Open

Can I give names to the buffers value, please?
( example: High Value, Middle Value, Low Value )

Thanks in advance.

honest_knave
Moderator
2417
honest_knave  
   SetIndexLabel(0,"High Value");
 
Max Enrik
942
Max Enrik  
honest_knave:

Thanks you so much more.
Max Enrik
942
Max Enrik  
#Indicator Buffers Value - Closed
1...678910111213
To add comments, please log in or register