I am trying to set up auto-orders that will be triggered if some conditions are met. The condition may be triggered a few times during the day, and I don't want to add if I have already opened a position. I tried GetQuantity(), but the portfolio function doesn't work script in order rules. Any one has the same issues before and give some help? Thank you!
	
		
			
		
		
	
				
			 
				 
						 
 
		