| 
														
															@@ -78,13 +78,14 @@ func (strategy qqq) Handle(turn *sentio.Turn, market sentio.Market, rs sentio.Ri 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	for i := range orders { 
														 | 
														
														 | 
														
															 	for i := range orders { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		shouldClose := false 
														 | 
														
														 | 
														
															 		shouldClose := false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		side := util.SideOf(orders[i].GetIntent()) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		if orders[i].GetSymbol() == strategy.PositionSymbols()[sentio.LONG] && sentio.Action_SELL == turn.Action { 
														 | 
														
														 | 
														
															 		if orders[i].GetSymbol() == strategy.PositionSymbols()[sentio.LONG] && sentio.Action_SELL == turn.Action { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			shouldClose = true 
														 | 
														
														 | 
														
															 			shouldClose = true 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		} 
														 | 
														
														 | 
														
															 		} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		if orders[i].GetSymbol() == strategy.PositionSymbols()[sentio.BASE] && 
														 | 
														
														 | 
														
															 		if orders[i].GetSymbol() == strategy.PositionSymbols()[sentio.BASE] && 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			sentio.LONG == orders[i].Intent() && sentio.Action_SELL == turn.Action { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			sentio.LONG == side && sentio.Action_SELL == turn.Action { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			shouldClose = true 
														 | 
														
														 | 
														
															 			shouldClose = true 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		} 
														 | 
														
														 | 
														
															 		} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -93,7 +94,7 @@ func (strategy qqq) Handle(turn *sentio.Turn, market sentio.Market, rs sentio.Ri 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		} 
														 | 
														
														 | 
														
															 		} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		if orders[i].GetSymbol() == strategy.PositionSymbols()[sentio.BASE] && 
														 | 
														
														 | 
														
															 		if orders[i].GetSymbol() == strategy.PositionSymbols()[sentio.BASE] && 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			sentio.SHORT == orders[i].Intent() && sentio.Action_BUY == turn.Action { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			sentio.SHORT == side && sentio.Action_BUY == turn.Action { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			shouldClose = true 
														 | 
														
														 | 
														
															 			shouldClose = true 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		} 
														 | 
														
														 | 
														
															 		} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 |