답변완료
문의드립니다.
수고 많으십니다.
다름이 아니라 아래 최대수익대비 청산식의 차이점을 정확히 알고 싶습니다.
2개중 아랫쪽 로직으로 시뮬레이션을 돌릴 때가 더 정확한 결과가 나오는 걸로 알았는데
비교해보니 청산타점도 다른거 같습니다.
그럼 설명 부탁드립니다.
var: 수익감소(5), 최소수익(7);
if MarketPosition == 1 then
{
SetStopTrailing(수익감소, 최소수익, PointStop);
}
if MarketPosition == -1 Then
{
SetStopTrailing(수익감소, 최소수익, PointStop);
}
var: 수익감소(20), 최소수익(28);
if MarketPosition == 1 and Highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*최소수익 Then
ExitLong("수청",AtStop,Highest(H,BarsSinceEntry)-PriceScale*수익감소);
if MarketPosition == -1 and lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*최소수익 Then
ExitShort("도청",AtStop,lowest(L,BarsSinceEntry)+PriceScale*수익감소);
2023-10-17
567
글번호 173157
시스템