커뮤니티
문의
2018-12-10 08:06:34
195
글번호 124256
아래 수식을 보조차트를 이용할 수 있는 수식으로 수정바랍니다.
*************************************************************************
input : Price1(266.50);
input : Price2(266.00);
input : Price3(265.50);
input : Price4(265.00);
var : T1(0), T2(0), T3(0), T4(0);
if date <> date[1] Then {
T1 = 0;
T2 = 0;
T3 = 0;
T4 = 0;
}
if T1 != 1 and NextBarOpen <= Price1 Then
buy("b1",AtStop,Price1);
if T2 != 1 and NextBarOpen <= Price2 Then
buy("b2",AtStop,Price2);
if T3 != 1 and NextBarOpen <= Price3 Then
buy("b3",AtStop,Price3);
if T4 != 1 and NextBarOpen <= Price4 Then
buy("b4",AtStop,Price4);
if IsEntryName("B1") Then
T1 = 1 ;
if IsEntryName("b2") Then
T2 = 1 ;
if IsEntryName("b3") Then
T3 = 1 ;
if IsEntryName("b4") Then
T4 = 1 ;
답변 1
예스스탁 예스스탁 답변
2018-12-10 09:08:29
안녕하세요
예스스탁입니다.
참조데이터를 이용하는 수식은 봉완성시로만 가능합니다.
input : Price1(266.50);
input : Price2(266.00);
input : Price3(265.50);
input : Price4(265.00);
var : T1(0,data1), T2(0,data1), T3(0,data1), T4(0,data1);
if data1(date <> date[1]) Then {
T1 = 0;
T2 = 0;
T3 = 0;
T4 = 0;
}
if T1 != 1 and data2(crossup(c,Price1)) Then
buy("b1");
if T2 != 1 and data2(crossup(C,Price2)) Then
buy("b2");
if T3 != 1 and data2(crossup(C,Price3)) Then
buy("b3");
if T4 != 1 and data2(CrossUp(c,Price4)) Then
buy("b4");
if IsEntryName("B1") Then
T1 = 1 ;
if IsEntryName("b2") Then
T2 = 1 ;
if IsEntryName("b3") Then
T3 = 1 ;
if IsEntryName("b4") Then
T4 = 1 ;
즐거운 하루되세요
> 좌오비우오비 님이 쓴 글입니다.
> 제목 : 문의
> 아래 수식을 보조차트를 이용할 수 있는 수식으로 수정바랍니다.
*************************************************************************
input : Price1(266.50);
input : Price2(266.00);
input : Price3(265.50);
input : Price4(265.00);
var : T1(0), T2(0), T3(0), T4(0);
if date <> date[1] Then {
T1 = 0;
T2 = 0;
T3 = 0;
T4 = 0;
}
if T1 != 1 and NextBarOpen <= Price1 Then
buy("b1",AtStop,Price1);
if T2 != 1 and NextBarOpen <= Price2 Then
buy("b2",AtStop,Price2);
if T3 != 1 and NextBarOpen <= Price3 Then
buy("b3",AtStop,Price3);
if T4 != 1 and NextBarOpen <= Price4 Then
buy("b4",AtStop,Price4);
if IsEntryName("B1") Then
T1 = 1 ;
if IsEntryName("b2") Then
T2 = 1 ;
if IsEntryName("b3") Then
T3 = 1 ;
if IsEntryName("b4") Then
T4 = 1 ;