Upload
others
View
1
Download
0
Embed Size (px)
Citation preview
SmartScript Settings
Using This ManualThis manual covers the settings in the Build-A-Bot modal and can be used as a reference guide if you have questions about any of the inputs.
We detail and show screenshots for ONLY the Buy Settings. All Buy Settings are also available on the Sell side. We did not see a reason to double the length of the manual just for the sake of showing both Buy and Sell Settings.
Convert Your System For Build-A-BotThe easiest way to think of the Build-A-Bot Settings Modal and convert your trading system into a format that make sense is using “If / Then” statements. Like this:
IF the Close Price Is Crossing Above the Donchian Channel Upper, THEN Sell
This would be a single Trigger.
It may not seem very robust, but you can do a lot with “If Then” statements, especially when you use “And”. Every “And” could be considered a Filter:
IF the Close Price Is Crossing Below the Donchian Channel Lower, AND the RSI is Below 30, THEN Buy
This is a Trigger and 1 Filter.
IF the Close Price Is Crossing Below the Donchian Channel Lower, AND the RSI is Below 30, AND the MACD Is Greater Than MACD Signal, AND Alligator Jaws Are Greater Than Alligator Lips, THEN Buy
This is a Trigger and 3 Filters.
NOTE: IF you cannot explain your system using this format, THEN your system may be too complicated OR your rules may not be as defined as you thought.
Input Modal1. Visualization
This allows the SmartScript to draw objects, such as the Backtest Arrows.
2. Allow Live Trading
This allows the SmartScript to place trades on your account and displays the Lot Sizes.
3. Use Backtest
This tests the conditions you set in the SmartScript and displays the results.
4. Place Buy Trades
This allows the SmartScript to place Buy Trades and displays the Buy Trade Settings.
5. Place Sell Trades
This allows the SmartScript to place Sell Trades and displays the Sell Trade Settings.
6. Edit Indicator Settings
This Dropdown Menu allows you to select an indicator to change its settings.
Allow Live Trading1. Check the Allow Live Trading checkbox to
display Lot Size Type and Lot Size
2. There are two types of Lot Size:
Fixed Lots
Risk Percent
3. Enter the Lot Size amount:
If Fixed Lots is selected, this will be the Lot Size for all trades placed.
If Risk Percent is selected, enter a Percent value; 1 is 1%, 2 is 2%, 10 is 10%, etc.
Risk Percent uses the stop loss and the value you enter here to determine the Lot Size (so if you are stopped out then you only lose this percent).
IMPORTANT!
If you select Risk Percent, then you should use a Fixed Pip Exit or ATR Exit.
If you use an Indicator Exit or Dollar Profit Target, then the Stop Loss used for the Risk Percent will default to 100 pips.
Use Backtest1. Check the “Use Backtest” checkbox to
display Optimize Filters, Backtest Candles, and Show Backtest Arrows.
2. Optimize Filters
Select this if you are using 1 or more filters and would like to see how each one performs.
If this is selected, then the first test uses ALL Filters, the second test uses NO Filters, and all other tests use the Trigger and one Filter.
This allows you to see how each of the Filters performs when paired with the Trigger so you can determine if any of them are not effective Filters.
3. Backtest Candles
This is the number of candles back you want to run the backtest on.
IMPORTANT! Be sure you have enough candles on the chart to perform the backtest.
4. Show Backtest Arrows
Check this box if you want Arrows to display where trades would have been opened and closed.
Place Buy Trades1. Check this box to display the Buy Trade
inputs.
2. Trigger Source
1. This is the first condition in your Trigger, think of it as the first half of an “If / Then” statement. For example, “IF the CCI Is Crossing Above 100,THEN Buy”
3. Buy Trigger Condition
1. This is a brief expression that describes how the Trigger Source is related to the Trigger Signal. For example, “IF the CCI Is Crossing Above 100, THEN Buy”
4. Buy Trigger Signal
1. This is the variable that the Trigger Source is being compared to. For example, “IF the CCI Is Crossing Above 100, THEN Buy”
IMPORTANT!
Some indicators cannot be compared to other indicators, like the RSI or Stochastic which are scaled 0-100. In this case, the Signal would need to be a “Custom Value”.
Buy Trigger SourceThis Dropdown Menu has a list of indicators and price values.
IMPORTANT!
If something in this Dropdown has a “2” then you can use multiple variations of it for your trading.
For example, use a 200 Period “Simple Moving Average” in a Trigger or Filter, then use the 50 Period “Simple Moving Average 2” for the Exit.
Moving Average and Moving Average 2 have additional options, like to use an Exponential Moving Average.
Buy Trigger ConditionThis Dropdown Menu provides you with the available conditions that can be used to compare the Trigger Source to the Trigger Signal.
1. “Is Crossing Above” means the Trigger Source is below the Trigger Signal and on the next candle it is above the Trigger Signal. “Is Crossing Below” is the opposite.
2. “Is Going Up” means the Trigger Sourcehas been increasing for the last 3 candles.“Is Going Down” is the opposite.
3. “Is Turning Up” means the Trigger Sourcewas going down and the most recentcandle increases in value. “Is Turning Down” is the opposite.
Buy Trigger SignalThis Dropdown Menu is the same as theDropdown Menu for the Buy Trigger Source. Select an appropriate comparison for what you selected as the Trigger Source.
Examples:
1. Trigger Source – CCI
Trigger Condition – Is Crossing Above
Trigger Signal – Custom Value (100)
2. Trigger Source – RSI
Trigger Condition – Is Crossing Below
Trigger Signal – Custom Value (30)
3. Trigger Source – Close Price
Trigger Condition – Is Crossing Above
Trigger Signal – Simple Moving Average
Use Buy FiltersThe Filter inputs are the same as the Trigger inputs.
1. Check this box to enable using Filters and display the inputs for 3 separate Filters.
2. Use Buy Filter 1. Check this box to display the Filter 1 Source, Filter 1 Condition, and Filter 1 Signal.
3. Use Buy Filter 2. Check this box to display the Filter 2 Source, Filter 2 Condition, and Filter 2 Signal.
4. Use Buy Filter 3. Check this box to display the Filter 3 Source, Filter 3 Condition, and Filter 3 Signal.
IMPORTANT!
Filters usually use Conditions like “Is GreaterThan” or “Is Between”. However, they can technically be any of the conditions.
Time of Day Filter1. Use Buy Time of Day Filter. Check this box
to display the Start and End times if you want to only trade during certain hours of the day.
Buy Time of Day Start. This is the time of day when Build A Bot can start placing trades.
Buy Time of Day End. This is the time of day when the Build A Bot will stop placing trades.
Candle Type Filter1. Use this Dropdown menu to select the
type of candle that has to close in order forit to place a trade.
1. Either means the candle can be Bullish or Bearish, so it basically disables this filter.
2. Bullish means that in order for a trade to beplaced, the most recent candle had to be a Bullish candle (the Close Price is greater than the Open Price)
3. Bearish means that in order for a trade to be placed, the most recent candle had to be a Bearish candle (the Close Price is less than the Open Price)
Manage Buy Exits1. Check this box if you want the SmartScript to
close your trades for you.
2. Buy Exit Criteria
Fixed Pip Amount
This allows you to set a Profit Target and a Stop Loss
Fixed Dollar Amount
Set a Profit Target in your account currency
Indicator
Source, Condition, and Signal inputs allow you to set a Trigger that would close your trades. For example:
Close Price Is Crossing Above Simple Moving Average
After X Candles
Enter the number of candles your trade can be open. “5” would mean the trade closes in 5 candles
Close of Candle in Profit
The FIRST candle that closes with your trade in profit will close your trade.
Use ATR Value
You can set a Multiplier for the ATR for Profit and Stop.
Edit Indicator SettingsTo change the settings of any of the indicators you are using in your system, select the indicator from this Dropdown menu and it will display the input variables for that particular indicator.
For example:
1. Simple Moving Average
1. Period (Default: 200)
2. Bollinger Bands
1. Period (Default: 20)
2. Deviations (Default: 2.0)
3. MA Type (Default: simple)