Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 03:42:31 +0000



Post From: How to fix buy exit based on a study | Spreadsheet System for Trading

[2023-10-01 22:53:15]
Sawtooth - Posts: 4120
Have buy exit fixed on the value of a study, where the fixed candle is the candle of buy entry
You would need to create a persistent variable of the lower band's value at the signal candle, like this, e.g. in P3::
=IF(K4,BBlowerband,P4)
(This assumes a close of bar signal).

Here are some example formulas for persistent variables, though none are specific to your need:
Spreadsheet Example Formulas and Usage: Persistent and Incrementing Variables

So that you have a stoploss in the market, use Attached Orders (instead of cells L3/N3) and move its stop to the lower band value using the Trade Management by Study study.
Attached Orders: Study Controlled Targets and Stops
Date Time Of Last Edit: 2023-10-01 22:53:48