커뮤니티
//진입이후최고가 - 진입가 *1/2
2011-06-28 21:41:23
630
글번호 40288
/* 1.
진입후최고가가 형성되고 최고가가 var1을 crossdown하고 최고가가( 진입이후 최 고가- 진입가) 의 절반을 crossdown하면 exitlong
2. 이것말고 더 좋은청산식도 알려주세여*/////
if marketposition == 1 then
{
if H == Highest(H, barssinceentry) then
var1 = c;
if crossdown (H,var1) and crossdown(H, (H-entyprice)*1/2)then
exitlong("",atstop,entryprice+pricescale);
}
if marketposition == -1 then
{
if L== lowest(L,barsinceentry) then
var2= c;
if crossup (L, var2) and crossup (L,(entryprice-L)*1/2) then
exitshort("",atstop,entryprice- pricescale);
}
답변 1
예스스탁 예스스탁 답변
2011-06-29 10:15:15
안녕하세요
예스스탁입니다.
if marketposition == 1 then
{
if H == Highest(H, barssinceentry) then
var1 = c;
if crossdown (H,var1) and crossdown(H, (Highest(H, barssinceentry)-entryprice)*1/2)then
exitlong("");
}
if marketposition == -1 then
{
if L== lowest(L,BarsSinceEntry) then
var2= c;
if crossup (L, var2) and crossup (L,(entryprice-lowest(L,BarsSinceEntry))*1/2) then
exitshort("");
}
즐거운 하루되세요
> 기초부터다시 님이 쓴 글입니다.
> 제목 : //진입이후최고가 - 진입가 *1/2
> /* 1.
진입후최고가가 형성되고 최고가가 var1을 crossdown하고 최고가가( 진입이후 최 고가- 진입가) 의 절반을 crossdown하면 exitlong
2. 이것말고 더 좋은청산식도 알려주세여*/////
if marketposition == 1 then
{
if H == Highest(H, barssinceentry) then
var1 = c;
if crossdown (H,var1) and crossdown(H, (H-entyprice)*1/2)then
exitlong("",atstop,entryprice+pricescale);
}
if marketposition == -1 then
{
if L== lowest(L,barsinceentry) then
var2= c;
if crossup (L, var2) and crossup (L,(entryprice-L)*1/2) then
exitshort("",atstop,entryprice- pricescale);
}
다음글
이전글