커뮤니티
문의드립니다
2019-02-27 19:54:05
239
글번호 126623
항상 친절하신 답변 고맙습니다
최근청산명이 A이고 A청산수익이 
직전 2일간 연속해서
x% 이상으로 청산했다면 N일간 매매중지
x% 이하이면 매매계속유지 라는 수식부탁드립니다.
감사합니다
input : profit(5),N(3);
var : dd(0),XX(0);
if bdate != bdate[1] Then
{
      dd = dd+1;
      if DD >= XX+N Then
            XX = 0;
}
if TotalTrades > TotalTrades[1] and IsExitName("A",1) == true and PositionProfit(1) >= EntryPrice(1)*(profit/100) Then
      XX = dd;
if XX == 0 then
{
    진입수식들
}
답변 1
예스스탁 예스스탁 답변
2019-02-28 14:47:50
안녕하세요
예스스탁입니다.
input : profit(5),N(3);
var : dd(0),XX(0);
if bdate != bdate[1] Then
{
Condition1 = false;
Condition2 = Condition1[1];
dd = dd+1;
if DD >= XX+N Then
XX = 0;
}
if TotalTrades > TotalTrades[1] and
IsExitName("A",1) == true and PositionProfit(1) >= EntryPrice(1)*(profit/100) Then
{
Condition1 = true;
if Condition1 == true and Condition2 == true then
XX = dd;
}
if XX == 0 then
{
진입수식들
}
즐거운 하루되세요
> 민기삼촌 님이 쓴 글입니다.
> 제목 : 문의드립니다
> 항상 친절하신 답변 고맙습니다
최근청산명이 A이고 A청산수익이 
직전 2일간 연속해서
x% 이상으로 청산했다면 N일간 매매중지
x% 이하이면 매매계속유지 라는 수식부탁드립니다.
감사합니다
input : profit(5),N(3);
var : dd(0),XX(0);
if bdate != bdate[1] Then
{
      dd = dd+1;
      if DD >= XX+N Then
            XX = 0;
}
if TotalTrades > TotalTrades[1] and IsExitName("A",1) == true and PositionProfit(1) >= EntryPrice(1)*(profit/100) Then
      XX = dd;
if XX == 0 then
{
    진입수식들
}
이전글