커뮤니티
문의 드립니다.
2018-01-08 07:07:14
126
글번호 115505
안녕하세요.항상 변함없이 수식작성해 주시는 분들께 깊이 감사드립니다.
아래 시스템 수식에서
"전봉시가기준" 대신에
1. "전봉종가기준" 과
2. "전일종가기준" 과
3. 20일이평선이 120일이평선을 돌파봉""이탈봉"종가기준으로 바꿔서 수정좀 부탁드립니다.
(20일선이 120일선을 돌파 이탈 했을때에의 3번째봉종가기준입니다)
var : T1(0),entry(0);
if bdate != bdate[1] Then
T1 = TotalTrades;
if MarketPosition == 0 Then
entry = TotalTrades-T1;
Else
entry = TotalTrades-T1+1;
if entry < 1 then
{
if MarketPosition == 0 then
{
buy("b",AtStop,O+PriceScale*10);
sell("s",AtStop,O-PriceScale*10);
}
}
SetStopLoss(PriceScale*12,PointStop);
SetStopProfittarget(PriceScale*22,PointStop);
답변 1
예스스탁 예스스탁 답변
2018-01-08 14:25:58
안녕하세요
예스스탁입니다.
1.
var : T1(0),entry(0);
if bdate != bdate[1] Then
T1 = TotalTrades;
if MarketPosition == 0 Then
entry = TotalTrades-T1;
Else
entry = TotalTrades-T1+1;
if entry < 1 then
{
if MarketPosition == 0 then
{
buy("b",AtStop,C+PriceScale*10);
sell("s",AtStop,C-PriceScale*10);
}
}
SetStopLoss(PriceScale*12,PointStop);
SetStopProfittarget(PriceScale*22,PointStop);
2
var : T1(0),entry(0);
if bdate != bdate[1] Then
T1 = TotalTrades;
if MarketPosition == 0 Then
entry = TotalTrades-T1;
Else
entry = TotalTrades-T1+1;
if entry < 1 then
{
if MarketPosition == 0 then
{
buy("b",AtStop,DayClose(1)+PriceScale*10);
sell("s",AtStop,DayClose(1)-PriceScale*10);
}
}
SetStopLoss(PriceScale*12,PointStop);
SetStopProfittarget(PriceScale*22,PointStop);
3
var : T1(0),entry(0);
if bdate != bdate[1] Then
T1 = TotalTrades;
if MarketPosition == 0 Then
entry = TotalTrades-T1;
Else
entry = TotalTrades-T1+1;
var1 = ma(C,20);
var2 = ma(C,120);
if crossup(var1[3],var2[3]) or CrossDown(var1[3],var2[3]) Then
value1 = c;
if entry < 1 then
{
if MarketPosition == 0 then
{
buy("b",AtStop,value1+PriceScale*10);
sell("s",AtStop,value1-PriceScale*10);
}
}
SetStopLoss(PriceScale*12,PointStop);
SetStopProfittarget(PriceScale*22,PointStop);
즐거운 하루되세요
> 알러뷰 님이 쓴 글입니다.
> 제목 : 문의 드립니다.
> 안녕하세요.항상 변함없이 수식작성해 주시는 분들께 깊이 감사드립니다.
아래 시스템 수식에서
"전봉시가기준" 대신에
1. "전봉종가기준" 과
2. "전일종가기준" 과
3. 20일이평선이 120일이평선을 돌파봉""이탈봉"종가기준으로 바꿔서 수정좀 부탁드립니다.
(20일선이 120일선을 돌파 이탈 했을때에의 3번째봉종가기준입니다)
var : T1(0),entry(0);
if bdate != bdate[1] Then
T1 = TotalTrades;
if MarketPosition == 0 Then
entry = TotalTrades-T1;
Else
entry = TotalTrades-T1+1;
if entry < 1 then
{
if MarketPosition == 0 then
{
buy("b",AtStop,O+PriceScale*10);
sell("s",AtStop,O-PriceScale*10);
}
}
SetStopLoss(PriceScale*12,PointStop);
SetStopProfittarget(PriceScale*22,PointStop);