class_docstr: This strategy buys/sells upong the close price crossing
  upwards/downwards a Simple Moving Average.
  
  It can be a long-only strategy by setting the param "onlylong" to True
class_docstr_tok: ["This","strategy","buys\/sells","upong","the","close","price","crossing","upwards\/downwards","a","Simple","Moving","Average",".","It","can","be","a","long-only","strategy","by","setting","the","param","``","onlylong","''","to","True"]
code: def __init__(self):
      # To control operation entries
      self.orderid = None
  
      # Create SMA on 2nd data
      sma = btind.MovAv.SMA(self.data, period=self.p.period)
      # Create a CrossOver Signal from close an moving average
      self.signal = btind.CrossOver(self.data.close, sma)
      self.signal.csv = self.p.csvcross
  
file_path: backtrader/samples/writer-test/writer-test.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import datetime
  import backtrader
  import backtrader.feeds
  import backtrader.indicators
  from backtrader.analyzers import SQN
label_desc: Use image node_id 4 to create a new LongShortStrategy object from inherited base classes: bt with example: obj = LongShortStrategy()