Thanks Maurice & Said
Apologies for repeating your comments, but I’m just going to note a summary of what you’ve kindly shared with me:
PriceAtBuy:
– used in the Looping Code (not used in normal code) to see if you’re in the trade.
– a variable or flag that you can hold a value inside.
– the value per se doesn’t matter other than it needs to be > 1 to indicate that there’s a position on, or 0 if no position.
– no bar reference is given to it as we’re not looking for a bar by bar value, just a constant value until position is exited.
BuyPrice:
– Holds the variable LEPrice and is used to plot the entry price on the chart
– as it is black bold text, it must be a built in identifier (array)??