커뮤니티
날짜 와시간 표시 관련
input : 시작일(20250701),시작시간(090000);
input : 이평1(60),이평2(60),이평3(240);
input : 윌리엄스R기간값(12);
input : 손절틱수(350),트레일링스탑틱수(100),목표틱수(300),청산틱수(300);
var : mav1(0),mav2(0),mav3(0),WR(0);
if sdate >= 시작일 and sTime >= 시작시간 Then
{
Condition1 = true;
Condition2 = true;
}
MAV1 = MA(c,이평1);
MAV2 = MA(c,이평2);
MAV3 = MA(c,이평3);
WR = WILLR(윌리엄스R기간값);
if TotalTrades > TotalTrades and IsExitName("StopLoss",1) ==true Then
Condition2 = False;
if Condition1 == true Then
{
if MarketPosition == 0 and c < mav3 and CrossDown(WR, -20) Then
Sell("s");
if MarketPosition == -1 Then
{
if lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*청산틱수 Then
if CrossUp(C,mav2) Then
ExitShort("sx");
}
if MarketPosition == -1 Then
{
if lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*목표틱수 Then
ExitShort("str",AtStop,EntryPrice-PriceScale*트레일링스탑틱수);
}
SetStopLoss(PriceScale*손절틱수,PointStop);
}
날짜와 시간을 꼭 지정을 해야 되나요?
건건마다 날짜와 시간 지정없이 시스템을 작동된다면은 그에 따른 수식을 어떻게 되나요?
답변 부탁 드립니다.
답변 4
예스스탁 예스스탁 답변
2026-01-22 14:28:58
블루3
2026-01-23 03:22:49
블루3
2026-01-23 05:22:08
예스스탁 예스스탁 답변
2026-01-23 10:34:21