답변완료
문의드립니다
var : DD(0),Year(0),V1(0),V2(0),V3(0),V4(0),summer(False);
var : ET1(0),XT1(0),ET2(0),XT2(0),Tcond(False),entry(0);
ET1 = 223000;
XT1 = 050000;
var : cnt(0);
Array : DO[20](0),DH[20](0),DL[20](0),DC[20](0);
if (sDate != sDate[1] and sTime >= XT1) or
(sDate == sDate[1] and sTime >= XT1 and sTime[1] < XT1) Then
{
Tcond = False;
}
if (sDate != sDate[1] and sTime >= ET1) or
(sDate == sDate[1] and sTime >= ET1 and sTime[1] < ET1) Then
{
Tcond = true;
}
//if (sDate != sDate[1] and sTime >= XT1) or
// (sDate == sDate[1] and sTime >= XT1 and sTime[1] < XT1) Then
//{
// Tcond = False;
//}
if Tcond == True Then {
if //DO[0]>DC[1] and
MarketPosition == 0
and entry == 0 Then {
then Buy("매수1",AtStop,25360);
}
이런 식으로 진입식을 하면 나스닥 10월 9일 새벽 다섯시가 넘어서 5시30분봉에 진입하는 경우가 생기는 것 같습니다. 잘 이해가 안되서 그런데 설명 부탁드리겠습니다.
메시지 로그 해보니 정상으로 트루 폴스 바뀌는것으로 보입니다.
그리고 Tcond = false 만드는 부분이 앞에 있지 않고 뒤로 갔을경우(//친부분처럼) 또 뭔가 바뀔때가 있는데(원래는 시간대별 시종고저 잡는 파트였음) 순서변화가 어떤 차이를 일으키는 경우가 있는지 이유를 잘 모르겠습니다.
감사합니다.
2025-10-13
118
글번호 194569
지표
답변완료
지표작성부탁드립니다
사용지표 : 1. 이평선(5)
2 덧붙임지표(10, 2)
지표조건 : 붙임지표(10, 2) 상단선중 녹색라인이 이평선(5) 위에 있으면 차트바탕이
노란색으로 표시되는 지표식 부탁합니다
붙임지표 ;input : period(10),multiplier(2);
var : src(0), AtrV(0),upperBand(0),lowerBand(0), prevLowerBand(0), prevUpperBand(0);
var : prevSuperTrend(0), direction(0),alpha(0),source(0),SuperTrend(C);
if CurrentBar > 1 Then
{
src = (H+L)/2;
alpha = 1 / period ;
source = max(high - low, abs(high - close[1]), abs(low - close[1]));
ATrV = alpha * source + (1 - alpha) * ATrV[1]; //지수가중이평방식
//ATrV = ma(source,AtrPeriod); //단순이평방식
upperBand = src + multiplier * AtrV;
lowerBand = src - multiplier * AtrV;
prevLowerBand = lowerBand[1];
prevUpperBand = upperBand[1];
if lowerBand > prevLowerBand or close[1] < prevLowerBand Then
lowerBand = lowerBand;
Else
lowerBand = prevLowerBand;
if upperBand < prevUpperBand or close[1] > prevUpperBand Then
upperBand = upperBand;
Else
upperBand = prevUpperBand;
if C > UpperBand Then
direction = 1;
if C < LowerBand Then
direction = -1;
if direction == 1 Then
SuperTrend = lowerband;
Else
SuperTrend = upperband;
Plot1(SuperTrend,"SuperTrend",IFF(direction==1,Green,Black));
}
2025-10-10
138
글번호 194568
지표
답변완료
종목검색식 부탁드립니다
1. 아래수식을 참고하여,
0봉전 ~ 20봉전 까지의 기간동안
수식2) 가 기준선 200을 돌파한게 3번 이상인
(기준선 100 돌파후 하락--> 이렇게 5번이상)
ㆍ
종목 검색식 부탁드려요.(기간, 기준선, 횟수 "변수"로 부탁드립니다.)
--아래---
(수식1)
V_CLOSE = C * V;
(수식2)
Avgvalue = avg(V_CLOSE, longlen);
// 평균편차는 근사치로 표준편차 활용
MD = stdev(V_CLOSE, longlen) * 1.25; // CCI 표준 계수 근사
ccx = if(MD != 0, (V_CLOSE - Avgvalue) / (0.45 * MD), 0);
(수식3)
ccx_sma = avg(ccx, shortlen);
- 지표조건설정
shortlen: 48
longlen: 76
기준선 0
-100
-200
100
200
---------------------------------------------------
2. 일봉차트에서 ,
주봉 10일선 (단순)을 긋고
주봉 10일선을 기준으로 상하 (위 아래) 1% 에 위치한
캔들 (음봉 양봉) 종목검색식 부탁드려요.
3. 일봉차트에서 ,
주봉 10일선 (단순)을 긋고
주봉 10일선을 기준으로 상하 (위 아래) 1% 에 위치한
캔들 (음봉 양봉)의
0봉전 ~ 60봉전까지 모든종목 검색식 부탁드려요.
4. 아래수식을 참고하여,
수식2) 의 "상하 1% (위 아래)" 종목 검색식 부탁드립니다.
(변수로 부탁드려요)
----아래-----
수식1)
조건 = Highest(H, L기간+R기간+1)==H(R기간);
Valuewhen(1, 조건, H(R기간),-R기간)
수식2)
조건 = Highest(H, L기간+R기간+1)==H(R기간);
Valuewhen(1, 조건, H(R기간),1)
수식3)
조건 = Lowest(L, L기간+R기간+1)==L(R기간);
Valuewhen(1, 조건, L(R기간),-R기간)
수식4)
조건 = Lowest(L, L기간+R기간+1)==L(R기간);
Valuewhen(1, 조건, L(R기간),1)
---------
지표조건 L기간 35
R기간 20
2025-10-12
125
글번호 194566
종목검색
답변완료
MACD오실레이터
Input : shortPeriod(12), longPeriod(26), Period(9);
Var : MACDv(0), MACDsig(0),macdosc(0) ;
MACDv = MACD(shortPeriod, longPeriod);
MACDsig = ema(MACDv,Period);
macdosc = MACDv-ema(MACDv,Period);
if macdosc > 0 then
{
plot1(macdosc, "MACDOscillator+");
Plot2(0, "MACDOscillator-");
}
else
{
Plot1(0, "MACDOscillator+");
Plot2(macdosc, "MACDOscillator-");
}
Plot3(MACDv, "MACD");
Plot4(MACDsig, "MACDSignal");
PlotBaseLine1(0, "기준선1");
MACD선이 MACD 시그널 을 상향돌파시 빨간색
MACD선이 MACD 시그널 을 하향돌파시 파란색
색깔이 나오도록 부탁드려요
2025-10-10
110
글번호 194554
지표