1.
input : 익절틱수(0),손절틱수(20);
if NextBarSdate != sDate Then
{
if NextBarOpen == C Then
{
Buy("b",AtStop,NextBarOpen+PriceScale*10);
}
}
Sell("bx",AtMarket);
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
2.
input : 익절틱수(0),손절틱수(20);
if NextBarSdate != sDate Then
{
if NextBarOpen == C Then
{
Sell("s",AtStop,NextBarOpen-PriceScale*10);
}
Buy("sx",AtMarket);
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
늘 수고가 많으십니다.
위 2가지 수식어를 일봉매매에 적용하고 있습니다.
익일 시가에 청산후 매매정지를 하고자 합니다.
답변 2
예스스탁
예스스탁 답변
2023-01-11 11:45:30
안녕하세요
예스스탁입니다.
1
input : 익절틱수(0),손절틱수(20);
if NextBarSdate != sDate Then
{
if NextBarOpen == C Then
{
Buy("b",AtStop,NextBarOpen+PriceScale*10);
}
exitlong("bx",AtMarket);
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
2.
input : 익절틱수(0),손절틱수(20);
if NextBarSdate != sDate Then
{
if NextBarOpen == C Then
{
Sell("s",AtStop,NextBarOpen-PriceScale*10);
}
exitshort("sx",AtMarket);
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
즐거운 하루되세요
> 푸른 님이 쓴 글입니다.
> 제목 : 문의 드립니다.
> 1.
input : 익절틱수(0),손절틱수(20);
if NextBarSdate != sDate Then
{
if NextBarOpen == C Then
{
Buy("b",AtStop,NextBarOpen+PriceScale*10);
}
}
Sell("bx",AtMarket);
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
2.
input : 익절틱수(0),손절틱수(20);
if NextBarSdate != sDate Then
{
if NextBarOpen == C Then
{
Sell("s",AtStop,NextBarOpen-PriceScale*10);
}
Buy("sx",AtMarket);
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
늘 수고가 많으십니다.
위 2가지 수식어를 일봉매매에 적용하고 있습니다.
익일 시가에 청산후 매매정지를 하고자 합니다.
input : 최대진입횟수(1);
Var : Entry(0);
if Bdate != Bdate[1] Then
{
entry = 0;
}
# 당일 매매 회수를 Entry에 기록
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if entry < 최대진입횟수 Then
{
진입식
}
> 푸른 님이 쓴 글입니다.
> 제목 : 문의 드립니다.
> 1.
input : 익절틱수(0),손절틱수(20);
if NextBarSdate != sDate Then
{
if NextBarOpen == C Then
{
Buy("b",AtStop,NextBarOpen+PriceScale*10);
}
}
Sell("bx",AtMarket);
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
2.
input : 익절틱수(0),손절틱수(20);
if NextBarSdate != sDate Then
{
if NextBarOpen == C Then
{
Sell("s",AtStop,NextBarOpen-PriceScale*10);
}
Buy("sx",AtMarket);
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
늘 수고가 많으십니다.
위 2가지 수식어를 일봉매매에 적용하고 있습니다.
익일 시가에 청산후 매매정지를 하고자 합니다.