class_docstr: Shows how to create a simple FX CTA style strategy, using the TradingModel abstract class (backtest_examples.py
  is a lower level way of doing this).
class_docstr_tok: ["Shows","how","to","create","a","simple","FX","CTA","style","strategy",",","using","the","TradingModel","abstract","class","(","backtest_examples.py","is","a","lower","level","way","of","doing","this",")","."]
code: def load_parameters(self, br=None):
      if br is not None:
          return br
  
      ##### FILL IN WITH YOUR OWN BACKTESTING PARAMETERS
      br = BacktestRequest()
  
      # get all asset data
      br.start_date = "04 Jan 1989"
      br.finish_date = datetime.datetime.utcnow().date()
      br.spot_tc_bp = 0.5
      br.ann_factor = 252
  
      br.plot_start = "01 Apr 2015"
      br.calc_stats = True
      br.write_csv = False
      br.plot_interim = True
      br.include_benchmark = True
  
      # Have vol target for each signal
      br.signal_vol_adjust = True
      br.signal_vol_target = 0.1
      br.signal_vol_max_leverage = 5
      br.signal_vol_periods = 20
      br.signal_vol_obs_in_year = 252
      br.signal_vol_rebalance_freq = "BM"
      br.signal_vol_resample_freq = None
  
      # Have vol target for portfolio
      br.portfolio_vol_adjust = True
      br.portfolio_vol_target = 0.1
      br.portfolio_vol_max_leverage = 5
      br.portfolio_vol_periods = 20
      br.portfolio_vol_obs_in_year = 252
      br.portfolio_vol_rebalance_freq = "BM"
      br.portfolio_vol_resample_freq = None
  
      # Tech params
      br.tech_params.sma_period = 200
  
      # To make additive indices
      # br.cum_index = "add"
  
      return br
  
file_path: finmarketpy/finmarketpy_examples/tradingmodelfxtrend_example.py
imports: import datetime
  from findatapy.market import Market, MarketDataGenerator, MarketDataRequest
  from finmarketpy.backtest import TradingModel, BacktestRequest
  from finmarketpy.economics import TechIndicator
  from chartpy import Style
  from findatapy.util.dataconstants import DataConstants
label_desc: Use image node_id 2 for calling the TradingModelFXTrend_Example obj's underlying member method code with example usage: obj.load_parameters(br) and returns: br, br