답변완료
잘 부탁드립니다
1
input : n1(10),n2(21),obLevel1(60),obLevel2(53),osLevel1(-60),osLevel2(-53);
var : ap(0),esa(0),dd(0),ci(0),tci(0),wt1(0),wt2(0);
ap = (h+l+c)/3 ;
esa = ema(ap, n1);
dd = ema(abs(ap - esa), n1);
ci = (ap - esa) / (0.015 * dd);
tci = ema(ci, n2);
wt1 = tci;
wt2 = ma(wt1,4);
# 0선 아래 골드시 매수
if CrossUp(wt1,wt2) and wt1 < 0 Then
Buy("b");
# 0선 위 데드시 매수
if CrossDown(wt1,wt2) and wt1 > 0 Then
Sell("s");
2
input : n1(10),n2(21),obLevel1(60),obLevel2(53),osLevel1(-60),osLevel2(-53);
var : ap(0),esa(0),dd(0),ci(0),tci(0),wt1(0),wt2(0);
ap = (h+l+c)/3 ;
esa = ema(ap, n1);
dd = ema(abs(ap - esa), n1);
ci = (ap - esa) / (0.015 * dd);
tci = ema(ci, n2);
wt1 = tci;
wt2 = ma(wt1,4);
# -50선 아래 골드시 매수
if CrossUp(wt1,wt2) and wt1 < -50 Then
Buy("b");
# 50선 위 데드시 매수
if CrossDown(wt1,wt2) and wt1 > 50 Then
Sell("s");
3
input : n1(10),n2(21),obLevel1(60),obLevel2(53),osLevel1(-60),osLevel2(-53);
var : ap(0),esa(0),dd(0),ci(0),tci(0),wt1(0),wt2(0);
ap = (h+l+c)/3 ;
esa = ema(ap, n1);
dd = ema(abs(ap - esa), n1);
ci = (ap - esa) / (0.015 * dd);
tci = ema(ci, n2);
wt1 = tci;
wt2 = ma(wt1,4);
# 골드시 매수
if CrossUp(wt1,wt2) Then
Buy("b");
# 데드시 매수
if CrossDown(wt1,wt2) Then
Sell("s");
##### 0 선 아래에서 골드 나는 조건만 매수
-50 -60 아레에 있는 골드두 두매수
#### 제가 부족해서 설명을 잘못 드렸네요
1번 2번 2번 하나로 만들어주세요 0선 아래에서 골드나는 매수 신호만
부탁 드립니다
2022-12-12
872
글번호 164542
시스템
답변완료
부탁 드립니다
도움에 감사 드립니다.
타주기 (분,일봉용)수식 부탁 드립니다.
미리 감사 드립니다.
input:p(20);
input:sig(9);
var1=Accumn(IFf(c>c[1],
(c-c[1])/c*100,0),p);
var2=Accumn(IFf(c<c[1],
(c[1]-c)/c*100,0),p);
var11=var1/Var2;
var12=var2/Var1;
var13=var11-var12;
Var23=ma(var13,sig);
참고수식)
input : 분(10),p(20),sig(9);
var : cnt1(0),cnt2(0),sum1(0),sum2(0),value(0);
Var : BPower(0), SPower(0),NetPower(0);
var : S1(0),D1(0),TM(0),TF(0),cnt(0);
Array : CC[100](0),HH[100](0),LL[100](0);
if Bdate != Bdate[1] Then
{
S1 = TimeToMinutes(stime);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
TF = TM%분;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and 분 > 1 and TF < TF[1]) or
(Bdate == Bdate[1] and 분 > 1 and TM >= TM[1]+분) or
(Bdate == Bdate[1] and 분 == 1 and TM > TM[1]) Then
{
for cnt = 99 downto 1
{
HH[cnt] = HH[cnt-1];
LL[cnt] = LL[cnt-1];
CC[cnt] = CC[cnt-1];
}
hh[0] = H;
LL[0] = l;
}
if HH[0] > 0 and H > HH[0] Then
HH[0] = H;
if LL[0] > 0 and L < LL[0] Then
LL[0] = L;
CC[0] = C;
if CC[P+sig] > 0 Then
2022-12-12
890
글번호 164541
지표
답변완료
시스템 문의입니다
일정기간 신고가를 달성하면 매수하고,
이전 진입가에서 일정비율 이상 상승하면 쭉 피라미딩하되,
피라미딩 하면서 점점 매수금액을 줄이는 진입 전략입니다
피라미딩 하는 부분 문의드립니다 ㅠ
일봉차트, onclose로 매수입니다.
input : invest_money(10000000),new_high(120), cut_ratio(0.9);
// 120일 신고가면 매수, 0.9 비율로 점점 투자 금액을 줄임
var : ex_money(0);
// 직전 매수 금액(=직전 매수 수량 * 직전 매수 가격)
if MarketPosition == 0 and c > highest(c, new_high)[1] Then
{
Buy("신고가 진입", OnClose, Def, Floor(invest_money/C));
}
if MarketPosition == 1 and c > LatestEntryPrice(0)*(1.1+(MaxEntries/100)) Then
{
if CurrentContracts > CurrentContracts[1] Then
ex_money = LatestEntryPrice(0) * ( CurrentContracts-CurrentContracts[1] ) ;
//이전매수금액 = 직전매수가격 * 직전거래수량(=현재보유수량 - 직전보유수량)
Buy("피라미딩", OnClose, Def, Floor( (ex_money*cut_ratio) / c ) );
//이전 매수금액의 90%만큼만 매수금액으로 설정하고, 종가로 나눠서 수량 구하기
}
로 만들었는데, 첫 진입은 되는데, 피라미딩이 안됩니다 ㅠ 검토 한번 부탁드리겠습니다...!
2022-12-12
890
글번호 164535
시스템