커뮤니티
문의드립니다
2017-02-14 22:35:48
112
글번호 106831
안녕하세요
아래 수식을 검증 부탁드리겠습니다. 이 시스템을 단독으로 시뮬레이션 할때는 아무 문제가 없는데, 다른 시스템들과 결합하면 손절과 익절에서 오류가 발생합니다. 원인을 모르겠습니다.;;
-------------------------------------------------------------------
If 조건 then
{
EP = C;
If C - O < 0.50 then
Buy("매수1");
If C - O >= 0.50 then
Buy("매수2",atlimit,EP-PriceScale*2);
}
if MarketPosition == 1 Then{
if IsEntryName("매수1") == true Then
ExitLong("매수1손절",AtStop,Ep-Pricescale*8);
if IsEntryName("매수1") == true Then
ExitLong("매수1익절",Atlimit,Ep+Pricescale*11);
if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*10
and highest(H,BarsSinceEntry)< EntryPrice+PriceScale*20 Then
ExitLong("매수본절1",AtStop,EntryPrice+PriceScale*3);
}
if MarketPosition == 1 Then{
if IsEntryName("매수2") == true Then
ExitLong("매수2손절",AtStop,EntryPrice-PriceScale*8);
if IsEntryName("매수2") == true Then
ExitLong("매수2익절",Atlimit,EntryPrice+PriceScale*15);
if IsEntryName("매수2") == true Then
if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*12 and highest(H,BarsSinceEntry) < EntryPrice+PriceScale*20 Then
ExitLong("매수본절2",AtStop,EntryPrice+PriceScale*5);
}
답변 1
예스스탁 예스스탁 답변
2017-02-15 13:21:30
안녕하세요
예스스탁입니다.
문의하신 내용은 확인할수 없습니다.
단독으로 사용할때 문제가 없다는 부분은
수식에 문제가 없다는 내용입니다.
올리신 수식에도 문제가 없습니다.
사용자분이 다른 내용과 결합시에
나타나는 문제이므로 사용자분이 전체 내용 숙지하고
결합시 발생할수 있는 문제를 파악해 가셔야 합니다.
즐거운 하루되세요
> 맘속의행복 님이 쓴 글입니다.
> 제목 : 문의드립니다
> 안녕하세요
아래 수식을 검증 부탁드리겠습니다. 이 시스템을 단독으로 시뮬레이션 할때는 아무 문제가 없는데, 다른 시스템들과 결합하면 손절과 익절에서 오류가 발생합니다. 원인을 모르겠습니다.;;
-------------------------------------------------------------------
If 조건 then
{
EP = C;
If C - O < 0.50 then
Buy("매수1");
If C - O >= 0.50 then
Buy("매수2",atlimit,EP-PriceScale*2);
}
if MarketPosition == 1 Then{
if IsEntryName("매수1") == true Then
ExitLong("매수1손절",AtStop,Ep-Pricescale*8);
if IsEntryName("매수1") == true Then
ExitLong("매수1익절",Atlimit,Ep+Pricescale*11);
if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*10
and highest(H,BarsSinceEntry)< EntryPrice+PriceScale*20 Then
ExitLong("매수본절1",AtStop,EntryPrice+PriceScale*3);
}
if MarketPosition == 1 Then{
if IsEntryName("매수2") == true Then
ExitLong("매수2손절",AtStop,EntryPrice-PriceScale*8);
if IsEntryName("매수2") == true Then
ExitLong("매수2익절",Atlimit,EntryPrice+PriceScale*15);
if IsEntryName("매수2") == true Then
if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*12 and highest(H,BarsSinceEntry) < EntryPrice+PriceScale*20 Then
ExitLong("매수본절2",AtStop,EntryPrice+PriceScale*5);
}