/******************************************************************************************************* Title: QQQ Trading System for eSignal By: Divergence Software, Inc. Web: http://www.sr-analyst.com ======================================================================================================== Project Description: This indicator is a backtestable mean reversion trading system designed specifically for the QQQ Exchange Traded Fund (ETF). It is designed to be traded only on the Daily bar interval, and it is a Long-Only system (i.e, no short trades). In addition to displaying all historical signals, the system will generate new signals/alerts when run in realtime. Based on your account size and risk settings, the system will calculate the correct number of shares/contracts for each trade. You can also select a fixed number of shares/contracts if desired. Performance statistics are integrated into the display but they can be turned off if needed. The system will operate in a chart or in a watchlist. When loaded into a watchlist the statistics will be displayed for each symbol, making this a powerful tool for analyzing the system performance over a large basket of securities. And if/when you make changes to the system settings, the performance stats will be instantly updated in the watchlist. Once you find the system settings that yield the best performance in your basket of securities you can then fine-tune by running individual backtests using the eSignal integrated backtester. A trailing stop system (similar to SuperTrend) is fully integrated. Fixed profit targets (based on either points or a percentage of price) can be activated if desired. Indicator Parameters: ==================== Initial Account Size: Set the size of the account for testing purposes. The default is $100,000. Risk (%): Set the maximum risk per trade. The number of shares/contracts for each trade will be automatically calculated using Risk and Account size. The default Risk is 25%. Note that the account balance is updated after each trade to take into account the running PL. Brokerage: Set the Brokerage costs as a percentage of share/contract price. This is subtracted from the available account balance when calculating total shares/contracts for a trade. The default is 0.05%. Point Value: Set the $ value of a 1-point move in the security you are testing. The default is $1, which is correct for all US stocks. Note, when you are using this system in a watchlist to evaluate a large basket of securities, be sure that all symbols in that watchlist share the same Point Value. Auto-Calc Contracts?: Check this box if you want the system to auto-calculate the correct number of shares/contracts for each trade based on the Risk and available capital in the Account. If not checked then a fixed number of shares/ contracts will be used for each trade. The default is checked. Fixed Contracts: Specify the number of shares/contracts to use if Auto-Calc above is not checked. The default is 100. Subtract Brokerage Fees?: Check this box to subtract the calculated brokerage fees from the PL of each trade, which will be reflected in the statistics. The default is unchecked. Show Stats?: Check this box to display the performance statistics in the eSignal Cursor Window. The default is checked. Note that when run in a watchlist the statistics will always be displayed. Trigger Threshold: Select a value between 10.0 and 100.0. Default is 100.0. A lower value will generally improve system performance but will generate fewer trades. Use Momentum Filter?: Select true or false. If true, an internal momentum filter will be applied and only signals that pass this filter test will be triggered. The default is true. Stop Color: Select the color to use when plotting the stop line. Default is red. Target Color (if used): Select the color to use when plotting the target line. Default is teal. Long/Cover Signal Color: Select the color to use when drawing Long or Cover signals on the chart. Default is lime. Short/Sell Signal Color: Select the color to use when drawing Short or Sell signals on the chart. Default is red. Use Target?: Select true or false. If true then a fixed profit target will be placed whenever a new trade is entered. Target Logic: Select from "Use Points" and "Use Percentage". If "Use Points" is selected then the value that you input for Target (below) will be treated as points. If "Use Percentage" is selected then the value you input for Target will be treated as a percentage. Target (Points or %): Input the profit target amount. This value will be treated as either points or as a percentage based upon your selection in the Target Logic field above. ATR Stop Period: Select the period to use for calculating the ATR. Default is 15. # of ATRs: Select the number of ATRs to use when calculating the stop. The default is 2.0. Ratchet %: Set the value, as a percentage, for the stop ratchet mechanism. This mechanism will draw the stop closer to price at an increasing rate as new bars come in. Default is 0.005. Text Font Size (4-55): Select the font size to use for displaying trade signals on the chart. Default is 8. Use Sound Alerts?: Select true or false. Set this option to true to generate a sound alert whenever a signal is generated. Use Popup Alerts?: Select true or false. Set this option to true to generate a popup alert whenever a signal is generated. Use Email Alerts?: Select true or false. Set this option to true to generate an email alert whenever a signal is generated. Note that you must first configure your email settings using the eSignal Alerts Edit/Status Dialog off of the eSignal "View" menu in eSignal 10.x (or in the Application Properties section in eSignal 12.x). Alert WAV File: Use this option to set the WAV file that will play when a Sound Alert is triggered for a trade signal. Any sound file that exists in your eSignal Sound Files Root directory can be entered here. Remember to use the ".WAV" extension. Disclaimer: For educational purposes only! Obviously, no guarantees whatsoever and use at your own risk. *******************************************************************************************************/