커뮤니티

시스템식

프로필 이미지
외국인
2011-07-03 16:57:42
707
글번호 40475
답변완료
안녕하세요. 1. Condition1 = IsExitName("StopProfittarget",1) and ExitDate(1) == sdate; Condition2 = (Condition1 == true and MarketPosition == 0 and BarsSinceExit(1) >= 1) or (Condition1 == false); if C > H[1] and Condition2 == true Then buy("매수"); if C < L[1] and Condition2 == true Then sell("매도"); 인경우 매수후 매도신호가 or 매도후 매수신호 나오면 청산만되는데 청산과 동시에 진입식은 어떻게되는지요 또한 if a조건식 and Condition2 == true then buy(); if b조건식 and Condition2 == true then sell(); 도 동일하게 청산만되고 청산과동시에 진입식부탁드립니다. 2. Inputs: RSILength1(12), OverBought1(67); If CrossDown(RSI(RSILength1), OverBought1) Then Sell ("rsi"); } 매도진입후 10봉에서 20봉을 카운트하여 25봉 째 청산 또는 13봉을 지나 손실이나면 청산 다른 진입식에 영향이없어야함 (RSI에만적용) 즉 진입식이 여러개있는데 현재사용중인 RSI식에만 적용을 하고싶습니다. 3.호가잔량 이평 오실레이터이용 식 부탁드림니다. Input : Period(5); Var : value(0); value = ma(bids,period)-ma(asks,period); If value > value[1] Then { Plot1(value, "매수총잔량 우위");----------- Plot2(0, "매도총잔량 우위");---------------매도식 0기준 +5000~+7000 매도식 } Else{ Plot1(0, "매수총잔량 우위");--------------- 0기준 -5000~-7000 매수식 Plot2(value, "매도총잔량 우위");----------- } PlotBaseLine1(0,"기준선"); 4. 차이점설명좀해주세요 Condition1 = IsExitName("StopProfittarget",1) and ExitDate(0) == sdate; Condition1 = IsExitName("StopProfittarget",1) and ExitDate(1) == sdate; Condition2 = (Condition1 == true and MarketPosition == 0 and BarsSinceExit(1) >= 1) or (Condition1 == false); Condition2 = (Condition1 == true and MarketPosition == 0 and BarsSinceExit(0) >= 1) or (Condition1 == false); Condition2 = (Condition1 == true and MarketPosition == 1 and BarsSinceExit(0) >= 1) or (Condition1 == false); Condition2 = (Condition1 == true and MarketPosition == 1 and BarsSinceExit(1) >= 1) or (Condition1 == false); Condition3 = (Condition1 == true and MarketPosition != 1 and BarsSinceExit(1) >= 1) or (Condition1 == false); Condition3 = (Condition1 == true and MarketPosition != -1 and BarsSinceExit(1) >= 1) or (Condition1 == false); Condition2 = (Condition1 == true and MarketPosition == -1 and BarsSinceExit(1) >= 1) or (Condition1 == false); 부탁함니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2011-07-04 08:53:04

안녕하세요 예스스탁입니다. 1. 1번과 2번 모두 첨부된 그림과 같이 기존에 작성된 식이 직전청산이 목표수익(SetStopProfittarget)으로 청산되면 한봉뒤부터 조건에 만족하면 진입하고 목표수익청산이 아니면 매도신호일때는 매수청산후 매도진입 매수신호일때는 매도청산후 매도진입을 하게 되는 식입니다. 청산과 진입을 함께하는 식으로 달리 변경할 내용이 없습니다. 2. Inputs: RSILength1(12), OverBought1(67); If CrossDown(RSI(RSILength1), OverBought1) Then Sell ("rsi"); if MarketPosition == -1 and IsEntryName("RSI") Then{ if BarsSinceEntry == 13 and C > EntryPrice Then ExitShort(); if BarsSinceEntry == 25 Then ExitShort(); } 3. Input : Period(5); Var : value(0); value = ma(bids,period)-ma(asks,period); if value >= 5000 and value <= 7000 Then Sell(); if value <= -5000 and value >= -7000 Then buy(); 4. #직전청산이 SetStopProfittarget이고 당일날 생긴 청산 Condition1 = IsExitName("StopProfittarget",1) and ExitDate(0) == sdate; #직전청산이 SetStopProfittarget이고 전일 생긴 청산 Condition1 = IsExitName("StopProfittarget",1) and ExitDate(1) == sdate; #직전청산이 SetStopProfittarget이고 현재무포지션이고 직전청산후 1개봉 경과 후이거나 직전청산이 SetStopProfittarget이 아님 Condition2 = (Condition1 == true and MarketPosition == 0 and BarsSinceExit(1) >= 1) or (Condition1 == false); #잘못작성된 식입니다. BarsSinceExit에는(0)이 붙지 못합니다. Condition2 = (Condition1 == true and MarketPosition == 0 and BarsSinceExit(0) >= 1) or (Condition1 == false); #잘못작성된 식입니다. BarsSinceExit에는(0)이 붙지 못합니다. Condition2 = (Condition1 == true and MarketPosition == 1 and BarsSinceExit(0) >= 1) or (Condition1 == false); #직전청산이 SetStopProfittarget이고 현재 매수포지션상태이고 직전청산후 1개봉 경과 후이거나 직전청산이 SetStopProfittarget이 아님 Condition2 = (Condition1 == true and MarketPosition == 1 and BarsSinceExit(1) >= 1) or (Condition1 == false); #직전청산이 SetStopProfittarget이고 현재 매수포지션은 아니고 직전청산후 1개봉 경과 후이거나 직전청산이 SetStopProfittarget이 아님 Condition3 = (Condition1 == true and MarketPosition != 1 and BarsSinceExit(1) >= 1) or (Condition1 == false); #직전청산이 SetStopProfittarget이고 현재 매도포지션은 아니고 직전청산후 1개봉 경과 후이거나 직전청산이 SetStopProfittarget이 아님 Condition3 = (Condition1 == true and MarketPosition != -1 and BarsSinceExit(1) >= 1) or (Condition1 == false); #직전청산이 SetStopProfittarget이고 현재 매도포지션이고 직전청산후 1개봉 경과 후이거나 직전청산이 SetStopProfittarget이 아님 Condition2 = (Condition1 == true and MarketPosition == -1 and BarsSinceExit(1) >= 1) or (Condition1 == false); 즐거운 하루되세요 > 외국인 님이 쓴 글입니다. > 제목 : 시스템식 > 안녕하세요. 1. Condition1 = IsExitName("StopProfittarget",1) and ExitDate(1) == sdate; Condition2 = (Condition1 == true and MarketPosition == 0 and BarsSinceExit(1) >= 1) or (Condition1 == false); if C > H[1] and Condition2 == true Then buy("매수"); if C < L[1] and Condition2 == true Then sell("매도"); 인경우 매수후 매도신호가 or 매도후 매수신호 나오면 청산만되는데 청산과 동시에 진입식은 어떻게되는지요 또한 if a조건식 and Condition2 == true then buy(); if b조건식 and Condition2 == true then sell(); 도 동일하게 청산만되고 청산과동시에 진입식부탁드립니다. 2. Inputs: RSILength1(12), OverBought1(67); If CrossDown(RSI(RSILength1), OverBought1) Then Sell ("rsi"); } 매도진입후 10봉에서 20봉을 카운트하여 25봉 째 청산 또는 13봉을 지나 손실이나면 청산 다른 진입식에 영향이없어야함 (RSI에만적용) 즉 진입식이 여러개있는데 현재사용중인 RSI식에만 적용을 하고싶습니다. 3.호가잔량 이평 오실레이터이용 식 부탁드림니다. Input : Period(5); Var : value(0); value = ma(bids,period)-ma(asks,period); If value > value[1] Then { Plot1(value, "매수총잔량 우위");----------- Plot2(0, "매도총잔량 우위");---------------매도식 0기준 +5000~+7000 매도식 } Else{ Plot1(0, "매수총잔량 우위");--------------- 0기준 -5000~-7000 매수식 Plot2(value, "매도총잔량 우위");----------- } PlotBaseLine1(0,"기준선"); 4. 차이점설명좀해주세요 Condition1 = IsExitName("StopProfittarget",1) and ExitDate(0) == sdate; Condition1 = IsExitName("StopProfittarget",1) and ExitDate(1) == sdate; Condition2 = (Condition1 == true and MarketPosition == 0 and BarsSinceExit(1) >= 1) or (Condition1 == false); Condition2 = (Condition1 == true and MarketPosition == 0 and BarsSinceExit(0) >= 1) or (Condition1 == false); Condition2 = (Condition1 == true and MarketPosition == 1 and BarsSinceExit(0) >= 1) or (Condition1 == false); Condition2 = (Condition1 == true and MarketPosition == 1 and BarsSinceExit(1) >= 1) or (Condition1 == false); Condition3 = (Condition1 == true and MarketPosition != 1 and BarsSinceExit(1) >= 1) or (Condition1 == false); Condition3 = (Condition1 == true and MarketPosition != -1 and BarsSinceExit(1) >= 1) or (Condition1 == false); Condition2 = (Condition1 == true and MarketPosition == -1 and BarsSinceExit(1) >= 1) or (Condition1 == false); 부탁함니다.