답변완료
문의드립니다
var1 = ma(c,3);
if var1 > var1[1] Then
value1 = 1;
if var1 < var1[1] Then
value1 = -1;
if value1 == 1 Then
plot1(var1,"이평",RED);
if value1 == -1 Then
plot1(var1,"이평",blue);
............................................
상기식에서 이평을 변수로 처리해 주시고
이평색깔이 변할때(레드로 가다가 블루가 된다거나 블루로 가다가 레드로 변할때) 경보음이 날 수 있도록 가공해 주세요
감사합니다
2022-04-21
879
글번호 158219
지표
답변완료
수식 보완 요청드립니다.
안녕하세요.
시가와 전일중심가격 사이를 존으로 설정한 후 시가가 전일중심가격보다 높게 시작하면
현재가가 시가만든봉 바로 다음봉 시작에 매수진입하고 청산은 전일고가 또는 전일저가 또는 시가대비 피보나치비율 23.6 / 38.2 / 5 / 61.8 에서 청산
시가와 전일중심가격 사이를 존으로 설정한 후 시가가 전일중심가격보다 낮게 시작하면
현재가가 시가만든봉 바로 다음봉에 시작에 매도진입하고 청산은 전일고가 또는 전일저가 또는 시가대비 피보나치비율 23.6 / 38.2 / 5 / 61.8 에서 청산
아래 수식은 매매중간에는 진입신호가 나오나 시가만든봉 바로 다음봉에 진입이 안되고 전일고가 또는 전일저가에 청산도 되질 않습니다.
감사합니다.
Input: dix(1),stopper(1.2),진입횟수(10);
var : entry(0,Data1),idx(0,Data1),전일중심(0),zone(0);
var : Bcond(False,Data1),Scond(False,Data1);
setstoploss(stopper);
if Bdate != bdate[1] Then
{
entry = 0;
idx = 0;
}
Else
idx = idx+1;
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
전일중심 = ((dayhigh(1)+daylow(1))/2);
zone = o+((dayhigh(1)+daylow(1))/2);
bcond = ((o > 전일중심 ) and crossup(c,o)) or ((o < 전일중심 ) and crossup(c,전일중심));
scond = ((o > 전일중심 ) and crossdown(c,전일중심)) or ((o < 전일중심 ) and CrossDown(c,o));
if idx >= dix and stime > 083000 then
{
if entry < 10 and Bcond == true Then
Buy();
if entry < 10 and Scond == true Then
{
Sell();
}
}
IF MarketPosition == 1 and crossup(c,dayhigh(1)) or crossup(c,daylow(1))
Then
ExitLong();
IF MarketPosition == -1 and CrossDown(c,dayhigh(1)) or crossDown(c,daylow(1))
Then
ExitShort();
2022-04-21
998
글번호 158207
시스템