예스스탁
예스스탁 답변
2025-01-20 15:45:05
안녕하세요
예스스탁입니다.
input : StartTime(80000),EndTime(55000),Xtime(55500),진입횟수(1);
var : Tcond(false),entry(0);
var : B1(0),B2(0),BX1(0),BX2(0);
var : S1(0),S2(0),SX1(0),SX2(0);
if sdate != sDate[1] Then
SetStopEndofday(Xtime);
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
Tcond = False;
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
SetStopEndofday(0);
entry = 0;
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
B1 = DayLow(0)+(DayHigh(0)-DayLow(0))*0.410;
BX1 = DayLow(0)+(DayHigh(0)-DayLow(0))*0.950;
S1 = DayHigh(0)+(DayHigh(0)-DayLow(0))*-7.150;
SX1 = DayLow(0)+(DayHigh(0)-DayLow(0))*-0.336;
if Tcond == true Then
{
if (MarketPosition == 0 or (MarketPosition == 1 and MaxEntries == 1)) Then
{
if entry < 진입횟수 and L > B1 Then
Buy("b1",AtLimit,B1);
}
if MarketPosition == 1 Then
{
ExitLong("bx1",AtLimit,BX1,"B1");
}
if (MarketPosition == 0 or (MarketPosition == -1 and MaxEntries == 1)) Then
{
if entry < 진입횟수 and H < S1 Then
Sell("S1",AtLimit,S1);
}
if MarketPosition == -1 Then
{
ExitShort("sx1",AtLimit,SX1,"S1");
}
SetStopProfittarget(PriceScale*0,PointStop);
SetStopLoss(PriceScale*1000,PointStop); }
즐거운 하루되세요
> 푸른 님이 쓴 글입니다.
> 제목 : 문의 드립니다
> input : StartTime(80000),EndTime(55000),Xtime(55500),진입횟수(1);
var : Tcond(false),entry(0);
var : B1(0),B2(0),BX1(0),BX2(0);
var : S1(0),S2(0),SX1(0),SX2(0);
if sdate != sDate[1] Then
SetStopEndofday(Xtime);
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
Tcond = False;
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
SetStopEndofday(0);
entry = 0;
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
B1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.410;
BX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.950;
S1 = DayHigh(1)+(DayHigh(1)-DayLow(1))*-7.150;
SX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*-0.336;
if Tcond == true Then
{
if (MarketPosition == 0 or (MarketPosition == 1 and MaxEntries == 1)) Then
{
if entry < 진입횟수 and L > B1 Then
Buy("b1",AtLimit,B1);
}
if MarketPosition == 1 Then
{
ExitLong("bx1",AtLimit,BX1,"B1");
}
if (MarketPosition == 0 or (MarketPosition == -1 and MaxEntries == 1)) Then
{
if entry < 진입횟수 and H < S1 Then
Sell("S1",AtLimit,S1);
}
if MarketPosition == -1 Then
{
ExitShort("sx1",AtLimit,SX1,"S1");
}
SetStopProfittarget(PriceScale*0,PointStop);
SetStopLoss(PriceScale*1000,PointStop); }
위 수식어는 전일폭에 당일 피보나치 %을 설정하는 수식어 입니다.
수정해야 할 사안은
당일폭에 피보나치 %을 설정하는 수식어로 변경하고자 합니다.