답변완료
문의 드립니다.
안녕하세요
수식 질문 드리겠습니다. 더운데 고생이 많으십니다.
미리 감사드립니다.(^^)
1.
If Crossup(value2, value3) then
{
Buy();
}
if MarketPosition != 0 and BarsSinceEntry== 1 Then
{
tx = Text_New(EntryDate,EntryTime,EntryPrice+PriceScale*1,NumToStr(EntryPrice,0));
Text_SetSize(tx,30);
}
If Crossdown(value2, value3) then
{
Sell();
}
위 수식에서 크로스업일땐 가격 표시가 되는데 크로스 다운에서는 표시가 안됩니다.
크로스 업 다운 둘다 가격표시가 될 수 있게 부탁드립니다.
2.
제가 원하는 가격의 가로 추세선을 긋고 싶습니다.
예로 2000 에 가로추세선을 긋고 항상 차트에 남아있게 하고 싶습니다.
가격은 바꿀수 있게 부탁드립니다.
원하는 종목에서만 가격 지정한 추세선이 표시 되게 할 수 있다면 더 좋겠습니다.
감사합니다.
2021-07-20
1275
글번호 150861
지표
답변완료
수정 부탁드립니다.
안녕하세요?
아래식 2가지모두 포지션보유시 익/손절 이후 다음신호발생시 진입하게 하고싶습니다.
감사합니다.
[1]
input : 양봉(3),음봉(3);
input : 익절틱수(20),손절틱수(20);
input : 매매횟수(10);
var : entry(0);
if Bdate != Bdate[1] Then
entry = 0;
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if MarketPosition == 0 and C == O+양봉*PriceScale and entry < 매매횟수 Then
Buy();
if MarketPosition == 0 and C == O-음봉*PriceScale and entry < 매매횟수 Then
Sell();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
[2]
input : 양봉(3),음봉(3);
input : 익절틱수(20),손절틱수(20);
input : p1(5),p2(20),매매횟수(3);
var : entry(0);
if Bdate != Bdate[1] Then
entry = 0;
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
var1 = ma(c,P1);
Var2 = ma(c,P2);
if MarketPosition <= 0 and var1 > Var2 and C == O+양봉*PriceScale and entry < 매매횟수 Then
Buy();
if MarketPosition >= 0 and var1 < Var2 and C == O-음봉*PriceScale and entry < 매매횟수 Then
Sell();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
2021-07-19
1296
글번호 150858
시스템
답변완료
안녕하세요 질문드립니다.
안녕하세요 아래는 예전에 알려주신 청산식입니다
1. 12프로 수익시 청산 또는
2. 2프로 이상 수익후 7프로하락시 청산 또는
3. 7프로 손실시 청산
이렇게인데요
이걸좀 변형하고 싶습니다
1. 45프로 수익시 청산 또는
2. 35프로 이상 도달후 10프로 하락시 청산 또는
3. 6프로 손실시 청산 또는
4. 1540 봉 이후 청산
꼭좀 부탁드리겠습니다. 정말 감사합니다
var : A1Price(0),A1high(0);
var : A2Price(0),A2high(0);
if MarketPosition == 1 Then
{
#A1진입 발생
#보유수량이 증가하고 최근 발생한 진입명이 A1이면
if CurrentContracts > CurrentContracts[1] and LatestEntryName(0) == "A1" Then
{
#진입가 저장
A1Price = LatestEntryPrice(0);
#진입이후 최고가의 초기값으로 현재봉 고가저장
A1high = H;
}
#새로운 고가가 발생하면 변수의 값을 새로운 고가를 변경
if A1high > 0 and H > A1high Then
A1high = H;
#12% 수익이면 청산
ExitLong("C1",AtLimit,A1Price*1.12,"A1");
#2% 이상 수익이후에 7% 하락하면 청산
if A1high >= A1Price*1.02 Then
ExitLong("C2",AtStop,A1high*0.93,"A1");
#7% 손실시 청산
ExitLong("C3",AtStop,A1Price*0.93,"A1");
2021-07-19
1205
글번호 150855
시스템