Difference between High low

what is the difference between H-L
and H[0]-L[0]
if i store A=H-L and use Trace function to check A value i get different value
and when i do A=H[0]-L[0] then A value is different why so can anyone help ???
Thanks in advance

How about reading the documentation first.

1 Like

H & L are arrays (see documentation)

H[0] & L[0] are the first elements of those arrays

1 Like

Study this tutorial in details:
https://www.amibroker.com/guide/h_understandafl.html

… then search for subscript operator here:
https://www.amibroker.com/guide/a_language.html

… and analyse common coding mistakes in AFL
https://www.amibroker.com/guide/a_mistakes.html

Here you can find the complete AmiBroker 6.20 User’s Guide
https://www.amibroker.com/guide/

1 Like