Oh sorry, my fault..

in the running script its correct..

Code
            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();
					
			}
                      }

Last edited by steyr; 10/25/23 06:57.