예스스탁
예스스탁 답변
2020-02-21 14:03:53
안녕하세요
예스스탁입니다.
수식에서 or는 별도로 모두 나열해 작성하시면 됩니다.
조건들을 and로 묶는 부분은 어느 조건을 and로 추리해야 할지 모르겠습니다.
진입이후 30분뒤에 5틱이상 손실나면 청산하는 내용이면 청산식을 아래와 같이
작성해 주시면 됩니다. 나머지는 조건을 and로 연결할 내용이 없습니다.
if MarketPosition <= 0 and 조건A Then
buy("매수진입");
if MarketPosition == 1 Then
{
if 조건B Then
ExitLong("매수청산");
#진입이후 30분뒤 청산
if TimeToMinutes(stime) >= TimeToMinutes(EntryTime)+30 and C <= EntryPrice-PriceScale*5 then
ExitLong("bx1");
}
if MarketPosition >= 0 and 조건C Then
sell("매도진입");
if MarketPosition == -1 then
{
if 조건D Then
ExitShort("매도청산");
#진입이후 30분뒤 청산
if TimeToMinutes(stime) >= TimeToMinutes(EntryTime)+30 and c >= EntryPrice+PriceScale*5 then
ExitShort("sx1");
}
즐거운 하루되세요
> 장안퀙쿠르드 님이 쓴 글입니다.
> 제목 : 66148 추가 답변요
>
66148에 대한 추가답변 부탁드려요