커뮤니티
수식 부탁드립니다.
2017-06-11 18:35:33
114
글번호 110316
주식 매매 일봉에서
매수식
매수1: 스토캐스티K 선이 80% 돌파시 1천만원매수
매수2: 20일최저가 때 1천만원 매수
매수3: 25일최저가 때 1천만원 매수
매도식
30일최고가 돌파시 보유수량의 절반매도
40일최고가 돌파시 전량매도
10%손실시 손절매
30% 수익발생시 매도
최종매수일로 부터 30일 경과시 보유물량 전량 매도
답변 1
예스스탁 예스스탁 답변
2017-06-12 15:49:45
안녕하세요
예스스탁입니다.
피라미딩을 다른진입신호만 허용으로 설정하고 적용하시면 됩니다.
Input : Period(12), Period1(5), Period2(5),매수1(10000000),매수2(10000000),매수3(10000000);
var : StoK(0),StoD(0);
StoK = StochasticsK(Period,Period1);
StoD = StochasticsD(Period,Period1,Period2);
if (TotalTrades == TotalTrades[1] and MarketPosition == 0) or
(MarketPosition == 1 and countif(CurrentContracts < CurrentContracts[1],BarsSinceEntry) < 1) then{
if crossup(stok,80) Then
buy("매수1",OnClose,def,Floor(매수1/C));
if L > lowest(L,20)-PriceScale*1 Then
buy("매수2",atlimit,lowest(L,20)-PriceScale*1,Floor(매수2/C));
if L > lowest(L,25)-PriceScale*1 Then
buy("매수3",atlimit,lowest(L,25)-PriceScale*1,Floor(매수3/C));
}
if MarketPosition == 1 then{
if CurrentContracts > CurrentContracts[1] then
var1 = index;
if CurrentContracts == MaxContracts Then
exitlong("bx1",atlimit,highest(H,30),"",Floor(MaxContracts*0.5),1);
if CurrentContracts <= MaxContracts Then
exitlong("bx2",atlimit,highest(H,40));
ExitLong("BP",atlimit,AvgEntryPrice*1.30);
ExitLong("BL",AtStop,AvgEntryPrice*0.90);
if index >= var1+30 Then
ExitLong("bx");
}
즐거운 하루되세요
> 후포 님이 쓴 글입니다.
> 제목 : 수식 부탁드립니다.
>
주식 매매 일봉에서
매수식
매수1: 스토캐스티K 선이 80% 돌파시 1천만원매수
매수2: 20일최저가 때 1천만원 매수
매수3: 25일최저가 때 1천만원 매수
매도식
30일최고가 돌파시 보유수량의 절반매도
40일최고가 돌파시 전량매도
10%손실시 손절매
30% 수익발생시 매도
최종매수일로 부터 30일 경과시 보유물량 전량 매도