Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 16:47:43 +0000



Post From: [User discussion / quick programming request] - ATR based stop / target backtesting

[2022-12-07 03:03:28]
T44 - Posts: 363
Looking for a suite of indicators which do the following:

Feature 1
-for each bar in the chart, simulates go short at bar close with a target 3x the ATR indicator and a stop 2x the ATR indicator
-color the bar red if selling the closing price was profitable
-supports reading the ATR study from a subgraph (which could be an overlay from another chart with a different bar interval!)

Feature 2
Order management study which sets OCO stop and target at 2x ATR below and 3x ATR above for a buy
Trails the stop by the minimum price of the last 5 bars

Feature 3
(to be run on a separate chart)
Trade study which automatically goes flat (by repricing the limit component of an existing OCO to bidprice-N ticks if long, N being customizable) on an alert (example, range of bar > X ticks AND bar open > close).

Feature 1 is to be used for 'backtesting by eye' on historical charts. Features 2&3 intended to be used for automating order placement rules in fast markets.

With some proof of concept code can customize this to my requirements, just running short of time, happy to offer a few hundred bucks for a decent solution.

Thanks.
Date Time Of Last Edit: 2022-12-07 03:04:10