답변완료
수식수정
아래 수식에 다음 사항을 추가하여 수정하고 싶은데 부탁드립니다.
-모든 이평선은 지수이평으로
-지수이평배열 0봉전 60<120<240
-0봉전 종가가 60지수이평선 돌파
-1봉전 종가대비 0봉전 종가가 5%이상 상승
============================================================================
INPUT : CPeriod(9),기간(20),기준(0),Period(14),배수(2);
VAR : 조건(False),조건1(False),조건2(False),A(0),MM(0),R(0),대금(0);
A=ADX(14);
MM=ma(C,20);
R=RSI(14);
대금=V*(H+O+L+C)/4;
조건=highest(C[1],CPeriod) < C && Crossup(CCI(CPeriod),0);
조건1=
A>20 and A>A[1] and
C>O and C>MM and
대금>2000000000 and
R>0 and R>R[1] and
Crossup(CCI(20),0) and
Crossup(DIPLUS(14),DIMinus(14));
조건2=
crossup(cci(기간),기준)
&& crossup(diplus(period),diminus(period))
&& V>V[1]*배수;
IF 조건 && 조건1 && 조건2 TheN
Find(1);
2024-02-17
991
글번호 176722
종목검색
답변완료
문의 드립니다
input : starttime(110000),endtime(50000),n(30);
var : Tcond(false),hh(0),h1(0),ll(0),l1(0);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1]and Tcond == true Then
SetStopEndofday(Endtime);
}
if (sdate != sdate[1] and stime >= endtime) or
(sdate == sdate[1] and stime >= endtime and stime[1] < endtime) then
{
Tcond = false;
}
if (sdate != sdate[1] and stime >= starttime) or
(sdate == sdate[1] and stime >= starttime and stime[1] < starttime) then
{
Tcond = true;
hh = h;
ll = l;
h1 = hh[1];
l1 = ll[1];
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
input : 익절틱수(100),손절틱수(100);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Buy("b",AtStop,NextBarOpen+PriceScale*5);
}
}
ExitLong("bx",AtMarket);
if NextBarOpen != C Then
{
Buy("b1",AtStop,NextBarOpen+PriceScale*5);
}
ExitLong("bx1",AtMarket);
if NextBarOpen != C Then
{
Buy("b3",AtStop,NextBarOpen+PriceScale*5);
}
ExitLong("bx3",AtMarket);
if NextBarOpen != C Then
{
Buy("b4",AtStop,NextBarOpen+PriceScale*5);
}
ExitLong("bx4",AtMarket);
if NextBarOpen != C Then
{
Buy("b5",AtStop,NextBarOpen+PriceScale*5);
}
ExitLong("bx5",AtMarket);
if NextBarOpen == C Then
{
Buy("b6",AtStop,NextBarOpen+PriceScale*5);
}
ExitLong("bx6",AtMarket);
if NextBarOpen == C Then
{
Buy("b7",AtStop,NextBarOpen+PriceScale*5);
}
ExitLong("bx7",AtMarket);
if NextBarOpen == C Then
{
Buy("b8",AtStop,NextBarOpen+PriceScale*5);
}
ExitLong("bx8",AtMarket);
if NextBarOpen == C Then
{
Buy("b9",AtStop,NextBarOpen+PriceScale*5);
}
ExitLong("bx9",AtMarket);
if NextBarOpen == C Then
{
Buy("b10",AtStop,NextBarOpen+PriceScale*5);
}
ExitLong("bx10",AtMarket);
if NextBarOpen == C Then
{
Buy("b11",AtStop,NextBarOpen+PriceScale*5);
}
ExitLong("bx11",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Sell("s",AtStop,NextBarOpen-PriceScale*5);
}
}
ExitShort("sx",AtMarket);
if NextBarOpen != C Then
{
Sell("s1",AtStop,NextBarOpen-PriceScale*5);
}
ExitShort("sx1",AtMarket);
if NextBarOpen != C Then
{
Sell("s3",AtStop,NextBarOpen-PriceScale*5);
}
ExitShort("sx3",AtMarket);
if NextBarOpen != C Then
{
Sell("s4",AtStop,NextBarOpen-PriceScale*5);
}
ExitShort("sx4",AtMarket);
if NextBarOpen != C Then
{
Sell("s5",AtStop,NextBarOpen-PriceScale*5);
}
ExitShort("sx5",AtMarket);
if NextBarOpen == C Then
{
Sell("s6",AtStop,NextBarOpen-PriceScale*5);
}
ExitShort("sx6",AtMarket);
if NextBarOpen == C Then
{
Sell("s7",AtStop,NextBarOpen-PriceScale*5);
}
ExitShort("sx7",AtMarket);
if NextBarOpen == C Then
{
Sell("s8",AtStop,NextBarOpen-PriceScale*5);
}
ExitShort("sx8",AtMarket);
if NextBarOpen == C Then
{
Sell("s9",AtStop,NextBarOpen-PriceScale*5);
}
ExitShort("sx9",AtMarket);
if NextBarOpen == C Then
{
Sell("s10",AtStop,NextBarOpen-PriceScale*5);
}
ExitShort("sx10",AtMarket);
if NextBarOpen == C Then
{
Sell("s11",AtStop,NextBarOpen-PriceScale*5);
}
ExitShort("sx11",AtMarket);
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
--------------
수정된 청산 수식어가 맞는지 문의 드립니다.
2024-02-19
950
글번호 176721
시스템
답변완료
수식 수정 도움주십시오
항시 도움주셔서 진심으로 감사드립니다.
아래 수식에서 색상이 바뀌는 전환점에 "동그라미"표시를 나타내고 싶은데 수식에 대한 지식이 부족하여 완성을 하지 못하고 있습니다. 한번 검토해 주십시오.
input : Length(20);
var : WMA1(0),UP(0),DN(0),TX(0);
WMA1 = wma(C,Length);
if WMA1 > WMA1[1] Then
value1 = 1;
if WMA1 < WMA1[1] Then
value1 = -1;
if value1 == 1 Then
plot1(WMA1,"WMA(평균가)",ORANGE);
else
plot1(WMA1,"WMA(평균가)",CYAN);
####### 매수 매도 표시
if up Then
{
tx = Text_new(sDate,sTime,L,"●");
Text_SetColor(tx,Blue);
Text_SetSize(tx,20);
}
if dn Then
{
tx = Text_new(sDate,sTime,H,"●");
Text_SetColor(tx,Red);
Text_SetSize(tx,20);
}
2024-02-16
705
글번호 176716
지표