커뮤니티
문의드립니다.
2025-12-03 15:00:32
168
글번호 228628
input : Price(573.00);
if crossup(C,price) Then
buy();
위에 식과 같은 방식으로
1차 매수 하고
2차 매수
3차 매수
4차 매수
5차 매수
6차 매수
물타기 형식의 매수를 하고자 합니다.
매수가는 제가 직접 입력하였으면 합니다.
청산도 제가 직접 하고자 합니다.
매도도 같은 방식으로 부탁드립니다.
답변 3
예스스탁 예스스탁 답변
2025-12-03 15:47:43
안녕하세요
예스스탁입니다.
피라미딩을 다른진입신호만 허용으로 설정하고 적용하시면 됩니다.
input : Price1(573.00);
input : Price2(572.00);
input : Price3(571.00);
input : Price4(570.00);
input : Price5(569.00);
input : Price6(568.00);
input : Price7(567.00);
if MarketPosition == 0 and crossup(C,price1) Then
buy("b1");
if MarketPosition == 1 Then
{
if CrossUp(C,Price2) Then
Buy("b2");
if CrossUp(C,Price3) Then
Buy("b3");
if CrossUp(C,Price4) Then
Buy("b4");
if CrossUp(C,Price5) Then
Buy("b5");
if CrossUp(C,Price6) Then
Buy("b6");
if CrossUp(C,Price7) Then
Buy("b7");
}
즐거운 하루되세요
선물대장
2025-12-04 10:56:53
매도 방식도 부탁드립니다.
예스스탁 예스스탁 답변
2025-12-04 13:18:46
안녕하세요
예스스탁입니다.
input : Price1(573.00);
input : Price2(574.00);
input : Price3(575.00);
input : Price4(576.00);
input : Price5(577.00);
input : Price6(578.00);
input : Price7(579.00);
if MarketPosition == 0 and crossdown(C,price1) Then
Sell("b1");
if MarketPosition == 1 Then
{
if crossdown(C,Price2) Then
sell("b2");
if crossdown(C,Price3) Then
sell("b3");
if crossdown(C,Price4) Then
sell("b4");
if crossdown(C,Price5) Then
sell("b5");
if crossdown(C,Price6) Then
sell("b6");
if crossdown(C,Price7) Then
sell("b7");
}
즐거운 하루되세요
다음글
이전글