신심리도 추가, 투자심리도 수정
This commit is contained in:
@@ -10,6 +10,7 @@ export interface CompositePeriodDef {
|
||||
williamsR: number;
|
||||
trixPeriod: number;
|
||||
vrPeriod: number;
|
||||
psyPeriod: number;
|
||||
newPsy: number;
|
||||
investPsy: number;
|
||||
dispShort: number;
|
||||
@@ -77,8 +78,8 @@ export function getCompositeDefaultPeriods(ind: string, def: CompositePeriodDef)
|
||||
case 'WILLIAMS_R': return { short: def.williamsR, long: Math.max(def.williamsR * 2, 28) };
|
||||
case 'TRIX': return { short: def.trixPeriod, long: Math.max(def.trixPeriod * 2, 24) };
|
||||
case 'VR': return { short: def.vrPeriod, long: Math.max(def.vrPeriod * 2, 20) };
|
||||
case 'PSYCHOLOGICAL':
|
||||
case 'NEW_PSYCHOLOGICAL': return { short: def.newPsy, long: Math.max(def.newPsy * 2, 24) };
|
||||
case 'PSYCHOLOGICAL': return { short: def.psyPeriod, long: Math.max(def.psyPeriod * 2, 24) };
|
||||
case 'NEW_PSYCHOLOGICAL': return { short: def.newPsy, long: Math.max(def.newPsy * 2, 20) };
|
||||
case 'INVEST_PSYCHOLOGICAL': return { short: def.investPsy, long: Math.max(def.investPsy * 2, 20) };
|
||||
case 'DISPARITY': return { short: def.dispShort, long: def.dispMid };
|
||||
default: return { short: 9, long: 20 };
|
||||
@@ -95,8 +96,8 @@ export function compositeValueField(ind: string, period: number): string {
|
||||
case 'WILLIAMS_R': return `WILLIAMS_R_VALUE_${period}`;
|
||||
case 'TRIX': return `TRIX_VALUE_${period}`;
|
||||
case 'VR': return `VR_VALUE_${period}`;
|
||||
case 'PSYCHOLOGICAL':
|
||||
case 'NEW_PSYCHOLOGICAL': return `PSY_VALUE_${period}`;
|
||||
case 'PSYCHOLOGICAL': return `PSY_VALUE_${period}`;
|
||||
case 'NEW_PSYCHOLOGICAL': return `NEW_PSY_VALUE_${period}`;
|
||||
case 'INVEST_PSYCHOLOGICAL': return `INVEST_PSY_VALUE_${period}`;
|
||||
case 'DISPARITY': return `DISPARITY${period}`;
|
||||
default: return `${ind}_VALUE_${period}`;
|
||||
@@ -117,7 +118,7 @@ const COMPOSITE_VALUE_PREFIX: Record<string, string> = {
|
||||
TRIX: 'TRIX_VALUE',
|
||||
VR: 'VR_VALUE',
|
||||
PSYCHOLOGICAL: 'PSY_VALUE',
|
||||
NEW_PSYCHOLOGICAL: 'PSY_VALUE',
|
||||
NEW_PSYCHOLOGICAL: 'NEW_PSY_VALUE',
|
||||
INVEST_PSYCHOLOGICAL: 'INVEST_PSY_VALUE',
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user