Skip to content

Conditional Orders

Rose Heart edited this page Jul 7, 2023 · 4 revisions

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.

Conditional Payload Synopsis

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).

Example Conditional Order

Here is what a conditional order ayload would look link. Comment and Link are not required, but very helpful, especially in tracing issues.

Example for a cryprocurreny exchange

{
  "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"
}

Example for OANDA

{
  "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"
}

RAPMD Crypto: Automated algorithmic trading done right

Jackrabbit support server

JSON Validator

Frequency Weighted OrderBook Analysis

Advanced Research

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


Identity

Identity


Configuration

Configuration
Configuration files
Location and file names
File contents
Order types
Examples for the CCXT framework
Examples for the OANDA framework


Orders

JackrabbitRelay Order Payloads
Payload Synopsis
Order Types
Actions
Examples


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


Virtual-Exchange-Broker-DSR

DSR (Duplicate Signal Remover)
Log Files


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


Logs

Logs
Files
JackrabbitRelay
PlaceOrder


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


Additional Programs

Additional Programs


Roadmap

Roadmap
Finished
In Progress
Future Plans


Supporting-Jackrabbit

Supporting Jackrabbit and it's future development
Current patrons and subscribers
The cost of open source
Supporting

Terms-and-Definitions

Terms and Definitions

Clone this wiki locally