커뮤니티
수식부탁드립니다-------------
2011-06-30 13:25:43
601
글번호 40354
전에 해주셨는데 신호가 이상해서 다시부탁 드립니다
첩부화일에서 -1봉보다 1봉의 테마지표값이 (전봉차)만큼 높고
2봉이 음봉이며 3봉의시가가 2봉의 종가보다 높거나 같으면 3봉시가+(진입가)에 매수
(첨부화일 3봉자리에 매수해야되는데 신호가 안나와서요)
매도는 반대로해주세요
그리고 하루이익틱이 도달하면 청산하고 매매종료 하게 해주세요(아래는 계속하는것같음)
INPUTS: 테마기간(30),전봉차(0.01),진입가(5),손절(13),하루이익틱(9),하루손실틱(-26);
var : DayPL(0),cnt(0);
DayPL = 0;
for cnt = 0 to 20{
if sdate == EntryDate(cnt) Then{
DayPL = DayPL+PositionProfit(cnt);
}
}
var77 = (3 * Ema(c,테마기간)) - (3 * Ema(Ema(c,테마기간),테마기간)) + (Ema(Ema(Ema(c,테마기간),테마기간),테마기간));
if stime >= 091000 and stime < 144000 then
{
if MarketPosition == 0 and (DayPL/PriceScale) < 하루이익틱 and (DayPL/PriceScale) > 하루손실틱 Then{
if c <= o[1] and C < O and var77[1] >= var77[2]+전봉차 Then
buy("b",AtStop,o+진입가*PriceScale);
if c >= o[1] and C > O and var77[1] <= var77[2]-전봉차 Then
sell("s",AtStop,o-진입가*PriceScale);
}
}
SetStopLoss(손절*PriceScale,PointStop);
SetStopTrailing(PriceScale*2,PriceScale*8,PointStop);
if MarketPosition != 0 and ((DayPL/PriceScale) >= 하루이익틱 or (DayPL/PriceScale) <= 하루손실틱) Then{
exitlong();
ExitShort();
- 1. 40674_전봉차진입.xls (0.08 MB)
답변 1
예스스탁 예스스탁 답변
2011-06-30 14:56:40
안녕하세요
예스스탁입니다.
수정한 식입니다.
INPUTS: 테마기간(30),전봉차(0.01),진입가(5),손절(13),하루이익틱(9),하루손실틱(-26);
var : DayPL(0),cnt(0);
DayPL = 0;
for cnt = 0 to 20{
if sdate == EntryDate(cnt) Then{
DayPL = DayPL+PositionProfit(cnt);
}
}
var77 = (3 * Ema(c,테마기간)) - (3 * Ema(Ema(c,테마기간),테마기간)) + (Ema(Ema(Ema(c,테마기간),테마기간),테마기간));
if stime >= 091000 and stime < 144000 then
{
if MarketPosition == 0 and (DayPL < PriceScale*하루이익틱 and DayPL > PriceScale*하루손실틱) Then{
if c <= o[1] and C < O and var77[1] >= var77[2]+전봉차 Then
buy("b",AtStop,NextBarOpen+진입가*PriceScale);
if c >= o[1] and C > O and var77[1] <= var77[2]-전봉차 Then
sell("s",AtStop,NextBarOpen-진입가*PriceScale);
}
}
SetStopLoss(손절*PriceScale,PointStop);
SetStopTrailing(PriceScale*2,PriceScale*8,PointStop);
if MarketPosition != 0 and (DayPL >= PriceScale*하루이익틱 or DayPL <= PriceScale*하루손실틱) Then{
exitlong();
ExitShort();
}
즐거운 하루되세요
> leekss1 님이 쓴 글입니다.
> 제목 : 수식부탁드립니다-------------
> 전에 해주셨는데 신호가 이상해서 다시부탁 드립니다
첩부화일에서 -1봉보다 1봉의 테마지표값이 (전봉차)만큼 높고
2봉이 음봉이며 3봉의시가가 2봉의 종가보다 높거나 같으면 3봉시가+(진입가)에 매수
(첨부화일 3봉자리에 매수해야되는데 신호가 안나와서요)
매도는 반대로해주세요
그리고 하루이익틱이 도달하면 청산하고 매매종료 하게 해주세요(아래는 계속하는것같음)
INPUTS: 테마기간(30),전봉차(0.01),진입가(5),손절(13),하루이익틱(9),하루손실틱(-26);
var : DayPL(0),cnt(0);
DayPL = 0;
for cnt = 0 to 20{
if sdate == EntryDate(cnt) Then{
DayPL = DayPL+PositionProfit(cnt);
}
}
var77 = (3 * Ema(c,테마기간)) - (3 * Ema(Ema(c,테마기간),테마기간)) + (Ema(Ema(Ema(c,테마기간),테마기간),테마기간));
if stime >= 091000 and stime < 144000 then
{
if MarketPosition == 0 and (DayPL/PriceScale) < 하루이익틱 and (DayPL/PriceScale) > 하루손실틱 Then{
if c <= o[1] and C < O and var77[1] >= var77[2]+전봉차 Then
buy("b",AtStop,o+진입가*PriceScale);
if c >= o[1] and C > O and var77[1] <= var77[2]-전봉차 Then
sell("s",AtStop,o-진입가*PriceScale);
}
}
SetStopLoss(손절*PriceScale,PointStop);
SetStopTrailing(PriceScale*2,PriceScale*8,PointStop);
if MarketPosition != 0 and ((DayPL/PriceScale) >= 하루이익틱 or (DayPL/PriceScale) <= 하루손실틱) Then{
exitlong();
ExitShort();