input : 익절틱수(1000),손절틱수(20);
var : Tcond(false),entry(0);
{
entry = 0;
if MarketPosition <= 0 Then
Sell("s",AtLimit,C+PriceScale*40);
if MarketPosition >= 0 Then
Buy("b",AtLimit,C-PriceScale*40);
}
if Tcond == true Then
{
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if MarketPosition <= 0 and entry < 1 and DayHigh < DayClose(1)+PriceScale*40 Then
Sell("s2",AtLimit,DayClose(1)+PriceScale*40);
if MarketPosition >= 0 and entry < 1 and DayLow > DayClose(1)-PriceScale*40 Then
Buy("b2",AtLimit,DayClose(1)-PriceScale*40);
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
-----------------------
buy 진입신호후 청산
sell진입신호후 청산의 2가지 수식어를 부탁드립니다
답변 1
예스스탁
예스스탁 답변
2022-06-10 11:30:30
안녕하세요
예스스탁입니다.
1
input : 익절틱수(1000),손절틱수(20);
var : Tcond(false),entry(0);
{
entry = 0;
if MarketPosition >= 0 Then
Buy("b",AtLimit,C-PriceScale*40);
}
if Tcond == true Then
{
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if MarketPosition >= 0 and entry < 1 and DayLow > DayClose(1)-PriceScale*40 Then
Buy("b2",AtLimit,DayClose(1)-PriceScale*40);
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
2
input : 익절틱수(1000),손절틱수(20);
var : Tcond(false),entry(0);
{
entry = 0;
if MarketPosition <= 0 Then
Sell("s",AtLimit,C+PriceScale*40);
}
if Tcond == true Then
{
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if MarketPosition <= 0 and entry < 1 and DayHigh < DayClose(1)+PriceScale*40 Then
Sell("s2",AtLimit,DayClose(1)+PriceScale*40);
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
즐거운 하루되세요
> 푸른 님이 쓴 글입니다.
> 제목 : 수식어 부탁드립니다
> input : 익절틱수(1000),손절틱수(20);
var : Tcond(false),entry(0);
{
entry = 0;
if MarketPosition <= 0 Then
Sell("s",AtLimit,C+PriceScale*40);
if MarketPosition >= 0 Then
Buy("b",AtLimit,C-PriceScale*40);
}
if Tcond == true Then
{
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if MarketPosition <= 0 and entry < 1 and DayHigh < DayClose(1)+PriceScale*40 Then
Sell("s2",AtLimit,DayClose(1)+PriceScale*40);
if MarketPosition >= 0 and entry < 1 and DayLow > DayClose(1)-PriceScale*40 Then
Buy("b2",AtLimit,DayClose(1)-PriceScale*40);
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
-----------------------
buy 진입신호후 청산
sell진입신호후 청산의 2가지 수식어를 부탁드립니다