커뮤니티
수식 부탁드립니다
2017-02-01 17:21:02
83
글번호 106430
아래와 같은 피라미딩 시스템 청산식을 사용할 경우 최초진입가에서 5p 이상인 지점에서만 청산이 이루어집니다.
만들고자 하는 청산식은
최초 진입가(buy)에서 피라미딩하여 5p 이상인 지점에서 청산이 이루어지고 또한 추가 진입한 후 피라미딩하여 5p 이상인 지점에서도 청산이 이루어지는 시스템입니다.
부탁드립니다
if MarketPosition == 1 Then
{
if MaxContracts < 20 and (entryprice >= LatestEntryPrice) or (entryprice <= LatestEntryPrice) Then
buy("bb",atstop,LatestEntryPrice(0)+1.5,1);
if MaxContracts < 20 Then
buy("bs",atlimit,latestEntryPrice(0)-5,1);
}
if MarketPosition == -1 Then
{
if MaxContracts < 20 and (entryprice <= LatestEntryPrice) or (entryprice >= LatestEntryPrice) Then
sell("ss",atstop,LatestEntryPrice(0)-1.5,1);
if MaxContracts < 20 Then
sell("sb",atlimit,latestEntryPrice(0)+5,1);
}
if MarketPosition == 1 Then
ExitLong("bp",atlimit,AvgEntryPrice+7.0);
if MarketPosition == -1 Then
ExitShort("sp",atlimit,AvgEntryPrice-7.0);
if MarketPosition == 1 and c > entryprice + 5 and Relative1 >= 65 Then
exitlong("bx1",AtStop,c);
if MarketPosition == -1 and c < entryprice - 5 and Relative1 <= 35 Then
exitShort("sx1",AtStop,c);
답변 1
예스스탁 예스스탁 답변
2017-02-02 10:42:36
안녕하세요
예스스탁입니다.
if MarketPosition == 1 Then
{
if MaxContracts < 20 and (entryprice >= LatestEntryPrice) or (entryprice <= LatestEntryPrice) Then
buy("bb",atstop,LatestEntryPrice(0)+1.5,1);
if MaxContracts < 20 Then
buy("bs",atlimit,latestEntryPrice(0)-5,1);
}
if MarketPosition == -1 Then
{
if MaxContracts < 20 and (entryprice <= LatestEntryPrice) or (entryprice >= LatestEntryPrice) Then
sell("ss",atstop,LatestEntryPrice(0)-1.5,1);
if MaxContracts < 20 Then
sell("sb",atlimit,latestEntryPrice(0)+5,1);
}
if MarketPosition == 1 Then
ExitLong("bp",atlimit,AvgEntryPrice+7.0);
if MarketPosition == -1 Then
ExitShort("sp",atlimit,AvgEntryPrice-7.0);
if MarketPosition == 1 and c > LatestEntryPrice(0) + 5 and Relative1 >= 65 Then
exitlong("bx1",AtStop,c);
if MarketPosition == -1 and c < LatestEntryPrice(0) - 5 and Relative1 <= 35 Then
exitShort("sx1",AtStop,c);
즐거운 하루되세요
> 미송 님이 쓴 글입니다.
> 제목 : 수식 부탁드립니다
> 아래와 같은 피라미딩 시스템 청산식을 사용할 경우 최초진입가에서 5p 이상인 지점에서만 청산이 이루어집니다.
만들고자 하는 청산식은
최초 진입가(buy)에서 피라미딩하여 5p 이상인 지점에서 청산이 이루어지고 또한 추가 진입한 후 피라미딩하여 5p 이상인 지점에서도 청산이 이루어지는 시스템입니다.
부탁드립니다
if MarketPosition == 1 Then
{
if MaxContracts < 20 and (entryprice >= LatestEntryPrice) or (entryprice <= LatestEntryPrice) Then
buy("bb",atstop,LatestEntryPrice(0)+1.5,1);
if MaxContracts < 20 Then
buy("bs",atlimit,latestEntryPrice(0)-5,1);
}
if MarketPosition == -1 Then
{
if MaxContracts < 20 and (entryprice <= LatestEntryPrice) or (entryprice >= LatestEntryPrice) Then
sell("ss",atstop,LatestEntryPrice(0)-1.5,1);
if MaxContracts < 20 Then
sell("sb",atlimit,latestEntryPrice(0)+5,1);
}
if MarketPosition == 1 Then
ExitLong("bp",atlimit,AvgEntryPrice+7.0);
if MarketPosition == -1 Then
ExitShort("sp",atlimit,AvgEntryPrice-7.0);
if MarketPosition == 1 and c > entryprice + 5 and Relative1 >= 65 Then
exitlong("bx1",AtStop,c);
if MarketPosition == -1 and c < entryprice - 5 and Relative1 <= 35 Then
exitShort("sx1",AtStop,c);
다음글
이전글