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:

… then search for subscript operator here:

… and analyse common coding mistakes in AFL

Here you can find the complete AmiBroker 6.20 User’s Guide

1 Like