I am aware of verified badge requirement and am in the process of getting a license (awaiting reply to an email). As this is the presale/trial forum I would expect that simple questions like mine which may decide any future path would be acceptable.
I have read (several times) the suggested links.
Will try to improve my asking, but in the meantime I thought this would be such a simple thing (obviously not too simple as I had to ask).
AFL is dynamically typed. Which means that type of variable can change. The variable type depends on last assignment, so each assignment may change the type if you are assigning value that has different type.
In short Close is an array. False is constant equal to 0 (a number).
Note that numbers are accepted in places where functions expect arrays because of type coercion:
@garydown - you do NOT NEED array of zeros. NEVER. In all places that require array
you can use just 0. Scalar (plain number) can be used in ALL places that accept array.
So no, you should not write close-close as it is waste of resources. Write 0 instead.
I am slowly coming to an understanding (have read through the doco few times now).
Amended the code to "=0" as suggested,
The next reference to the Buy variable does actually change it from a number to an array.