예스스탁
예스스탁 답변
2020-03-31 13:33:47
안녕하세요
예스스탁입니다.
추가진입을 하는 내용이므로
설정창에서 피라미딩을 다른진입신호만 허용으로 설정하고
적용하셔야 합니다.
1
var : T(0);
if bdate != bdate[1] Then
{
T = 0;
if MarketPosition <= 0 and C > O Then
{
T = 1;
buy("b1");
}
if MarketPosition >= 0 and C < O Then
{
T = -1;
sell("s1");
}
}
if MarketPosition == 1 and T == 1 Then
{
if MaxEntries == 1 then
buy("b2",atlimit,dayopen-2);
ExitLong("bx",AtLimit,dayopen+3);
}
if MarketPosition == -1 and T == -1 Then
{
if MaxEntries == 1 then
sell("s2",atlimit,dayopen+2);
ExitShort("sx",AtLimit,dayopen-3);
}
2
var : T(0),idx(0);
if bdate != bdate[1] Then
{
T = 0;
idx = 0;
}
idx = idx+1;
if idx == 2 Then
{
if MarketPosition <= 0 and countif(C>O,2) == 2 Then
{
T = 1;
buy("b1");
}
if MarketPosition >= 0 and countif( C<O,2) == 2 Then
{
T = -1;
sell("s1");
}
}
if MarketPosition == 1 and T == 1 Then
{
if MaxEntries == 1 then
buy("b2",atlimit,dayopen-2);
ExitLong("bx",AtLimit,dayopen+3);
}
if MarketPosition == -1 and T == -1 Then
{
if MaxEntries == 1 then
sell("s2",atlimit,dayopen+2);
ExitShort("sx",AtLimit,dayopen-3);
}
3
var : T(0),idx(0);
if bdate != bdate[1] Then
{
T = 0;
idx = 0;
}
idx = idx+1;
if idx >= 2 Then
{
if MarketPosition <= 0 and countif(c > dayopen and C>O,2) == 2 Then
{
T = 1;
buy("b1");
}
if MarketPosition >= 0 and countif(c < dayopen and C<O,2) == 2 Then
{
T = -1;
sell("s1");
}
}
if MarketPosition == 1 and T == 1 Then
{
if MaxEntries == 1 then
buy("b2",atlimit,dayopen-2);
ExitLong("bx",AtLimit,dayopen+3);
}
if MarketPosition == -1 and T == -1 Then
{
if MaxEntries == 1 then
sell("s2",atlimit,dayopen+2);
ExitShort("sx",AtLimit,dayopen-3);
}
즐거운 하루되세요
> 유튜버 님이 쓴 글입니다.
> 제목 : 시스템 질문입니다
> 1.
시가 첫 봉이 양봉이면 첫봉에 1차 매수,시가-2.0 에 2차 매수하여 시가+3.0 에 모두 익절
시가 첫 봉이 음봉이면 첫봉에 1차 매도,시가+2.0 에 2차 매도하여 시가-3.0 에 모두 익절
2.
시가 첫 봉 포함 2연속 양봉일때 1차 매수,시가-2.0 에 2차 매수하여 시가+3.0 에 모두 익절
시가 첫 봉 포함 2연속 음봉일때 1차 매도,시가+2.0 에 2차 매도하여 시가-3.0 에 모두 익절
3.
시가 첫 봉 이후 시가 이상에서 최초로 나타난 2연속 양봉에 1차 매수,시가-2.0 에 2차 매수하여 시가+3.0 에 모두 익절
시가 첫 봉 이후 시가 이하에서 최초로 나타난 2연속 음봉에 1차 매도,시가+2.0 에 2차 매도하여 시가-3.0 에 모두 익절
감사합니다