커뮤니티
delaytime sell수식문의
2019-11-01 10:26:41
191
글번호 131729
반대 개념인 sell 수식을 작성했는데 결과가 나오지 않습니다.
검토바랍니다.
input : 진입시간(090000), 시가대비dngap(-0.36);
var : SellSetup(false),SellPrice(0),SD(0),ST(0),HH(0);
if date != date[1] then
{
var1 = 0;
var2 = 0;
SellSetup = false;
}
if stime <= 진입시간 then
{
if C > O then
var1 = var1 + 1 ;
else if C < O then
var2 = var2 + 1 ;
}
if MarketPosition >= 0 and
SellSetup == false and
var1 < var2 and 시가대비dngap >= 0 and C >= dayopen+시가대비dngap then
{
SellSetup = true;
SellPrice = C;
SD = sDate;
ST = TimeToMinutes(stime);
HH = H;
}
if SellSetup == true and H < HH Then
HH = H;
if MarketPosition == -1 Then
SellSetup = false;
if MarketPosition >= 0 and SellSetup == true and Sdate == SD and
TimeToMinutes(stime) >= ST+10 and CrossDown(c,SellPrice) and
HH <= SellPrice+1.25 and HH >= SellPrice+2.0 Then
sell("s");
*********************************************************************************
안녕하세요
예스스탁입니다.
input : 진입시간(090000), 시가대비upgap(0.36);
var : BuySetup(false),Buyprice(0),BD(0),BT(0),LL(0);
if date != date[1] then
{
var1 = 0;
var2 = 0;
BuySetup = false;
}
if stime <= 진입시간 then
{
if C > O then
var1 = var1 + 1 ;
else if C < O then
var2 = var2 + 1 ;
}
if MarketPosition <= 0 and
BuySetup == false and
var1 > var2 and 시가대비upgap >= 0 and C >= dayopen+시가대비upgap Then
{
BuySetup = true;
Buyprice = C;
BD = sdate;
BT = TimeToMinutes(stime);
LL = L;
}
if BuySetup == true and L < LL Then
LL = L;
if MarketPosition == 1 Then
BuySetup = false;
if MarketPosition <= 0 and BuySetup == true and Sdate == BD and
TimeToMinutes(stime) >= BT+10 and crossup(c,BuyPrice) and
LL <= BuyPrice-1.25 and LL >= BuyPrice-2.0 Then
buy("b");
즐거운 하루되세요
답변 1
예스스탁 예스스탁 답변
2019-09-05 14:12:06
안녕하세요
예스스탁입니다.
input : 진입시간(090000), 시가대비dngap(-0.36);
시가디배dngap의 값이 -0.36입니다.
if MarketPosition >= 0 and
SellSetup == false and
var1 < var2 and 시가대비dngap >= 0 and C >= dayopen+시가대비dngap then
값이 음수인데 조건에 시가대비dngap >= 0 와 같이 지정되어 있습니다.
충족될수 없는 조건있는데 해당 조건은 불필요한 조건인것 같습니다,
종가가 시가대비 일정값 이하이므로 C <= dayopen+시가대비dngap로 수정해서
아래와 같이만 변경하시면 됩니다.
if MarketPosition >= 0 and
SellSetup == false and
var1 < var2 and C <= dayopen+시가대비dngap then
그외 수식 전체에 부등호의 내용이 잘못된 부분이 많아 수정했습니다.
이전 올리신 수식과 비교해 보시기 바랍니다.
input : 진입시간(090000), 시가대비dngap(-0.36);
var : SellSetup(false),SellPrice(0),SD(0),ST(0),HH(0);
if date != date[1] then
{
var1 = 0;
var2 = 0;
SellSetup = false;
}
if stime <= 진입시간 then
{
if C > O then
var1 = var1 + 1 ;
else if C < O then
var2 = var2 + 1 ;
}
if MarketPosition >= 0 and
SellSetup == false and
var1 < var2 and C <= dayopen+시가대비dngap then
{
SellSetup = true;
SellPrice = C;
SD = sDate;
ST = TimeToMinutes(stime);
HH = H;
}
if SellSetup == true and H > HH Then
HH = H;
if MarketPosition == -1 Then
SellSetup = false;
if MarketPosition >= 0 and
SellSetup == true and Sdate == SD and
TimeToMinutes(stime) >= ST+10 and
CrossDown(c,SellPrice) and
HH >= SellPrice+1.25 and HH <= SellPrice+2.0 Then
sell("s");
즐거운 하루되세요
> 목마와숙녀 님이 쓴 글입니다.
> 제목 : 추가 문의
> 반대 개념인 sell 수식을 작성했는데 결과가 나오지 않습니다.
검토바랍니다.
input : 진입시간(090000), 시가대비dngap(-0.36);
var : SellSetup(false),SellPrice(0),SD(0),ST(0),HH(0);
if date != date[1] then
{
var1 = 0;
var2 = 0;
SellSetup = false;
}
if stime <= 진입시간 then
{
if C > O then
var1 = var1 + 1 ;
else if C < O then
var2 = var2 + 1 ;
}
if MarketPosition >= 0 and
SellSetup == false and
var1 < var2 and 시가대비dngap >= 0 and C >= dayopen+시가대비dngap then
{
SellSetup = true;
SellPrice = C;
SD = sDate;
ST = TimeToMinutes(stime);
HH = H;
}
if SellSetup == true and H < HH Then
HH = H;
if MarketPosition == -1 Then
SellSetup = false;
if MarketPosition >= 0 and SellSetup == true and Sdate == SD and
TimeToMinutes(stime) >= ST+10 and CrossDown(c,SellPrice) and
HH <= SellPrice+1.25 and HH >= SellPrice+2.0 Then
sell("s");
*********************************************************************************
안녕하세요
예스스탁입니다.
input : 진입시간(090000), 시가대비upgap(0.36);
var : BuySetup(false),Buyprice(0),BD(0),BT(0),LL(0);
if date != date[1] then
{
var1 = 0;
var2 = 0;
BuySetup = false;
}
if stime <= 진입시간 then
{
if C > O then
var1 = var1 + 1 ;
else if C < O then
var2 = var2 + 1 ;
}
if MarketPosition <= 0 and
BuySetup == false and
var1 > var2 and 시가대비upgap >= 0 and C >= dayopen+시가대비upgap Then
{
BuySetup = true;
Buyprice = C;
BD = sdate;
BT = TimeToMinutes(stime);
LL = L;
}
if BuySetup == true and L < LL Then
LL = L;
if MarketPosition == 1 Then
BuySetup = false;
if MarketPosition <= 0 and BuySetup == true and Sdate == BD and
TimeToMinutes(stime) >= BT+10 and crossup(c,BuyPrice) and
LL <= BuyPrice-1.25 and LL >= BuyPrice-2.0 Then
buy("b");
즐거운 하루되세요
다음글