커뮤니티
29115 재문의 드립니다
2013-03-13 14:26:15
246
글번호 60647
input : 손절포인트1(2);
if Condition1 == true Then{
if L <= var1-손절포인트1 Then
Condition1 = false;
}
if Condition2 == true Then{
if L <= var2-손절포인트1 Then
Condition2 = false;
}
SetStopLoss(손절포인트1,PointStop);
위식에서 제 손절포인트가 예를들어
if c>x then setstoploss(1, pointstop)
else if c>y then setstoploss(2, pointstop)
인데..어떻게 낑겨넣어야 되는지 모르겠습니다...
그리고 왜 input : 손절포인트1(2); 로 변수로 잡으셧는지 잘 모르겠네요..
바쁘신데 죄송합니다..식사 맛나게 하세요~
답변 1
예스스탁 예스스탁 답변
2013-03-13 16:44:28
안녕하세요
예스스탁입니다
if date != date[1] Then{
Condition1 = False;
Condition2 = false;
}
if Condition1 == false and Condition2 == false Then{
if a >1 and b>2 and c>3 then{#매수1조건
Condition1 = true;
var1 = C;
if a>2 and b>3 and c>4 Then
buy("매수3");
}
if a >1 and b>2 and c>3 then{#매수2조건
Condition1 = true;
var2 = C;
}
}
if Condition1 == true Then
{
if c > X and L <= var1-1 Then
Condition1 = false;
if c > Y and L <= var1-2 Then
Condition1 = false;
}
if Condition2 == true Then
{
if c[1] > X and L <= var1-1 Then
Condition2 = false;
if c[1] > Y and L <= var1-2 Then
Condition2 = false;
}
손절 포이트 위와 같이 지정하시면 됩니다.
지정하신 손절이 현재봉 조건을 보고 다음봉 판단하므로
한봉전에 C[1]가 x보다 크면 현재봉 저가가 var1값-1이하이면 condition1을 false로 만들고
한봉전에 C[1]가 x보다 크면 현재봉 저가가 var1값-2이하이면 condition1을 false로 만드시면 됩니다.
즐거운 하루되세요
> 을경 님이 쓴 글입니다.
> 제목 : 29115 재문의 드립니다
> input : 손절포인트1(2);
if Condition1 == true Then{
if L <= var1-손절포인트1 Then
Condition1 = false;
}
if Condition2 == true Then{
if L <= var2-손절포인트1 Then
Condition2 = false;
}
SetStopLoss(손절포인트1,PointStop);
위식에서 제 손절포인트가 예를들어
if c>x then setstoploss(1, pointstop)
else if c>y then setstoploss(2, pointstop)
인데..어떻게 낑겨넣어야 되는지 모르겠습니다...
그리고 왜 input : 손절포인트1(2); 로 변수로 잡으셧는지 잘 모르겠네요..
바쁘신데 죄송합니다..식사 맛나게 하세요~