Consider the economic optimisation problem connected with stock. We can buy (open long position), sell (open short position), close or do nothing. What is optimal (maximizing profit) control algorithm for trading (buy, sell or hold/wait) if we have known series of prices ($p_1, p_2, ..., p_T$)? Each opening of position requires fixed cost $J$. Each position has the same size. We can have only one position open at the moment. We can close and open position at the same time. I don't know is it good idea to model it using dynamic programming. Without costs problem is easy. Buying / selling in local supremum is solution. But using cost problem becomes more complicated.
2026-03-27 01:44:40.1774575880
Optimal control for buy / sell / hold with fixed cost
116 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in OPTIMIZATION
- Optimization - If the sum of objective functions are similar, will sum of argmax's be similar
- optimization with strict inequality of variables
- Gradient of Cost Function To Find Matrix Factorization
- Calculation of distance of a point from a curve
- Find all local maxima and minima of $x^2+y^2$ subject to the constraint $x^2+2y=6$. Does $x^2+y^2$ have a global max/min on the same constraint?
- What does it mean to dualize a constraint in the context of Lagrangian relaxation?
- Modified conjugate gradient method to minimise quadratic functional restricted to positive solutions
- Building the model for a Linear Programming Problem
- Maximize the function
- Transform LMI problem into different SDP form
Related Questions in OPTIMAL-CONTROL
- Do I really need quadratic programming to do a Model Predictive Controller?
- Transforming linear dynamical system to reduce magnitude of eigen values
- Hamiltonian minimization
- An approximate definition of optimal state trajectory of a discrete time system
- Reference request: Symmetric Groups and linear control systems
- Does the Pontryagrin maximum principle in sequential order result in same minimum?
- I can't get my Recursive Least Square algorithm work - What have I miss?
- Will LQR act like MPC in reality?
- Find which gain the process will be unstable?
- How do I find the maximum gain limit for a delayed system?
Related Questions in DYNAMIC-PROGRAMMING
- Dynamic programming for Knapsack problem
- DP algorithm for covering the distance between two points with a set of intervals
- Solution of an HJB equation in continuous time
- correctness for minimizing average completition time for scheduling problem with release times
- Zero-sum differential game
- An enclosing polygon with minimum area
- Divide set into two subsets of equal sum and maximum this sum
- Stochastic Dynamic Programming: Deriving the Steady-State for a Lottery
- How would you prove that a dynamic programming problem is solvable by a greedy algorithm?
- How to find minimal distances route for a trip of $t$ days, given distances for each stop?
Related Questions in LINEAR-CONTROL
- MIT rule VS Lyapunov design - Adaptive Control
- Do I really need quadratic programming to do a Model Predictive Controller?
- Positive definite solution of Homogeneous Lyapunov equation
- Transforming linear dynamical system to reduce magnitude of eigen values
- State space form of differential equation equal to constant
- Can $\mu$-analysis apply to robust D-stability analysis?
- Does the Pontryagrin maximum principle in sequential order result in same minimum?
- Will LQR act like MPC in reality?
- Find which gain the process will be unstable?
- IMC controller - What reference model should I use?
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
Better. Two points: (1) dynamic programming is not a model, it is a solution method for problems in optimal control. (2) Your problem is a problem in discrete optimization, not in optimal control. Namely, something like this:
Let $A$ be the constant size (amount) of a position; i.e., the amount of shares to be bought or sold (if I understand correctly).
Find a vector $(a_{1}, a_{2}, \ldots, a_{T})$ of actions, where each action $a_{k}$ is one of the four possible actions:
{ $OL$ (open long), $OS$ (open short), $C$ (lose), $SO$ (stay open), $SC$ (stay closed) },
with the objective of maximizing: $$ \sum_{\mbox{ all } a_{k} = OL} ( -J - p_{k} A) + \sum_{\mbox{ all } a_{k} = OS} ( -J + p_{k} A), $$ and subject to the constraints:
$a_{1} \neq $ $SO$ or $SC$.
If $a_{k} = C$, then $a_{k-1} = SO$ or $OL$ or $OS$. (A position can be closed only if previously opened.)
If $a_{k} = $ $OS$ or $OL$, then $a_{k-1} = SC$ or $C$.
$a_{T} = $ $C$ or $SC$.
I may not have understood all the details correctly, and did not address the simultaneous closing and opening of a position, but I hope this gives you the gist and convinces you that you have a MILP. Ping me if you need more detail.