커뮤니티
시스템식 이익청산과동시
2011-07-09 17:11:03
685
글번호 40727
안녕하세요
늘감사함니다. 설명도 같이포함시켜주세요
1.시스템식을 이익청산( SetStopTrailing(0.05,1,PointStop); )과 동시에 매수방법 알려주세요.
Inputs: RSILength1(12), OverBought1(67);
If CrossDown(RSI(RSILength1), OverBought1) Then
Sell ("rsi");
if MarketPosition == -1 and IsEntryName("RSI") Then{
if BarsSinceEntry == 5 and C > EntryPrice Then
ExitShort();
if BarsSinceEntry == 21 Then
ExitShort();
}
}
2.
Condition4 = (Condition1 == true and MarketPosition == 1 and BarsSinceExit(1) >= 1) or (Condition1 == false);
if Condition4 == true then
sell("추적청산", Atstop, Highest(L, BarsSinceEntry+1)-ATR(15)*3);
추적청산 매도후 진행방향이 매도일경우 그냥진행 만약 진행방향이 반대일경우 즉시 매수식 부탁드림니다.
3. 현재의식도 이익청산( SetStopTrailing(0.05,1,PointStop); )과 동시에 반대매수방법
if MarketPosition == 1 Then{
if Highest(C,BarsSinceEntry) >= EntryPrice+1 Then
sell("bs1",AtStop,Highest(C,BarsSinceEntry)-0.05);
}
4. 현제식은 매도진입후 4개봉이후 방향이반대인경우 매수식
Inputs: ConsecutiveOBV(2), LowestLength(11), Pvall(0);
Variables: OBVcalc(0);
OBVcalc = OBV() * 0.0001;
If CountIF(OBVcalc < Lowest(OBVcalc, LowestLength)[1], ConsecutiveOBV) == ConsecutiveOBV and Condition4 == true Then
Sell ("OBV");
}
5.이익청산( SetStopTrailing(0.05,1,PointStop); 된후 매수청산이든 매도청산이든 모조건 반대식
6.이익이나든 SetStopTrailing 이나든 매수포지션이든 매도포지션이든 신호시 무조건진입 방법
7.매수역지정가 매도역지정가 수식부탁함니다
var30=ma(c,10);
var31=ma(c,30);
var32=ma(c,60);
감사합니다.
답변 1
예스스탁 예스스탁 답변
2011-07-11 11:20:42
안녕하세요
예스스탁입니다.
1.
아래식을 추가하시면 됩니다.
if MarketPosition == -1 and IsEntryName("RSI") Then{
if Lowest(L,BarsSinceEntry) <= EntryPrice-1 Then
Buy("sb",AtStop,EntryPrice+0.05);
}
2.
진향방향은 현재가격과 진입가 비교로 작성했습니다.
if IsEntryName("추적청산") And C > EntryPrice Then
buy("bb");
3.
아래식을 추가하시기 바랍니다.
if MarketPosition == -1 and IsEntryName("bs1") Then{
if Lowest(L,BarsSinceEntry) <= EntryPrice-1 Then
Buy("sb",AtStop,EntryPrice+0.05);
}
4.
Inputs: ConsecutiveOBV(2), LowestLength(11), Pvall(0);
Variables: OBVcalc(0);
OBVcalc = OBV() * 0.0001;
If CountIF(OBVcalc < Lowest(OBVcalc, LowestLength)[1], ConsecutiveOBV) == ConsecutiveOBV and Condition4 == true Then
Sell ("OBV");
if MarketPosition == 1 and IsEntryName("OBV") and BarsSinceEntry >= 4 and C > EntryPrice Then
buy("bbb");
5.
if MarketPosition == 1 Then{
if Highest(h,BarsSinceEntry) >= EntryPrice+1 Then
sell("bs",AtStop,EntryPrice-0.05);
}
if MarketPosition == -1 Then{
if Lowest(L,BarsSinceEntry) <= EntryPrice-1 Then
Buy("sb",AtStop,EntryPrice+0.05);
}
6.
해당 내용은 전체식을 보고 수정해야 합니다.
해당 내용만으로는 식으로 답변드릴수 없습니다.
7
전략내용에 대한 자세한 내용 부탁드립니다.
즐거운 하루되세요
> 외국인 님이 쓴 글입니다.
> 제목 : 시스템식 이익청산과동시
> 안녕하세요
늘감사함니다. 설명도 같이포함시켜주세요
1.시스템식을 이익청산( SetStopTrailing(0.05,1,PointStop); )과 동시에 매수방법 알려주세요.
Inputs: RSILength1(12), OverBought1(67);
If CrossDown(RSI(RSILength1), OverBought1) Then
Sell ("rsi");
if MarketPosition == -1 and IsEntryName("RSI") Then{
if BarsSinceEntry == 5 and C > EntryPrice Then
ExitShort();
if BarsSinceEntry == 21 Then
ExitShort();
}
}
2.
Condition4 = (Condition1 == true and MarketPosition == 1 and BarsSinceExit(1) >= 1) or (Condition1 == false);
if Condition4 == true then
sell("추적청산", Atstop, Highest(L, BarsSinceEntry+1)-ATR(15)*3);
추적청산 매도후 진행방향이 매도일경우 그냥진행 만약 진행방향이 반대일경우 즉시 매수식 부탁드림니다.
3. 현재의식도 이익청산( SetStopTrailing(0.05,1,PointStop); )과 동시에 반대매수방법
if MarketPosition == 1 Then{
if Highest(C,BarsSinceEntry) >= EntryPrice+1 Then
sell("bs1",AtStop,Highest(C,BarsSinceEntry)-0.05);
}
4. 현제식은 매도진입후 4개봉이후 방향이반대인경우 매수식
Inputs: ConsecutiveOBV(2), LowestLength(11), Pvall(0);
Variables: OBVcalc(0);
OBVcalc = OBV() * 0.0001;
If CountIF(OBVcalc < Lowest(OBVcalc, LowestLength)[1], ConsecutiveOBV) == ConsecutiveOBV and Condition4 == true Then
Sell ("OBV");
}
5.이익청산( SetStopTrailing(0.05,1,PointStop); 된후 매수청산이든 매도청산이든 모조건 반대식
6.이익이나든 SetStopTrailing 이나든 매수포지션이든 매도포지션이든 신호시 무조건진입 방법
7.매수역지정가 매도역지정가 수식부탁함니다
var30=ma(c,10);
var31=ma(c,30);
var32=ma(c,60);
감사합니다.