Interactive Brokers TWS API automated trading tool with a GUI
Budget: $250 – $750 USD
I need a trading bot that can work 24/7 and execute trades in a following manner:
1. Detect an inside bar on a 15-min candle chart (inside bar being defined as a bar with lower high and higher low than previous bar)
2. Trade the subsequent candle using following triggers:
a) If the price breaks the inside bar's high, buy at limit order (1 tick above the inside bar high), then take profit at a pre-defined level (i.e. 0.169 extension of the inside bar's height). There must be stop-loss (limit order) attached set as 0.5 of the inside bar's height.
b) If the price breaks the inside bar's low, sell at limit order (1 tick below the inside bar high), then take profit at a pre-defined level (i.e. 0.169 extension of the inside bar's height). There must be stop-loss (limit order) attached set as 0.5 of the inside bar's height.
- both a) and b) must be placed simultaneously and remain valid for a full duration of the new bar (i.e. 15 min), then the order that was not triggerred must be cancelled along with profit-taking and stop-loss orders attached to him.
allow for a dollar-defined risk. This means: number of contracts to be bought or shorted must be calculated based on inside bar's stop-loss level.
For example: the inside bar has 2 dollars height (high at USD 301, low at USD 299) and the stop-loss level is set as 0.5 of the height --> 1 dollar.
If I want this trade to have a total risk USD 100, the bot must buy (or sell) 100 shares
I would appreciate some simple UI, as the key variables must be customizable:
- candle chart frequency (i.e. 3,5,15-min)
- instrument
- entry levels (i.e. 1,2,3 ticks above inside bar)
- stop loss level (50% of inside bar's height, 30% etc.)
- profit-taking level (i.e. 0.169, 0.236, 0.5 etc)
- option to take partial profit after hitting 0.169, and the rest after hitting 0.236
1. Detect an inside bar on a 15-min candle chart (inside bar being defined as a bar with lower high and higher low than previous bar)
2. Trade the subsequent candle using following triggers:
a) If the price breaks the inside bar's high, buy at limit order (1 tick above the inside bar high), then take profit at a pre-defined level (i.e. 0.169 extension of the inside bar's height). There must be stop-loss (limit order) attached set as 0.5 of the inside bar's height.
b) If the price breaks the inside bar's low, sell at limit order (1 tick below the inside bar high), then take profit at a pre-defined level (i.e. 0.169 extension of the inside bar's height). There must be stop-loss (limit order) attached set as 0.5 of the inside bar's height.
- both a) and b) must be placed simultaneously and remain valid for a full duration of the new bar (i.e. 15 min), then the order that was not triggerred must be cancelled along with profit-taking and stop-loss orders attached to him.
allow for a dollar-defined risk. This means: number of contracts to be bought or shorted must be calculated based on inside bar's stop-loss level.
For example: the inside bar has 2 dollars height (high at USD 301, low at USD 299) and the stop-loss level is set as 0.5 of the height --> 1 dollar.
If I want this trade to have a total risk USD 100, the bot must buy (or sell) 100 shares
I would appreciate some simple UI, as the key variables must be customizable:
- candle chart frequency (i.e. 3,5,15-min)
- instrument
- entry levels (i.e. 1,2,3 ticks above inside bar)
- stop loss level (50% of inside bar's height, 30% etc.)
- profit-taking level (i.e. 0.169, 0.236, 0.5 etc)
- option to take partial profit after hitting 0.169, and the rest after hitting 0.236