input : aa(00),dd(0),cc(0);
if h[1] > h[2] and C < (H[1]+L[2])/2 Then
sell();
if L[1] < L[2] and C > (L[1]+H[2])/2 Then
buy();
if MarketPosition == 1 Then{
ExitLong("수손절",AtStop,EntryPrice-PriceScale-cc);//AtStop,
ExitLong("수수익",AtLimit,EntryPrice+PriceScale+dd);
} (H,BarsSinceEntry)-EntryPrice)*0.5);
if MarketPosition == -1 Then{
ExitShort("도손절",AtStop,EntryPrice+PriceScale+cc);
ExitShort("도수익",AtLimit,EntryPrice-PriceScale-dd);
}
문의드립니다
1.매수신호가 나온봉의 저가를 손절선의로하고요
반대로
2.매도신호가 나온봉의 고가를 손절선의로하고요
3. 손절되기전 신호는 무시하고요
4. 익절시스템1 익절은 위에선언한것처럼 dd(0) 시뮬레이션을 해보려고합니다
5. 익절시스템2 예로 매수가245.00 매수진입 하고나서
매수가에 0.50올라가면 245.50 이상태에서 익절선-0.30이 아래로떨어지면245.20에익절
한마디로 매수가에서 기본으로 0.50올라가 그이상으로올라갈떄마다익절값도0.20식올라가는것입니다
항상감사드립니다
답변 1
예스스탁
예스스탁 답변
2016-03-28 09:58:55
안녕하세요
예스스탁입니다.
input : dd(0);
if h[1] > h[2] and C < (H[1]+L[2])/2 Then
sell();
if L[1] < L[2] and C > (L[1]+H[2])/2 Then
buy();
if MarketPosition == 1 Then{
ExitLong("수손절",AtStop,L[BarsSinceEntry]);//AtStop,
ExitLong("수수익1",AtLimit,EntryPrice+PriceScale+dd);
var1 = Floor((Highest(H,BarsSinceEntry)-EntryPrice)/0.5);
if var1 >= 1 Then
ExitLong("수수익2",AtLimit,EntryPrice+0.2*var1);
}
if MarketPosition == -1 Then{
ExitShort("도손절",AtStop,H[BarsSinceEntry]);
ExitShort("도수익1",AtLimit,EntryPrice-PriceScale-dd);
if var1 >= 1 Then
ExitShort("도수익2",AtLimit,EntryPrice-0.2*var1);
}
즐거운 하루되세요
> 파파리리 님이 쓴 글입니다.
> 제목 : 문의드립니다
> input : aa(00),dd(0),cc(0);
if h[1] > h[2] and C < (H[1]+L[2])/2 Then
sell();
if L[1] < L[2] and C > (L[1]+H[2])/2 Then
buy();
if MarketPosition == 1 Then{
ExitLong("수손절",AtStop,EntryPrice-PriceScale-cc);//AtStop,
ExitLong("수수익",AtLimit,EntryPrice+PriceScale+dd);
} (H,BarsSinceEntry)-EntryPrice)*0.5);
if MarketPosition == -1 Then{
ExitShort("도손절",AtStop,EntryPrice+PriceScale+cc);
ExitShort("도수익",AtLimit,EntryPrice-PriceScale-dd);
}
문의드립니다
1.매수신호가 나온봉의 저가를 손절선의로하고요
반대로
2.매도신호가 나온봉의 고가를 손절선의로하고요
3. 손절되기전 신호는 무시하고요
4. 익절시스템1 익절은 위에선언한것처럼 dd(0) 시뮬레이션을 해보려고합니다
5. 익절시스템2 예로 매수가245.00 매수진입 하고나서
매수가에 0.50올라가면 245.50 이상태에서 익절선-0.30이 아래로떨어지면245.20에익절
한마디로 매수가에서 기본으로 0.50올라가 그이상으로올라갈떄마다익절값도0.20식올라가는것입니다
항상감사드립니다