커뮤니티
수정 부탁드립니다.
2019-06-26 09:49:06
268
글번호 129763
안녕하세요? 아래의 조건에서 추가를 하고싶습니다.
*조건추가 내용
pt변수를 현개1개 되어있는데, 총 8개로 늘리고 싶습니다.
감사합니다.
----------------------------------------------------------------------------------------
* 진입
1)당일 최고점에서 (외부변수)p 하락후 매수
2)당일 최저점에서 (외부변수)p 상승후 매도
* 재진입조건
먼저 들어간 매매가 완전히 완료후, 신호발생후 진입
* 익절, 손절
(외부변수)p 익절
(외부변수)p 손절
input : pt(1),익절(1),손절(1);
if MarketPosition == 0 and CrossDown(C,DayHigh-pt) Then
buy();
if MarketPosition == 0 and CrossUp(C,Daylow+pt) Then
sell();
SetStopProfittarget(익절,PointStop);
SetStopLoss(손절,PointStop);
답변 1
예스스탁 예스스탁 답변
2019-06-26 13:48:00
안녕하세요
예스스탁입니다.
input : pt1(0.5),pt2(1),pt3(1.5),pt4(2.0),pt5(2.5),pt6(3.0),pt7(3.5),pt8(4.0);
input : 익절(1),손절(1);
if MarketPosition == 0 and CrossDown(C,DayHigh-pt1) Then
buy();
if MarketPosition == 0 and CrossDown(C,DayHigh-pt2) Then
buy();
if MarketPosition == 0 and CrossDown(C,DayHigh-pt3) Then
buy();
if MarketPosition == 0 and CrossDown(C,DayHigh-pt4) Then
buy();
if MarketPosition == 0 and CrossDown(C,DayHigh-pt5) Then
buy();
if MarketPosition == 0 and CrossDown(C,DayHigh-pt6) Then
buy();
if MarketPosition == 0 and CrossDown(C,DayHigh-pt7) Then
buy();
if MarketPosition == 0 and CrossDown(C,DayHigh-pt8) Then
buy();
if MarketPosition == 0 and CrossUp(C,Daylow+pt1) Then
sell();
if MarketPosition == 0 and CrossUp(C,Daylow+pt2) Then
sell();
if MarketPosition == 0 and CrossUp(C,Daylow+pt3) Then
sell();
if MarketPosition == 0 and CrossUp(C,Daylow+pt4) Then
sell();
if MarketPosition == 0 and CrossUp(C,Daylow+pt5) Then
sell();
if MarketPosition == 0 and CrossUp(C,Daylow+pt6) Then
sell();
if MarketPosition == 0 and CrossUp(C,Daylow+pt7) Then
sell();
if MarketPosition == 0 and CrossUp(C,Daylow+pt8) Then
sell();
SetStopProfittarget(익절,PointStop);
SetStopLoss(손절,PointStop);
즐거운 하루되세요
> 대구어린울프 님이 쓴 글입니다.
> 제목 : 수정 부탁드립니다.
> 안녕하세요? 아래의 조건에서 추가를 하고싶습니다.
*조건추가 내용
pt변수를 현개1개 되어있는데, 총 8개로 늘리고 싶습니다.
감사합니다.
----------------------------------------------------------------------------------------
* 진입
1)당일 최고점에서 (외부변수)p 하락후 매수
2)당일 최저점에서 (외부변수)p 상승후 매도
* 재진입조건
먼저 들어간 매매가 완전히 완료후, 신호발생후 진입
* 익절, 손절
(외부변수)p 익절
(외부변수)p 손절
input : pt(1),익절(1),손절(1);
if MarketPosition == 0 and CrossDown(C,DayHigh-pt) Then
buy();
if MarketPosition == 0 and CrossUp(C,Daylow+pt) Then
sell();
SetStopProfittarget(익절,PointStop);
SetStopLoss(손절,PointStop);