Merge pull request 'feat: WBS-1.3 entry_stage 무관 Time_Stop_Date 디폴트 60일 자동 산출' (#2) from feature/wbs-1.3 into main
Reviewed-on: http://192.168.123.100:8418/KimJaeHyun/myfinance/pulls/2
This commit is contained in:
@@ -504,9 +504,8 @@ function _addTickerGates_(ctx, trailingStopUpdates) {
|
||||
tp2Price = Math.round(avgCost * THRESHOLDS.TP_SAT_2); tp2Qty = q2;
|
||||
}
|
||||
// Time_Stop: stage_1=60D, stage_2=30D
|
||||
const stageLimit = posRec.entry_stage === "stage_1" ? THRESHOLDS.TIME_STOP_STAGE1
|
||||
: posRec.entry_stage === "stage_2" ? THRESHOLDS.TIME_STOP_STAGE2 : null;
|
||||
if (stageLimit !== null && posRec.entry_date) {
|
||||
const stageLimit = posRec.entry_stage === "stage_2" ? THRESHOLDS.TIME_STOP_STAGE2 : THRESHOLDS.TIME_STOP_STAGE1; // 기본 60일
|
||||
if (posRec.entry_date) {
|
||||
try {
|
||||
const entryMs = new Date(posRec.entry_date).getTime();
|
||||
if (!isNaN(entryMs)) {
|
||||
|
||||
Reference in New Issue
Block a user