tick()
{
if(priceC(0) <= priceO(0) and NumPendingShort <= 0)
{
OrderLimit = roundto( (priceO(0) - (priceO(0) * (BarRange/100)) ),PIP); // 0.2% Distance from current Price
MaxShort = 1;
enterShort();
}
else if(priceC(0) >= priceO(0) and NumPendingLong <= 0)
{
OrderLimit = roundto( (priceO(0) + (priceC(1) * (0.2/100)) ),PIP); // 0.2% Distance from current Price
MaxLong = 1;
enterLong();
}
}