답변완료
수식어 부탁드립니다
if MarketPosition <= 0 Then
buy("b",atlimit,dayhigh-PriceScale*120);
if MarketPosition == 1 Then
exitlong("bx",atlimit,lowest(L,BarsSinceEntry)+PriceScale*120);
if MarketPosition >= 0 Then
sell("s",atlimit,daylow+PriceScale*130);
if MarketPosition == -1 Then
ExitShort("sx",atlimit,Highest(H,BarsSinceEntry)-PriceScale*130);
if sdate != sdate[1] Then
SetStopEndofday(60000);
if bdate != bdate[1] Then
SetStopEndofday(0);
-----------------------------
그래프는 위 수식어의 매도후 청산신호 입니다.
매수,매도의 청산후 진입금지 수식어 부탁드립니다.
2020-05-28
2524
글번호 139284
시스템
답변완료
부탁드립니다
수고하십니다
*아래수식은 지표속성에서 가격에 표시가 되는데 화면에 ▼표시가 나타게 할수얐는지요?
input : 기간1(12),기간2(26),기간3(9);
var : tx(0),tx1(0);
var1 = MACD(기간1,기간2);
var2 = ema(var1,기간3);
if var1<var1[1]&&var1[1]>var1[2]&&var1>var2 Then
tx = text_new(sdate,stime,H+PriceScale*7,"▼");
Text_SetColor(tx,LCYAN);
Text_SetBold(tx,4);
if var1>var1[1]&&var1[1]<var1[2]&&var1<var2 Then
tx1 = text_new(sdate,stime,L-PriceScale*7,"▲");
Text_SetColor(tx1,LCYAN);
Text_SetBold(tx1,4);
2020-05-27
2290
글번호 139283
지표
답변완료
문의 드립니다.
안녕하세요
아래 파동선 수식으로 파동 꼭지점에 매수
매도 신호가 나오게 부탁 드립니다.
감사합니다.
============
Input:length(12);
Var:j(0),lastHiVal(0),lastLoVal(0),sBar(0),eBar(0),
TL1(0),처리구분(""),T(0);
Array:고점[10,2](0),저점[10,2](0);
처리구분 = "";
If Highest(H,length) == H and lastHiVal <> H and
Lowest(L,length) == L and lastLoVal <> L Then
{
If 저점[1,1] > L Then 처리구분 = "저점처리";
If 고점[1,1] < H Then 처리구분 = "고점처리";
}
Else If Highest(H,length) == H and lastHiVal <> H Then 처리구분 = "고점처리";
Else If Lowest(L,length) == L and lastLoVal <> L Then 처리구분 = "저점처리";
If 처리구분 == "고점처리" Then
{
T = 1;
lastHiVal = H;
If 고점[1,2] < 저점[1,2] Then
{
For j = 10 DownTo 2
{
고점[j,1] = 고점[j-1,1];
고점[j,2] = 고점[j-1,2];
}
}
If 고점[1,2] < 저점[1,2] or 고점[1,1] < H Then
{
고점[1,1] = H;
고점[1,2] = Index;
sBar = Index - 저점[1,2];
eBar = 0;
If TL_GetBeginDate(TL1) == sDate[sBar] and TL_GetBeginTime(TL1) == sTime[sBar] Then
{
TL_Delete(TL1);
}
TL1 = TL_New(sDate[sBar],sTime[sBar],저점[1,1],sDate[eBar],sTime[eBar],고점[1,1]);
If 고점[3,1] < 고점[2,1] and 고점[2,1] > 고점[1,1] and 저점[2,1] < 저점[1,1] Then
{
sBar = Index - 저점[2,2];
eBar = Index - 저점[1,2];
}
}
}
If 처리구분 == "저점처리" Then
{
T = -1;
lastLoVal = L;
If 저점[1,2] < 고점[1,2] Then
{
For j = 10 DownTo 2
{
저점[j,1] = 저점[j-1,1];
저점[j,2] = 저점[j-1,2];
}
}
If 저점[1,2] < 고점[1,2] or 저점[1,1] > L Then
{
저점[1,1] = L;
저점[1,2] = Index;
sBar = Index - 고점[1,2];
eBar = 0;
If TL_GetBeginDate(TL1) == sDate[sBar] and TL_GetBeginTime(TL1) == sTime[sBar] Then
{
TL_Delete(TL1);
}
TL1 = TL_New(sDate[sBar],sTime[sBar],고점[1,1],sDate[eBar],sTime[eBar],저점[1,1]);
If 저점[2,1] < 저점[1,1] and 저점[2,1] < 저점[3,1] and 고점[2,1] > 고점[1,1] Then
{
sBar = Index - 고점[2,2];
eBar = Index - 고점[1,2];
}
}
}
TL_SetSize(TL1,3);
TL_SetColor(TL1,green);
=================================
2020-05-27
2980
글번호 139278
시스템