커뮤니티
수식요청 드립니다.
2018-04-09 11:46:09
124
글번호 118034
* 항상 많은 도움에 고맙습니다.
* 요청1 : 전일 동시간 대비 거래량 3배 증가시 매수 시스템 (신호발생시 바로매수)
* 요청2 : 3일 평균 동시간 대비 거래량 3배 증가시 매수 시스템 (봉완료후 매수 )
* 요청3 매수후 매수가 대비 2프로 이상 하락 했다 다시 매수가 오면 매도 시스탬
* 고맙 습니다.
답변 1
예스스탁 예스스탁 답변
2018-04-10 10:36:34
안녕하세요
예스스탁입니다.
1
var : cnt(0),ndate(0),ndate1(0),idx(0),idx1(0),v1(0);
if sdate != sdate[1] Then{
ndate = sdate;
ndate1 = ndate[1];
idx = 0;
idx1 = idx[1];
}
idx = idx+1;
v1 = 0;
if ndate1 > 0 then
{
for cnt = idx to idx+idx1
{
if v1 == 0 and stime[cnt] <= stime and sdate[cnt] == ndate1 then
{
v1 = DayVolume[cnt];
cnt = idx+idx1+1;
}
}
if v1 > 0 and DayVolume >= v1*3 Then
buy();
}
2
var : cnt(0),ndate(0),ndate1(0),ndate2(9),ndate3(0);
var : idx(0),idx1(0),idx2(0),idx3(0),v1(0),v2(0),v3(0);
if sdate != sdate[1] Then{
ndate = sdate;
ndate1 = ndate[1];
ndate2 = ndate1[1];
ndate3 = ndate2[1];
idx = 0;
idx1 = idx[1];
idx2 = idx1[1];
idx3 = idx2[1];
}
idx = idx+1;
v1 = 0;
v2 = 0;
v3 = 0;
if ndate3 > 0 then
{
for cnt = idx to idx+idx1+idx2+idx3
{
if v1 == 0 and stime[cnt] <= stime and sdate[cnt] == ndate1 then
{
v1 = DayVolume[cnt];
}
if v2 == 0 and stime[cnt] <= stime and sdate[cnt] == ndate2 then
{
v2 = DayVolume[cnt];
}
if v3 == 0 and stime[cnt] <= stime and sdate[cnt] == ndate3 then
{
v3 = DayVolume[cnt];
}
}
var1 = (v1+v2+v3)/3;
if v1 > 0 and v2 > 0 and v3 > 0 and DayVolume >= var1*3 Then
buy();
}
3
if MarketPosition == 1 and lowest(l,BarsSinceEntry) <= EntryPrice*0.98 Then
ExitLong("bx",AtLimit,EntryPrice);
즐거운 하루되세요
> 요타 님이 쓴 글입니다.
> 제목 : 수식요청 드립니다.
> * 항상 많은 도움에 고맙습니다.
* 요청1 : 전일 동시간 대비 거래량 3배 증가시 매수 시스템 (신호발생시 바로매수)
* 요청2 : 3일 평균 동시간 대비 거래량 3배 증가시 매수 시스템 (봉완료후 매수 )
* 요청3 매수후 매수가 대비 2프로 이상 하락 했다 다시 매수가 오면 매도 시스탬
* 고맙 습니다.