|
我也弄了个快捷键切换,结果除了字母键起作用外,数字小键盘也能起作用,大概是123456789对应abcdefg
if(id==CHARTEVENT_KEYDOWN)
{
string symbol;
if(lparam=='E' || lparam=='e')
symbol="EURUSDm";
if(lparam=='G' || lparam=='g')
symbol="GBPUSDm";
if(lparam=='A' || lparam=='a')
symbol="AUDUSDm";
if(lparam=='N' || lparam=='n')
symbol="NZDUSDm";
if(lparam=='X' || lparam=='x')
symbol="XAUUSDm";
if(lparam=='J' || lparam=='j')
symbol="USDJPYm";
if(lparam=='C' || lparam=='c')
symbol="USDCADm";
if(lparam=='F' || lparam=='f')
symbol="USDCHFm";
if(lparam=='B' || lparam=='b')
symbol="BTCUSDm";
if(lparam=='O' || lparam=='o')
symbol="USOILm";
if(wins==5)
{
long id_=ChartFirst();
while(id_!=-1)
{
ChartSetSymbolPeriod(id_,symbol,ChartPeriod(id_));
id_=ChartNext(id_);
}
} |
|