請版主幫忙看下,為什么我這段代碼的止損價沒有在圖表中顯示?
作者:開拓者 TB 來源:cxh99.com 發布時間:2022年03月07日
-
咨詢內容:
if (high>Highafterentry){ Highafterentry=high; }
? ? ? ? if (barssinceentry>0)
? ? ? ? {
? ? ? ? if (c>Highafterentry[1]) {longstop=min(Low,Low[1])-stoppoint; Commentary("止損價:"+Text(longstop));}??
? ? ? ? }
?
?來源:CXH99.COM
-
TB技術人員:
highafterentry是怎么賦值 的?
?
-
TB客服:
highafterentry是序列變量,k線出現新的最高價,賦值給這個變量
?
-
網友回復:
bcsongby 發表于 2019-11-1 15:11
highafterentry是序列變量,k線出現新的最高價,賦值給這個變量
我知道。。我要看的是具體的賦值 內容 。。
?
-
網友回復:
小米 發表于 2019-11-1 15:19
我知道。。我要看的是具體的賦值 內容 。。
不太懂您的意思,這句不是賦值嗎?if (high>Highafterentry){ Highafterentry=high; }我把所有關于這個變量的代碼都放上來了
NumericSeries Highafterentry(0);
if (barssinceentry==0)
? ? ? ? {
? ? longstop=min(low,low[1])-stoppoint;??
? ? Highafterentry=high;
? ? ? ? }
if (high>Highafterentry){ Highafterentry=high; }
if (barssinceentry>0)
{
if (c>Highafterentry[1]) {longstop=min(Low,Low[1])-stoppoint; }??
} |