Well, I think we need pointers on the Close, High and Low, according to the error message. The pointer being the [] bit.
When I use normal variables like you suggest the IF statement works a little better. Still not perfect for some reason. It seems to be a day late. Normally one would just adjust the pointers. But they are already 0 and 1. Anyway, I will keep playing with that one.
The bigger problem is why is the entry occurring at the close of every bar that meets the condition rather than a limit order at Dot11High[0]? The only exception is when the close is above Dot11High, the previous Dot11High becomes a stop entry, a day late.
As for the order in which to place scripts, this is something I totally don't understand. I am just following the basic format in the tutorials. I guess I also don't understand arrays. I have the Dot11High charted on my charting software. I can confirm the chart is correct and that each value is known when the bar opens (the live changing value is one bar in the future.) But I can't reference the array correctly or get the the value to be a limit order.
I might have to go commercial on this. Pay someone to create the basic strategy so that I have a correct basis to work with.