-
-
Notifications
You must be signed in to change notification settings - Fork 20
Conditional Orders
This document details the conditional order framework provided by Jackrabbit Relay.
A Conditional order is an order where only the buying oder is given. The order provides the take profit (pips or percentage) and stop loss (pips or percentage) by which Oliver Twist
will manage the order.
Along with the various required order information, conditional orders have the following elements.
Property Name | Description |
---|---|
Conditional |
This is what tells the system that THIS order is conditional. |
ConditionalOneShot |
This item tell Relay that only ONE position is allowed for this assest. |
EnforceFIFO |
Required if you want to sell individual trades in an unbounded grid style technique. Forex ONLY. |
Direction |
Long/Short. You must exlicitly tell Oliver Twist which way you want this trade to go. |
SellAction |
How should this asset be managed? Close will sell ALL trades in this position. |
TakeProfit |
The desired take profit, eith as pips ("5p"), percentage ("1%"), or and absolute price ("9.49875"). |
StopLoss |
The desired stop loss in the same format as take profit (pips, percentage, absolute price). |
Here is what a conditional order ayload would look link. Comment and Link are not required, but very helpful, especially in tracing issues.
{
"Comment1","Standard order information",
"Action":"Buy",
"Exchange":"kucoin",
"Account":"MAIN",
"Asset":"BTC/USDT",
"USD":"20",
"RemapSymbol":"Yes",
"Link":"https://www.tradingview.com/chart/L0ejIBsJ/",
"Comment1":"Conditional order entries",
"Conditional":"Yes",
"Direction":"Long",
"SellAction":"Sell",
"TakeProfit":"1%",
"StopLoss":"20%",
"Identity":"YourIdentityString"
}
{
"Comment1","Standard order information",
"Action":"Buy",
"Exchange":"oanda",
"Account":"FrenchVanilla",
"Asset":"EURUSD",
"Units":"-1",
"RemapSymbol":"Yes",
"Link":"https://www.tradingview.com/chart/L0ejIBsJ/",
"Comment1":"Conditional order entries",
"Conditional":"Yes",
"EnforceFIFO":"Yes",
"Direction":"Short",
"SellAction":"Sell",
"TakeProfit":"5p",
"StopLoss":"161p",
"Identity":"YourIdentityString"
}
Please note that Jackrabbit Relay is not related to the Apache Jackrabbit project. Jackrabbit Relay is a standalone framework and API delivery system for automated algorithmic trading, designed for relaying JSON payloads that contain buy/sell order information between different systems (Charting software, forex brokers, cryptocrrency exchanges using REST). It is developed by Robert Darin and is not affiliated with or endorsed by the Apache Software Foundation or the Apache Jackrabbit project.
If you would like to help support this project financially, please click on the heart shaped sponsor's button in the right column of this page. I also have a merch store with some awesome and really cool products. Please visit supporting Jackrabbit for more options.
All subscriptions/sales go to the costs of sustaining Jackrabbit Relay. Thank you.
RAPMD Crypto: Automated algorithmic trading done right
Frequency Weighted OrderBook Analysis
Introduction
Jackrabbit Relay
Introduction
Risks
Disclaimer
Notes
Video
Supported Exchanges/Brokers
Security and firewall
Installation
Updating
Configuration files
Live Trading
Installation-and-Setup
Installation/Setup
Requirements
Stopping Version 1
Installing and setting up Version 2
Configuration
Reboot startup
Manual startup
Configuration
Configuration
Configuration files
Location and file names
File contents
Order types
Examples for the CCXT framework
Examples for the OANDA framework
Conditional Orders
JackrabbitRelay Order Payloads
Oliver Twist: Jackrabbit Relay conditional and orphan order manager
Unveiling Oliver Twist's Conditional Methodology
Managing Orphan Orders: The Limit-Only Approach
The Literary Significance of "Oliver Twist"
Supported-Exchanges-and-Brokers
Supported Exchanges/Brokers
Forex Brokers
Confirmed working brokers
Cryptocurrency Exchanges
Confirmed working exchanges
Theoretically supported
Known-Issues
Known Issues
Closing a position fails
BitMex
Phemex
ByBit
Python 3.10
Kucoin Futures/TradingView
Jackrabbit-Mimic
Jackrabbit Mimic
Introduction
Usage
Data Source Integration
Simple Setup Process
Understanding Differences
Educational Focus
Setup and Configuration
Wallets and history
How cryptocurrency wallets work
Long positions
Short positions
Alert/Signal messages
Long positions
Short positions
Supporting Jackrabbit Mimic
Testing-TradingView-connection
Testing TradingView connection
Testing method
Setup
DSR Testing
Force feeding payloads
Next Steps
Step-by-step guide to live trading with TradingView
Step-by-step guide to live trading with TradingView
Walk Through
Strategy Differences