Support Board
Date/Time: Thu, 28 Nov 2024 12:39:03 +0000
Post From: How do I auto-update a take profit level to remain at a fixed amount from average e price?
[2023-05-06 04:29:16] |
Sawtooth - Posts: 4120 |
How do I auto-update a take profit level to remain at a fixed amount from average e price?
Move the Target with the Trade Management by Study studythat references the Spreadsheet Formula study's formula output that references the Trading: Position Average Price study, and the Trading: Position Quantity study. Use a formula like this in the Spreadsheet Formula study's Formula field: =IF(AND(ID3.SG1<>0,ID4.SG1>0),ID3.SG1+10,IF(AND(ID3.SG1<>0,ID4.SG1<0),ID3.SG1-10,0)) where ID3 is the Trading: Position Average Price study, and ID4 is the Trading: Position Quantity study. Date Time Of Last Edit: 2023-05-06 04:30:13
|