| Q&A 게시판 | HOME > Q&A 게시판 |
작성자 :
예스스탁
작성일 : 2022-03-08 17:36:32
조회수 : 365
Re:[추가질문] Hit The Bull's Eye 시스템 수식에 금액 변수 적용 방법 문의
안녕하세요?
수식 맨위에 'Input : 금액(10000000);' 내용을 선언해 주셨다면
Buy식을 아래와 같이 바꿔 주시면 됩니다.
Buy("매수",atlimit,BuyEntry, 금액/C);
감사합니다.
>> 풀잎향기 님이 쓴 글입니다.
>> 제목 : [추가질문] Hit The Bull's Eye 시스템 수식에 금액 변수 적용 방법 문의제가 사용하고자 하는 수식은 다음과 같은데요,
Input : 금액(10000000); ==>이부분을 추가 하고자 하니까 BUY 부분 수식 때문에 시스템 설정 화면에서 금액을 변경할 경우 변수변경 적용이 반영이 안됩니다.
아래의 BUY부분을 검토하여 주시기 바랍니다.
Inputs: RangeLength(5), XAvgLength(50), BarstoEnter(5), Factor(3);
Variables: BuyEntry(0), BuySetup(False), BuyCounter(0), LongExitTarget(0);
Variables: SellEntry(0), SellSetup(False), SellCounter(0), ShortExitTarget(0);
Condition1 = High == Highest(High, RangeLength);
Condition2 = Close > High[2];
Condition3 = ema(Close, XAvgLength) > ema(Close, XAvgLength)[1];
Condition4 = Low == Lowest(Low, RangeLength);
Condition5 = Close < Low[2];
Condition6 = ema(Close, XAvgLength) < ema(Close, XAvgLength)[1];
If MarketPosition <> 1 AND Condition1 AND Condition2 AND Condition3 Then Begin
BuyEntry = MedianPrice[2];
BuyCounter = 0;
BuySetup = True;
LongExitTarget = High + Factor * (High - BuyEntry);
End;
If BuyCounter > BarstoEnter Then
BuySetup = False;
Else
BuyCounter = BuyCounter + 1;
If MarketPosition == 1 Then Begin
BuySetup = False;
ExitLong("매도",atlimit,LongExitTarget);
End;
If BuySetup Then
Buy("매수",atlimit,BuyEntry); =====>> 이 부분이 궁굼 합니다.
If MarketPosition <> -1 AND Condition4 AND Condition5 AND Condition6 Then Begin
SellEntry = MedianPrice[2];
SellCounter = 0;
SellSetup = True;
ShortExitTarget = Low - Factor * (SellEntry - Low);
End;
If SellCounter > BarstoEnter Then
SellSetup = False;
Else
SellCounter = SellCounter + 1;
# ATR Protective Stop
Inputs: ProtectiveATRs(3);
var : AtrV(0);
AtrV = ATR(30);
If MarketPosition <> 0 Then
{
#ExitLong("EL_Protective Stop", atstop, EntryPrice - AtrV*ProtectiveATRs);
ExitShort("목표매도", atstop, EntryPrice + AtrV*ProtectiveATRs);
}
>> 예스스탁 님이 쓴 글입니다.
>> 제목 : Re:Hit The Bull's Eye 시스템 수식에 금액 변수 적용 방법 문의
안녕하세요
예스스탁입니다.
buy("이름",신호타입,신호가격,수량);
매수신호함수의 3번째는 가격입니다.
전화로 답변드린 부분과 같이 해당 위치에는 true나 false가 리턴되는 논리변수가 위치할수 없습니다.
atlimit은 매수에서 사용되면
지정한 신호가격 이하의 시세가 발생할때 신호가 발생하는 내용이므로
아래와 같이 가격을 지정해 주셔야 합니다.
buy("b",atlimit,dayopen*0.99);
위와 같이 가격이 지정되었다면 수량은 금액을 지정한 가격으로 나눠주시면 됩니다.
이때 다음봉시가가 지정한 가격보다 낮게 시작할수 있으므로
지정한 가격과 다음봉시가중 작은값으로 계산되게 하시면 됩니다.
input : 금액(10000000);
buy("b",atlimit,dayopen*0.99,금액/min(dayopen*0.99,nextbaropen));
즐거운 하루되세요
>> 풀잎향기 님이 쓴 글입니다.
>> 제목 : Hit The Bull's Eye 시스템 수식에 금액 변수 적용 방법 문의Hit The Bull's Eye 시스템 수식을 사용하고 있는데,
input : 금액(10000000);
이렇게 외부명령을 사용하여 금액을 적용할수 있도록 시스템 변수 적용을 하고자 합니다.
If BuySetup Then
Buy("Buy",atlimit,BuyEntry); ->이부분을 어떻해 수정 해야 되나요?
수식 맨위에 'Input : 금액(10000000);' 내용을 선언해 주셨다면
Buy식을 아래와 같이 바꿔 주시면 됩니다.
Buy("매수",atlimit,BuyEntry, 금액/C);
감사합니다.
>> 풀잎향기 님이 쓴 글입니다.
>> 제목 : [추가질문] Hit The Bull's Eye 시스템 수식에 금액 변수 적용 방법 문의제가 사용하고자 하는 수식은 다음과 같은데요,
Input : 금액(10000000); ==>이부분을 추가 하고자 하니까 BUY 부분 수식 때문에 시스템 설정 화면에서 금액을 변경할 경우 변수변경 적용이 반영이 안됩니다.
아래의 BUY부분을 검토하여 주시기 바랍니다.
Inputs: RangeLength(5), XAvgLength(50), BarstoEnter(5), Factor(3);
Variables: BuyEntry(0), BuySetup(False), BuyCounter(0), LongExitTarget(0);
Variables: SellEntry(0), SellSetup(False), SellCounter(0), ShortExitTarget(0);
Condition1 = High == Highest(High, RangeLength);
Condition2 = Close > High[2];
Condition3 = ema(Close, XAvgLength) > ema(Close, XAvgLength)[1];
Condition4 = Low == Lowest(Low, RangeLength);
Condition5 = Close < Low[2];
Condition6 = ema(Close, XAvgLength) < ema(Close, XAvgLength)[1];
If MarketPosition <> 1 AND Condition1 AND Condition2 AND Condition3 Then Begin
BuyEntry = MedianPrice[2];
BuyCounter = 0;
BuySetup = True;
LongExitTarget = High + Factor * (High - BuyEntry);
End;
If BuyCounter > BarstoEnter Then
BuySetup = False;
Else
BuyCounter = BuyCounter + 1;
If MarketPosition == 1 Then Begin
BuySetup = False;
ExitLong("매도",atlimit,LongExitTarget);
End;
If BuySetup Then
Buy("매수",atlimit,BuyEntry); =====>> 이 부분이 궁굼 합니다.
If MarketPosition <> -1 AND Condition4 AND Condition5 AND Condition6 Then Begin
SellEntry = MedianPrice[2];
SellCounter = 0;
SellSetup = True;
ShortExitTarget = Low - Factor * (SellEntry - Low);
End;
If SellCounter > BarstoEnter Then
SellSetup = False;
Else
SellCounter = SellCounter + 1;
# ATR Protective Stop
Inputs: ProtectiveATRs(3);
var : AtrV(0);
AtrV = ATR(30);
If MarketPosition <> 0 Then
{
#ExitLong("EL_Protective Stop", atstop, EntryPrice - AtrV*ProtectiveATRs);
ExitShort("목표매도", atstop, EntryPrice + AtrV*ProtectiveATRs);
}
>> 예스스탁 님이 쓴 글입니다.
>> 제목 : Re:Hit The Bull's Eye 시스템 수식에 금액 변수 적용 방법 문의
안녕하세요
예스스탁입니다.
buy("이름",신호타입,신호가격,수량);
매수신호함수의 3번째는 가격입니다.
전화로 답변드린 부분과 같이 해당 위치에는 true나 false가 리턴되는 논리변수가 위치할수 없습니다.
atlimit은 매수에서 사용되면
지정한 신호가격 이하의 시세가 발생할때 신호가 발생하는 내용이므로
아래와 같이 가격을 지정해 주셔야 합니다.
buy("b",atlimit,dayopen*0.99);
위와 같이 가격이 지정되었다면 수량은 금액을 지정한 가격으로 나눠주시면 됩니다.
이때 다음봉시가가 지정한 가격보다 낮게 시작할수 있으므로
지정한 가격과 다음봉시가중 작은값으로 계산되게 하시면 됩니다.
input : 금액(10000000);
buy("b",atlimit,dayopen*0.99,금액/min(dayopen*0.99,nextbaropen));
즐거운 하루되세요
>> 풀잎향기 님이 쓴 글입니다.
>> 제목 : Hit The Bull's Eye 시스템 수식에 금액 변수 적용 방법 문의Hit The Bull's Eye 시스템 수식을 사용하고 있는데,
input : 금액(10000000);
이렇게 외부명령을 사용하여 금액을 적용할수 있도록 시스템 변수 적용을 하고자 합니다.
If BuySetup Then
Buy("Buy",atlimit,BuyEntry); ->이부분을 어떻해 수정 해야 되나요?
