📄 strings.cpp.svn-base
字号:
// strings.cpp : implementation file
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1997 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft Foundation Classes product.
#include "StdAfx.h"
#include "Qianlong.h"
#include "Shenglong.h"
#include "SelfDB.h"
#include "Strings.h"
#ifdef CLKLAN_ENGLISH_US
char CQianlong::m_szDataType[] = "QianLong";
char CShenglong::m_szDataType[] = "Salon";
char CSelfDB::m_szDataType[] = "Ninebulls-Stock";
#else
char CQianlong::m_szDataType[] = "钱龙";
char CShenglong::m_szDataType[] = "胜龙";
char CSelfDB::m_szDataType[] = "策略为王";
#endif
//////////////////////////////////////////////////////////////////////////////////
// 字符串
#ifdef CLKLAN_ENGLISH_US
char sz_stockname_fund[] = "基金";
char sz_stockname_bond[] = "债券";
char sz_stockname_index[] = "指数";
char sz_stockname_bondindex[] = "国债指数";
char sz_stockname_bondindexcorp[] = "企债指数";
#else
char sz_stockname_fund[] = "基金";
char sz_stockname_bond[] = "债券";
char sz_stockname_index[] = "指数";
char sz_stockname_bondindex[] = "国债指数";
char sz_stockname_bondindexcorp[] = "企债指数";
#endif
//////////////////////////////////////////////////////////////////////////////////
// 指标买卖信号字符串
#ifdef CLKLAN_ENGLISH_US
char its_sellintense[] = "Strong Sell";
char its_sell[] = "Sell";
char its_sellfeeble[] = "Faintly Sell";
char its_nothing[] = "Nothing";
char its_buyfeeble[] = "Faintly Buy";
char its_buy[] = "Buy";
char its_buyintense[] = "Strong Buy";
char itsc_nothing[] = "nothing";
char itsc_deviateonbottom[] = "deviate on bottom";
char itsc_deviateontop[] = "deviate on top";
char itsc_goldenfork[] = "golden fork";
char itsc_deadfork[] = "dead fork";
char itsc_long[] = "long";
char itsc_short[] = "short";
char itsc_overbought[] = "overbought";
char itsc_oversold[] = "oversold";
char itsc_support[] = "support";
char itsc_resistance[] = "resistance";
#else
char its_sellintense[] = "强烈卖出";
char its_sell[] = "卖出";
char its_sellfeeble[] = "微弱卖出";
char its_nothing[] = "无";
char its_buyfeeble[] = "微弱买进";
char its_buy[] = "买进";
char its_buyintense[] = "强烈买进";
char itsc_nothing[] = "无";
char itsc_deviateonbottom[] = "底背离";
char itsc_deviateontop[] = "顶背离";
char itsc_goldenfork[] = "金叉";
char itsc_deadfork[] = "死叉";
char itsc_long[] = "多头强势";
char itsc_short[] = "空头强势";
char itsc_overbought[] = "超买";
char itsc_oversold[] = "超卖";
char itsc_support[] = "支撑";
char itsc_resistance[] = "压力";
#endif
//////////////////////////////////////////////////////////////////////////////////
// 指标字符串
// 给定技术指标唯一编号,返回技术指标中文名称
CSPString AfxGetSTTName( UINT nTech )
{
static CSPString stt_names[STT_MAX+1];
SP_ASSERT( STT_MAX >= 0 );
if( stt_names[0].GetLength() <= 0 )
{
// stt_names
stt_names[0] = "STTNames";
#ifdef CLKLAN_ENGLISH_US
// K线属性类
stt_names[STT_MA] = ("Moving Average");
stt_names[STT_BBI] = ("BBI");
stt_names[STT_BOLL] = ("Boollinger Bands");
stt_names[STT_PV] = ("Price/Volume");
stt_names[STT_SAR] = ("Stop And Reverse");
stt_names[STT_DJ] = ("Superposition");
stt_names[STT_CW] = ("Chips Distribution");
// 趋势类
stt_names[STT_MACD] = ("Moving Average Convergence/Divergence");
stt_names[STT_MIKE] = ("Mike Base");
stt_names[STT_PSY] = ("Psychological Line");
// 能量类
stt_names[STT_VOLUME] = ("Volume");
stt_names[STT_NVI] = ("Negative Volume Indicator");
stt_names[STT_PVI] = ("Positive Volume Indicator");
stt_names[STT_VR] = ("Volume Ratio");
stt_names[STT_VROC] = ("Volume Rate Indicator");
stt_names[STT_OBV] = ("On Balance Volume");
stt_names[STT_MOBV] = ("Moving On Balance Volume");
stt_names[STT_MFI] = ("Money Flow Indicator");
stt_names[STT_VMACD] = ("Volume Moving Average Convergence/Divergence");
stt_names[STT_WVAD] = ("William's Variable Accumulation Distribution");
stt_names[STT_EMV] = ("Ease of Movement Value");
stt_names[STT_VRSI] = ("Volume Relative Strength Indicator");
stt_names[STT_NVRSI] = ("New Volume Relative Strength Indicator");
stt_names[STT_AD] = ("Accumulation/Distribution");
stt_names[STT_CI] = ("Cumulation Indicator");
// 摆动类
stt_names[STT_KDJ] = ("Stochastics");
stt_names[STT_R] = ("William's Overbought/Oversold Indicator");
stt_names[STT_RSI] = ("Relative Strength Indicator");
stt_names[STT_BIAS] = ("Bias");
stt_names[STT_MTM] = ("Momentum");
stt_names[STT_DMI] = ("Directional Movement Indicator");
stt_names[STT_ROC] = ("Rate Of Change");
stt_names[STT_CCI] = ("Commodity Channel Indicator");
stt_names[STT_CV] = ("Chavkin");
stt_names[STT_ARBR] = ("AR BR");
stt_names[STT_CR] = ("CR");
stt_names[STT_OSC] = ("Oscillator");
stt_names[STT_UOS] = ("Ultimate Oscillator");
stt_names[STT_MAOSC] = ("Moving Average Oscillator");
stt_names[STT_36BIAS] = ("3-6 Bias");
stt_names[STT_DPO] = ("Detrended Price Oscillator");
stt_names[STT_KST] = ("Know Sure Things");
// 其他类
stt_names[STT_REI] = ("Range Expansion Indicator");
stt_names[STT_DMKI] = ("Demaker Indicator");
stt_names[STT_PCNT] = ("Percent");
stt_names[STT_HLC] = ("Highest and Lowest and Close Price");
stt_names[STT_CDP] = ("CDP");
stt_names[STT_ASI] = ("Accumulation Swing Indicator");
stt_names[STT_ATR] = ("Average True Ranger");
// 策略为王指标类
stt_names[STT_CYO] = ("Cycle Oscillator");
stt_names[STT_DCYO] = ("Degaussed Cycle Oscillator");
stt_names[STT_HSL] = ("Relative Change Hands");
stt_names[STT_DPER] = ("Detrended Percent Oscillator");
#else
// K线属性类
stt_names[STT_MA] = ("移动平均线");
stt_names[STT_BBI] = ("多空指标");
stt_names[STT_BOLL] = ("布林带");
stt_names[STT_PV] = ("汇证均价线");
stt_names[STT_SAR] = ("停损点转向指标");
stt_names[STT_DJ] = ("叠加图");
stt_names[STT_CW] = ("筹码分布图");
// 趋势类
stt_names[STT_MACD] = ("指数平滑异同移动平均线");
stt_names[STT_MIKE] = ("麦克指标");
stt_names[STT_PSY] = ("心理线");
// 能量类
stt_names[STT_VOLUME] = ("成交量");
stt_names[STT_NVI] = ("负成交量指标");
stt_names[STT_PVI] = ("正成交量指标");
stt_names[STT_VR] = ("容量比率");
stt_names[STT_VROC] = ("成交量变动率指标");
stt_names[STT_OBV] = ("能量线");
stt_names[STT_MOBV] = ("主力进出");
stt_names[STT_MFI] = ("资金流动指数");
stt_names[STT_VMACD] = ("量指数平滑异同移动平均线");
stt_names[STT_WVAD] = ("威廉变异离散量");
stt_names[STT_EMV] = ("简易波动指标");
stt_names[STT_VRSI] = ("量相对强弱指标");
stt_names[STT_NVRSI] = ("新量相对强弱指标");
stt_names[STT_AD] = ("聚/散指标");
stt_names[STT_CI] = ("累积指数");
// 摆动类
stt_names[STT_KDJ] = ("随机指标");
stt_names[STT_R] = ("威廉指标");
stt_names[STT_RSI] = ("相对强弱指标");
stt_names[STT_BIAS] = ("乖离率");
stt_names[STT_MTM] = ("动量指标");
stt_names[STT_DMI] = ("动向指标");
stt_names[STT_ROC] = ("变动率指标");
stt_names[STT_CCI] = ("顺势通道指标");
stt_names[STT_CV] = ("佳庆指标");
stt_names[STT_ARBR] = ("人气意愿指标");
stt_names[STT_CR] = ("中间意愿指标");
stt_names[STT_OSC] = ("摆动量");
stt_names[STT_UOS] = ("极摆动指标");
stt_names[STT_MAOSC] = ("移动平均摆动量");
stt_names[STT_36BIAS] = ("3减6日乖离");
stt_names[STT_DPO] = ("去势价格摆动指数");
stt_names[STT_KST] = ("确然指标");
// 其他类
stt_names[STT_REI] = ("范围膨胀指数");
stt_names[STT_DMKI] = ("迪马克尔指标");
stt_names[STT_PCNT] = ("幅度比");
stt_names[STT_HLC] = ("幅度分析");
stt_names[STT_CDP] = ("逆势操作指标");
stt_names[STT_ASI] = ("累积摆动指标");
stt_names[STT_ATR] = ("均幅指标");
// 策略为王指标类
stt_names[STT_CYO] = ("周期摆动量");
stt_names[STT_DCYO] = ("去噪周期摆动量");
stt_names[STT_HSL] = ("相对换手率");
stt_names[STT_DPER] = ("去势百分比指标");
#endif
}
if( nTech >= STT_MIN && nTech <= STT_MAX )
{
return stt_names[nTech];
}
if( nTech >= STT_USER_MIN )
{
return CTechUser::GetTechUserName( nTech );
}
return "";
}
// 给定技术指标唯一编号,返回技术指标英文简称
CSPString AfxGetSTTShortName( UINT nTech )
{
static CSPString stt_shortnames[STT_MAX+1];
SP_ASSERT( STT_MAX >= 0 );
if( stt_shortnames[0].GetLength() <= 0 )
{
// stt_shortnames
stt_shortnames[0] = "STTShortNames";
// K线属性类
stt_shortnames[STT_MA] = ("MA");
stt_shortnames[STT_BBI] = ("BBI");
stt_shortnames[STT_BOLL] = ("BOLL");
stt_shortnames[STT_PV] = ("P/V");
stt_shortnames[STT_SAR] = ("SAR");
stt_shortnames[STT_DJ] = ("DJ");
stt_shortnames[STT_CW] = ("CW");
// 趋势类
stt_shortnames[STT_MACD] = ("MACD");
stt_shortnames[STT_MIKE] = ("MIKE");
stt_shortnames[STT_PSY] = ("PSY");
// 能量类
stt_shortnames[STT_VOLUME] = ("VOLUME");
stt_shortnames[STT_NVI] = ("NVI");
stt_shortnames[STT_PVI] = ("PVI");
stt_shortnames[STT_VR] = ("VR");
stt_shortnames[STT_VROC] = ("VROC");
stt_shortnames[STT_OBV] = ("OBV");
stt_shortnames[STT_MOBV] = ("MOBV");
stt_shortnames[STT_MFI] = ("MFI");
stt_shortnames[STT_VMACD] = ("VMACD");
stt_shortnames[STT_WVAD] = ("WVAD");
stt_shortnames[STT_EMV] = ("EMV");
stt_shortnames[STT_VRSI] = ("VRSI");
stt_shortnames[STT_NVRSI] = ("NVRSI");
stt_shortnames[STT_AD] = ("A/D");
stt_shortnames[STT_CI] = ("CI");
// 摆动类
stt_shortnames[STT_KDJ] = ("KDJ");
stt_shortnames[STT_R] = ("R");
stt_shortnames[STT_RSI] = ("RSI");
stt_shortnames[STT_BIAS] = ("BIAS");
stt_shortnames[STT_MTM] = ("MTM");
stt_shortnames[STT_DMI] = ("DMI");
stt_shortnames[STT_ROC] = ("ROC");
stt_shortnames[STT_CCI] = ("CCI");
stt_shortnames[STT_CV] = ("CV");
stt_shortnames[STT_ARBR] = ("ARBR");
stt_shortnames[STT_CR] = ("CR");
stt_shortnames[STT_OSC] = ("OSC");
stt_shortnames[STT_UOS] = ("UOS");
stt_shortnames[STT_MAOSC] = ("MAOSC");
stt_shortnames[STT_36BIAS] = ("3-6BIAS");
stt_shortnames[STT_DPO] = ("DPO");
stt_shortnames[STT_KST] = ("KST");
// 其他类
stt_shortnames[STT_REI] = ("REI");
stt_shortnames[STT_DMKI] = ("DMKI");
stt_shortnames[STT_PCNT] = ("PCNT");
stt_shortnames[STT_HLC] = ("HLC");
stt_shortnames[STT_CDP] = ("CDP");
stt_shortnames[STT_ASI] = ("ASI");
stt_shortnames[STT_ATR] = ("ATR");
// 策略为王指标类
stt_shortnames[STT_CYO] = ("CYO");
stt_shortnames[STT_DCYO] = ("DCYO");
stt_shortnames[STT_HSL] = ("HSL");
stt_shortnames[STT_DPER] = ("DPER");
}
if( nTech >= STT_MIN && nTech <= STT_MAX )
{
return stt_shortnames[nTech];
}
if( nTech >= STT_USER_MIN )
{
return CTechUser::GetTechUserShortName( nTech );
}
return "";
}
// 给定技术指标唯一编号,返回技术指标中文名称+英文简称
CSPString AfxGetSTTFullName( UINT nTech )
{
return AfxGetSTTName( nTech ) + "(" + AfxGetSTTShortName( nTech ) + ")";
}
// 给定技术指标唯一编号,返回技术指标类别名称
CSPString AfxGetSTTClassName( UINT nTech )
{
static CSPString stt_classnames[STT_CLASS_MAX+1];
SP_ASSERT( STT_MAX >= 0 );
if( stt_classnames[0].GetLength() <= 0 )
{
// stt_classnames
stt_classnames[0] = "STTClassNames";
#ifdef CLKLAN_ENGLISH_US
stt_classnames[STT_CLASS_KLINE] = "K Line Attribute";
stt_classnames[STT_CLASS_TREND] = "Trend";
stt_classnames[STT_CLASS_ENERGY] = "Energy";
stt_classnames[STT_CLASS_SWING] = "Swing";
stt_classnames[STT_CLASS_OTHER] = "Others";
stt_classnames[STT_CLASS_CLK] = "Ninebulls-Stock";
stt_classnames[STT_CLASS_USER] = "User Define";
#else
stt_classnames[STT_CLASS_KLINE] = "K线属性类";
stt_classnames[STT_CLASS_TREND] = "趋势类";
stt_classnames[STT_CLASS_ENERGY] = "能量类";
stt_classnames[STT_CLASS_SWING] = "摆动类";
stt_classnames[STT_CLASS_OTHER] = "其它类";
stt_classnames[STT_CLASS_CLK] = "策略为王指标类";
stt_classnames[STT_CLASS_USER] = "外挂指标类";
#endif
}
if( nTech >= STT_KLINE_MIN && nTech <= STT_KLINE_MAX )
return stt_classnames[STT_CLASS_KLINE];
else if( nTech >= STT_TREND_MIN && nTech <= STT_TREND_MAX )
return stt_classnames[STT_CLASS_TREND];
else if( nTech >= STT_ENERGY_MIN && nTech <= STT_ENERGY_MAX )
return stt_classnames[STT_CLASS_ENERGY];
else if( nTech >= STT_SWING_MIN && nTech <= STT_SWING_MAX )
return stt_classnames[STT_CLASS_SWING];
else if( nTech >= STT_OTHER_MIN && nTech <= STT_OTHER_MAX )
return stt_classnames[STT_CLASS_OTHER];
else if( nTech >= STT_CLK_MIN && nTech <= STT_CLK_MAX )
return stt_classnames[STT_CLASS_CLK];
else if( nTech >= STT_USER_MIN )
return stt_classnames[STT_CLASS_USER];
return "";
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -