Octopi Trader User Guide
Version 100+ Usage guide
Summary
New in OP V100
Version 100+ is now a “Strategies” centric builder. Signals, Orders, Studies (formerly Custom Studies), and a NEW “Variables” feature are no longer a prerequisite to begin creating strategies - everything is accessible within the Strategies window. Interface has gone through rounds of optimization: less user clicks, more intuitive button locations, reduction of redundant actions, etc.
What's new?
New Feature Highlight
New functionality:
-
Persistent “Variables” feature - allows creation of custom trade conditions that persist. Persistence begins and ends with separate signals user creates. These variables can be used inside of main trade signals, allowing implementation of complex multi-layered trade logic.
-
New, currently still experimental features:
-
Sierra Chart Control - allows single-click Sierra Chart replay and creation of custom replay profiles for individual trade and chart section testing. This alone will save you hours, days, and weeks of clicking.
-
Log and Monitor - opens a new external window to help visualize all of the trade condition variables. This helps track simple to most complex signals internal bits for users to have a better understanding of why strategy did or did not enter/exit/etc.
-
Force Activation - Shortcuts having to “Stop” replays while making changes. Less clicks
-
Configurations Manager - makes it easier to create and manage configs and config backups. Massively improved compared to prior versions!
-
Layout Configuration. Allows you to open and place your Octopi windows where you prefer them, and “Set” them in place. Re-open and position all by clicking “Apply”
-
Tagging functionality. Users can now organize configuration files using the tag system. Good visual filter to save your eyes and brain from searching through multiple lines of stuff.
-
Variables have been renamed to Aliases - same functionality as before.
-
ATBB Replay Time Sampling added under Trade Policies - no longer need to add anything under Signals to allow for ATBB replays, just check this box.
- Sierra Chart control buttons to Reset OP controller and end crashed SC process if it didn’t fully close out.
Operations
Main Interface "Operations" tab
Operations
Edit Configurations Opens separate config management interface. Buttons are self-explanatory, but I will list some of the usage to help with purpose behind this:
- Sharing configurations between Sierra instances, computers, and users.
-
Keeping backups of configurations in alternate locations to preserve work and provide historical ability to reference different config sets.
Activate Saves and Compiles any configuration changes to both local config file and Sierra Chart Octopi Trader study for execution. You must do this any time you make changes.
Save is useful to save progress that may or may not be able to be Activated. This will save your config, even if it has errors and does not activate, allowing you to work out the errors and not lose progress before Activation.
Activity Log Open opens Octopi action log that is designed to help you identify the exact sequence of events that took place during trade execution. This is a notepad file we keep inside of the SC directory to help with tracking and troubleshooting.
Operations Experimental
SC Control allows users to control Sierra Chart replays by creating and saving custom replay profiles. Requires setup.
SC Control setup: Inside SC, go to Global Settings -> Sierra Chart Server Settings -> UDP Port -> set value to 6420. Next, go to Studies -> Add Custom Study -> Octopi Controller -> Make sure it’s added as the top-most study on the list. If set up correctly, SC Control window will display Controller status “Connected” and Replay status like below:
SC Control Usage:
- Create New replay profile with appropriate settings (self-explanatory, mirrors SC settings)
- Match “Start Replay Paused” checkbox within SC Replay window
- DO NOT use SC Replay panel parallel to controller Start/Stop/Pause buttons!
- Only exception is you can change replay speed on SC mid-way through replay
- Controller will do the following fully automatically:
- Rewind chart to desired date/time (specific, or start of chart)
- Clear SIM (if configured)
- Enable Octopi study
- Begin replay
- Stop Replay & Disable Octopi Study
Log and Monitor
Log and Monitor allows live (or near-live when replay speed is too fast) asynchronous OP status logging and monitoring for both automatic internal status messages as well as user-configured values, studies, and custom conditions.
Activity Log tab mirrors information we put into the Activity Log file mentioned above, but this is done without interrupting SC replay process for maximum performance.
Signal/Studies Monitor is for tracking user-configured monitoring. Examples below, more on this later (and probably in a video)
Examples of user-configured monitors inside “Signals” via Highlight -> Right Click Menu:
Example 1 monitors a SC study subgraph value:
Example 2 monitors a condition inside the bracket (0 and 1 for true and false)
Resulting monitor looks like this:
Trade Policies
Global Max Risk sets maximum global (across all strategies within the same configuration) risk in POINTS. Risk is calculated based on each strategy's order sum of STOP order points.
Example: Two strategies entering at the same time, each with order of two contracts configured with 10 points stops will result in 40 points of risk. Limiting Global Risk to 30 points will do one of two things: prevent Strategy 2 from entering at the same time as Strategy 1, OR trim Strategy 2 order to only one contract out of two (See Order Trimming within Strategies).
Trade Protection is a Live-trading feature that detects gaps outside of defined order brackets and queues order for market exit. We recommend using this when you go LIVE.
Global Trading Sessions allows configuring global order execution times, as well as cancel/flatten actions for each. See example below to trade from 8AM to 11AM and Cancel any pending orders at 11, then resume trading at 1PM through 3PM canceling and flattening all positions at 3PM:
We recommend setting this to Trade 24 Hours and limiting Strategy execution window as well as creating planned exit signals. This is a secondary layer tool by design but can be used as primary if you must.
Reserved Bars sets a minimum number of bars for SC to replay from the start of the chart to allow for necessary studies to “come of age” before being used for Signal calculations. Example: If your signal is to wait for SMA 50 to cross SMA200, you should set this value to a minimum of 200. For 200 bars OP will not do anything, then will begin execution.
ATBB Replay Time Sampling allows Auto Trading Bar Based Replay (ATBB button in Sierra Chart)
Sierra Chart
One Resets Sierra Chart Controller study
Other finds and Ends Process for affected stuck Sierra Chart process without having to go though Task Manager and looking for specific instances.
Settings
Instance Name sets the window name. Useful when running multiple Octopi to keep organized.
Layout lets you Set and Apply (Open and re-place to Set Locations) all of the Octopi Windows you work with such as Controller, Monitor, and Main window.
Compiler location setting for advanced users that keep your compilers elsewhere.
Update Current and Pre-release - only go to Pre-Release if you’ve been instructed to or if you are adventurous. We don’t support Pre-Release versions for anybody other than the users we are working with to test these. If you upgrade and run into issues it’s on you!
Statistics exports data for QuantAnalyzer to use. See post about it here: https://discord.com/channels/1207787953116553279/1312635388489105418/1355999901846212892
Strategies
Main Interface "Strategies" tab
Strategies (Main)
Strategies are the center of Octopi execution. Most items involved in making one can now be created within, so for this reason I will only elaborate on items specific to Strategies window, and zoom in to individual components within their own section of this manual. I won’t cover obvious items such as Strategy Name or Enabled checkbox.
Start Time End Time allows your Strategy to execute ENTRIES during the specified time windows. You can configure multiple entry execution windows, but end time does not mean it will exit! It only means that it won’t enter past the End Time and exits must be managed by either Signals/Modifications or Global Trade Sessions under Trade Policies Tab of Operations window.
YOU MUST HAVE AT LEAST ONE CONFIGURED TIME FRAME OR STRATEGY WILL NOT ENTER!
Entry Signal, Order Setup - these will have their own section, but Signal is the reason for your trade to enter and Order is the bracket order OP will use to enter your trade.
Trade Position
- Long
- Short
- Get From Entry Price is a contrarian trading single setting that will auto-determine to go Long or Short based on “Long from below, Short from above” logic. Very optional, I don’t encourage people to use this but you can.
Order Entry Type - Octopi will auto-determine order type (Market, Limit, Stop) based on Entry Price configured below, so the user does not have to.
Current Price selected under Entry Price will trigger a Market order.
Limit or Stop will be used depending on Long vs Short configured above combined with entry price relative to target.
If you want to force limit/stop order instead of Market near current price, use Current Price Entry Price field with Entry Price Offset set to nearest tick up or down field below Entry Price
Risk Management - allow setting up maximum risk calculated based on sum of order stop values. If total calculated risk at the time of entry exceeds configured parameters, the strategy will not enter.
Allow Order Trimming checkbox allows for partial entries. It will calculate risk across all configured Stops and only allow to trade the Target/Stop pair that fits under the configured risk parameter.
Example: Risk Management setting is 25, Order has 3 dynamic stops equal to ATR value.
If ATR value is currently 5, maximum strategy risk is 15, entry is allowed with all 3 targets/stop pairs.
If ATR value is currently 10, maximum strategy risk is 30, only target/stop 1 and 2 pairs are allowed to enter. Target/Stop 3 will be trimmed off.
Strategies (Plugins)
Overall, there are three types of Plugins available categorized by time of effect: Placement, Pre-Fill, and Post-Fill. Each category will work at an appropriate time only. There is a column for Available vs Active to separate which plugins have been configured for specific Strategy. You may use Add >> or << Remove buttons, as well as double-click to check and configure Actively selected plugins.
Last Target Runner - converts last configured target (dynamic, see Order Trimming above) to take a larger configured target to allow for “runner”.
Example: order configured for 5 contracts, Max Risk allowed 3 contracts to enter, this plugin will take 3rd target and change it’s value to configured plugin value.
Cancel After Time - cancels strategy entry at expiration of configured number of bars since entry request. This will work with Renko bars as well.
Cancel Trade Signal - allows to cancel placed trade before it gets filled if any of the configured cancellation signals match. You can have multiple.
Exit After Interval - configurable trade exit after N number of bars. Good for strategies that should not be in more than N bars even if target/stop wasn’t reached yet.
Trade Cooldown - Prevents consecutive entries of the same strategy for configured number of bars or time.
Orders
Main Interface "Orders" tab
Orders
All orders OP manages MUST be created in pairs (target/stop). This feature/design does not restrict users from trading unknown target/defined stop fat tail strategies (more on this later).
Usage: Similar to SC, click Add x 2 to add a pair of Target / Stop. Highlight Target or Stop to change configuration. By default, Smart order type is used - we recommend keeping it that way for Market/Limit/Stop configuration that gets auto-determined at Strategies level. The order types will be added later based on individual needs. Sierra has dozens of orders, we don’t intend to just add them all here for the fun of doing it, but will do so if users need specifics such as Limit Chase or others Sierra offers.
Significant portion of Octopi benefit comes from the following order Value field, I will describe significance of each:
- Points Offset is an offset in points from configured entry price. Not from the current market price, but from the entry price. Ex: Market is at 105, target is 10 points but entry is at 120. The target will be 130.
- Currency Offset works the same as points offset, but lets you configure dollar value instead of points. OP will consult with SC symbol information and convert dollars to points/ticks for you.
- Study Offset is probably the most used in any automation that’s created with OP. This allows you to use standard offset logic as above, but takes the distance offset value from any Study included in SC or created by OP. Example of dynamic study offset value is pointing this to ATR Study will always return value of ATR study at the time of entry.
- Study Value is OPPOSITE of an offset. This places a target or stop at the exact chart VALUE instead of an offset from entry price. Example is placing stop at the VALUE of an opening range low. This could cause configuration issues if logic is wrong, so be careful.
Different Stop types are included. Configure them as you would your SC bracket order:
Signal Builder
Main Interface "Signals" tab
Signals
Signals are the core of any strategy. They return a True when all of the conditions described inside the signal are met. You can also configure a signal to return True if only some conditions are met, or specifically 3 out of any 5 conditions, etc. Anything is possible within a signal with built-in no-code builder and a freestyle code window.
There are four main sections to the Signal builder to be familiar with:
Custom Studies
Main Interface "Studies" tab
Studies
Studies are very similar to signals, except Signals return a True or False, Studies return a Value. These values can be used as trade entries, or order components, or anything else where calculating a custom value is needed in trading. Examples include Studies for Opening Range + 3 x ATR or a value difference between the last 2 bar closes. We encourage keeping Signals in Simple mode unless you are an advanced user and know how to code. Example of a Signal that returns value of SC study Subgraph “Close” minus 10 points:
Variables
Main Interface "Variables" tab
Persistent Variables
Variables, or Persistent Variables are made to further unlock configuration potential by allowing users to create custom values that take user-configured values based on signals. This is a more advanced menu and we don’t encourage diving in unless you have a specific need and have been directed by support to use these.
Variables are Set to a value via any Signal, either ones already configured, or a new one. Same Variables are then kept (persistantly) until Set again (or reset) but different signal. In the sample below we set a Variable named Test Var to 1 when NQ_3B_Long signal is matched, and then we set it to 2 when Signal EOD is matched.
Variables can be used inside of Signals as additional logic bits for entry, exit, or modification of trades.
Tags
All interface windows "Tags" tab and buttons
Tags
To create, simply go to Tags -> New -> Give your tag a name and a color