답변완료
함수식부탁입니다
#,안녕하세요
ㅡ,전주의 시가,고가,저가,중심가
ㅡ,전월의 시가,고가,저자,중심가
ㅡ,전년의 시가,고가,저가,중심가
##,해선 함수식 도움 부탁드립니다.
$,고맙습니다.
2019-10-18
169
글번호 132896
지표
답변완료
기간중 틱발생/현재양봉 저가 직전양봉 저가 비교
1)수식요청
09시부터 10시까지 발생한 틱갯수가 100개 이상일 때 buy
2)해석 요청
var : A1(0),A2(0),Acount(0);
var : B1(0),B2(0),Bcount(0);
if C > O then{
A1 = L;
A2 = A1[1];
if A1 > A2 Then
Acount = Acount+1;
Else
Acount = 0;
if Acount == 3 Then
buy("b",AtMarket);
}
if C < O then{
B1 = L;
B2 = B1[1];
if B1 < B2 Then
Bcount = Bcount+1;
Else
Bcount = 0;
if Bcount == 3 Then
sell("s",AtMarket);
}
2020-01-20
156
글번호 132894
시스템
답변완료
함수요청
안녕하세요?
글번호 64540번 재질문드립니다.
유선상 힌트를 주셔서 작성해보고자 했는데 원하는 신호가 생성되지 않아 다시 문의드립니다.
항셍선물을 T장에서 거래를 하고 싶습니다.
즉 당일의 시가를 10:15분으로 잡고 싶습니다.
작성주신 스크립트 수정요청드립니다.
Input : Period(20), MultiD(2),endtime(170000);;
var : BBmd(0),BBup(0),BBdn(0),T(0),entry(0);
var : Tcond(false);
BBmd = ma(C,Period);
BBup = BollBandUp(Period,MultiD);
BBdn = BollBandDown(Period,MultiD);
if (sdate != sdate[1] and stime >= endtime) or
(sdate == sdate[1] and stime >= endtime and stime[1] < endtime) then
{
Tcond = false;
if MarketPosition == 1 Then
ExitLong("bx.",AtMarket);
if MarketPosition == -1 Then
ExitShort("sx.",AtMarket);
}
if bdate != bdate[1] Then
{
Tcond = true;
T = 0;
if dayopen > BBup Then
T = -1;
if dayopen < BBdn Then
T = 1;
entry = 0;
}
if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then
entry = entry+1;
if T == -1 then
{
if entry == 0 and C < BBup Then
sell("s1",AtMarket);
if entry == 1 and CrossDown(c,bbdn) Then
buy("b1",AtMarket);
}
if T == 1 then
{
if entry == 0 and C > BBdn Then
buy("b2",AtMarket);
if entry == 1 and crossup(c,bbup) Then
sell("s2",AtMarket);
}
if MarketPosition == 1 then
{
if Crossup(C,bbmd) Then
exitlong("bx",AtMarket);
}
if MarketPosition == -1 then
{
if CrossDown(C,bbmd) Then
ExitShort("sx",AtMarket);
}