답변완료
수식검토 부탁드립니다.
수고 많으십니다.
Main.MessageList("손익=",PL7,"청산=",woo1,"현재가=",Cu7,"포지션 =",po7,"목표수익=",moksu);
if ( po7 == 1 && Cu7 >=woo1)ll( po7 == 1 && Cu7 >=moksu)
//만약 계좌의 포지션이 매도이고 현재가격(Cu7)이 woo1보다 크거나 같으면 매수청산
또는(or) 현재가격이 moksu보다 크거나 같으면 매수청산
ID7 = Account7.OrderBuy(MarketData1.code,vo7, 0, 1);
//전량 시장가로 매수주문(청산) 및 ID7에 주문아이디 저장
질문) 위 수식에서 (or) 논리연산자 표시가 영어소문자 (ㅣㅣ)엘 두개가 맞는지와
(or) 논리연산자를 if ( po7 == 1 && Cu7 >=woo1)ll( po7 == 1 && Cu7 >=moksu)
수식이 맞는지 검토 부탁드립니다.
바쁘신데 항상 감사드립니다.
2023-11-18
912
글번호 174177
시스템
답변완료
수식추가
안녕하세요
수식추가 부탁드림니다
아라식에서 볼밴 상.하단폭이 100틱이내에서 횡보후
상단으로 돌파시 매수
하단으로 돌파시 매도
Inputs : Period(170), Sence(1.3), CC_DN(Yellow);
Vars:
VLineUp(0),
VLineDn(0),
HHighest(0),
LLowest(0),
JustChanged(FALSE),
VLine(0), DBN(0);
Array:
Highs[35](0),
Lows[35](0),
RRange[35](0),
UpWave[1](FALSE),
DnWave[1](FALSE);
If STime == 180000 Then
DBN = 0;
DBN = DBN + 1;
Var1 = Period;
Var2 = Var1 - 1;
Var3 = Var1 - 2;
Var5 = Sence;
Var6 = H-L;
JustChanged = FALSE;
if CurrentBar <= Var2 then begin
Highs[CurrentBar] = Close;
Lows[CurrentBar] = Close;
RRange[CurrentBar] = (H-L) /2;
end;
if CurrentBar == Var1 then begin
if Highs[Var2] >= Highs[Var3] then begin
UpWave[1] = TRUE;
HHighest = Highs[Var2];
VLineUp = HHighest - (Var5 * MA(Var6,Var2));
#Plot1(VLineUp,"VLineUp");
end;
if Highs[Var2] < Highs[Var3] then begin
DnWave[1] = TRUE;
LLowest = Lows[Var2];
VLineDn = LLowest + (Var5 * MA(Var6,Var2));
#Plot2(VLineDn,"VLineDn");
end;
end;
if CurrentBar > Var1 then begin
if DnWave[1] and Close > VLineDn then begin
DnWave[1] = FALSE;
UpWave[1] = TRUE;
JustChanged = TRUE;
HHighest = Close;
LLowest = 0;
end;
if UpWave[1] and Close < VLineUp and JustChanged == FALSE then begin
UpWave[1] = FALSE;
DnWave[1] = TRUE;
JustChanged = TRUE;
LLowest = Close;
HHighest = 0;
end;
if JustChanged == FALSE then begin
if Close > HHighest then
HHighest = Close;
else if Close < LLowest then
LLowest = Close;
end;
VLineUp = HHighest - (Var5 * MA(Var6,Var2));
VLineDn = LLowest + (Var5 * MA(Var6,Var2));
/*if UpWave[1] then Plot1(VLineUp,"VLineUp", Red);
else if DnWave[1] then Plot1(VLineDn,"VLineUp", Blue);
*/
end;
input : P(10),short(12),long(26),sig(9);
var : mav(0),macdo(0),T(0);
mav = ma(C,P);
MACDo = MACD_OSC(short,long,sig);
if T <= 0 and upwave[1] and c > mav and macdo > 0 Then
{
t =1;
Buy();
}
if T >= 0 and dnwave[1] and c < mav and macdo < 0 Then
{
T = -1;
Sell();
}
2023-11-17
1184
글번호 174171
시스템
답변완료
수식추가
안녕하세요
아래식에서 추가식 부탁드림니다
추가식
기존식에서 볼밴 상.하단폭이 100틱이상일때
매수.도
Inputs : Period(20), Sence(1.3), CC_DN(Yellow);
Vars:
VLineUp(0),
VLineDn(0),
HHighest(0),
LLowest(0),
JustChanged(FALSE),
VLine(0), DBN(0);
Array:
Highs[35](0),
Lows[35](0),
RRange[35](0),
UpWave[1](FALSE),
DnWave[1](FALSE);
If STime == 180000 Then
DBN = 0;
DBN = DBN + 1;
Var1 = Period;
Var2 = Var1 - 1;
Var3 = Var1 - 2;
Var5 = Sence;
Var6 = H-L;
JustChanged = FALSE;
if CurrentBar <= Var2 then begin
Highs[CurrentBar] = Close;
Lows[CurrentBar] = Close;
RRange[CurrentBar] = (H-L) /2;
end;
if CurrentBar == Var1 then begin
if Highs[Var2] >= Highs[Var3] then begin
UpWave[1] = TRUE;
HHighest = Highs[Var2];
VLineUp = HHighest - (Var5 * MA(Var6,Var2));
#Plot1(VLineUp,"VLineUp");
end;
if Highs[Var2] < Highs[Var3] then begin
DnWave[1] = TRUE;
LLowest = Lows[Var2];
VLineDn = LLowest + (Var5 * MA(Var6,Var2));
#Plot2(VLineDn,"VLineDn");
end;
end;
if CurrentBar > Var1 then begin
if DnWave[1] and Close > VLineDn then begin
DnWave[1] = FALSE;
UpWave[1] = TRUE;
JustChanged = TRUE;
HHighest = Close;
LLowest = 0;
end;
if UpWave[1] and Close < VLineUp and JustChanged == FALSE then begin
UpWave[1] = FALSE;
DnWave[1] = TRUE;
JustChanged = TRUE;
LLowest = Close;
HHighest = 0;
end;
if JustChanged == FALSE then begin
if Close > HHighest then
HHighest = Close;
else if Close < LLowest then
LLowest = Close;
end;
VLineUp = HHighest - (Var5 * MA(Var6,Var2));
VLineDn = LLowest + (Var5 * MA(Var6,Var2));
/*if UpWave[1] then Plot1(VLineUp,"VLineUp", Red);
else if DnWave[1] then Plot1(VLineDn,"VLineUp", Blue);
*/
end;
input : P(10),short(12),long(26),sig(9);
var : mav(0),macdo(0),T(0);
mav = ma(C,P);
MACDo = MACD_OSC(short,long,sig);
if T <= 0 and upwave[1] and c > mav and macdo > 0 Then
{
t =1;
Buy();
}
if T >= 0 and dnwave[1] and c < mav and macdo < 0 Then
{
T = -1;
Sell();
}
2023-11-17
839
글번호 174154
시스템
답변완료
84492 보충질문입니다2.
안녕하세요.
첨부한 사진처럼 휴니드 종목이 11월 7일에 검색되도록 하고 싶은데요.
답변 주신 수식으로는 검색이 안 돼서요.
확인 부탁드립니다.
-------------------------------
input : Per(500),N(20);
var : mv(-1),mv1(-1),mv2(-1);
var : mo(0),mo1(0),mc1(0);
if sDate > sDate[1]+30 Then
{
mv = 0;
mv1 = mv[1];
mv2 = mv1[1];
mo = open;
mo1 = mo[1];
mc1 = c[1];
}
if mv >= 0 Then
mv = mv+v;
if mv2 > 0 and mv1 >= mv2*(1+per/100) and
mc1 >= mo1*(1+N/100) and
CrossDown(L,(mo1+mc1)/2 Then
Find(1);
2023-11-17
1025
글번호 174153
종목검색