Ok...I think this points to a misunderstanding that I have about programming with zorro. But that just comes from a hangover from programming with other software.

So to enter the market at, for example, open - 50 pips, I need to put this condition in to the if criteria so that when the market trades at that level, a market order is placed. So what do I put in the if brackets? I have tried some things and they don't seem to work. For example...

var shortentry = priceOpen() - (0.3 * (priceHigh(1)-priceLow(1)));

if (priceClose() == shortentry)
{
enterShort();
}

Yields no trades. Putting a < such that entering the trade the market trades through the entry level results in the same problem as before. I need to 'priceLast()' rather than a priceClose()...or I need to understand how to reference the last trade price. Does this make sense? I am just trying to get the basic opening range breakout working so that I can apply filters.