Login Page - Create Account

Support Board


Date/Time: Fri, 19 Apr 2024 18:48:15 +0000



[User Discussion] - [User discussion / quick programming request] - ATR based stop / target backtesting

View Count: 341

[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
[2022-12-07 04:03:26]
T44 - Posts: 363
To clarify, I want to initiate trades manually, have the OCO bracket go in at some sane default, and then have the automated study adjust the stops and targets as required. I'm aware there are all sorts of gotchas in automating trading - I've looked at some ACSIL examples and it seems modifying the price of the closest stop and limit order should be sufficient. I don't need the ability to initiate trades or deal with quantities as I'll be supervising manually.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account