Hi,

I'm very new to programming and I somehow pieced together a scalping strategy algorithm that 'works'. I would appreciate constructive feedback (coding, strategy etc) from this awesome community.

The strategy is simple: 

Double EMA cross - buy when fast crosses above slow; avoid when fast crosses below slow.

def self.Initialize(self):

	self.ema = ExponentialMovingAverage("EMA", int(self.GetParameter("EMA")))
	self.RegisterIndicator(self.symbol, self.ema)
	self.SetWarmup(int(self.GetParameter("EMA")))

	self.ema1 = ExponentialMovingAverage("EMA", int(self.GetParameter("EMA1")))
	self.RegisterIndicator(self.symbol, self.ema1)
	self.SetWarmup(int(self.GetParameter("EMA1")))
	
def OnData(self, data: Slice):

	if not self.Portfolio[self.symbol].Invested:
            	if self.ema1.Current.Value <= self.ema.Current.Value and \
                	self.ema.Current.Value < self.Securities[self.symbol].Close:
                                	quantity = self.CalculateOrderQuantity(self.symbol, 1)
                                	self.entryTicket = self.LimitOrder(self.symbol, \
                                	quantity, \
                                	self.Securities[self.symbol].Close, "Entry order")

Thanks!