하이투자증권은 주식은 모의투자 지원하지 않고 있고 선물만 지원합니다
저는 NH트레이더를 사용하고 있습니다
NH증권에서는 올해 9월부터 모의투자를 지원하지 않는다고 합니다
그래서 실물 테스트를 해야 할것 같습니다
현재 보유중인 종목으로 테스트를 하려면 시가에 100주를 매수하는것은
필요없을 것같습니다
아래 보내주신 수식을
input : 날짜(20191030),시간(90000);
if NextBarSdate >= 날짜 and NextBarStime >= 시간 Then
Condition1 = True;
이 부분과
if MarketPosition == 0 Then
buy("b",AtStop,C+PriceScale*10,100);
if MarketPosition == 1 then
이부분을 삭제하고
5호가에 1주씩 매매하기위해서
아래수식에서
{
if NextBarsdate > sdate and NextBarOpen >= C+PriceScale*5 Then
exitlong("bx",AtMarket,def,"",1,2);
if NextBarsdate > sdate and NextBarOpen <= C-PriceScale*5 Then
buy("bb",AtMarket,def,1);
}
이렇게 수정하면
5호가 상승시 1주 매도
5호가 하락시 1주 매수
이렇게 되는 건가요
매번 친절한 답변 감사드립니다
보내주신 수식
input : 날짜(20191030),시간(90000);
if NextBarSdate >= 날짜 and NextBarStime >= 시간 Then
Condition1 = True;
if Condition1 == true then
{
if MarketPosition == 0 Then
buy("b",AtStop,C+PriceScale*10,100);
if MarketPosition == 1 then
{
if NextBarsdate > sdate and NextBarOpen >= C+PriceScale*10 Then
exitlong("bx",AtMarket,def,"",10,2);
if NextBarsdate > sdate and NextBarOpen <= C-PriceScale*10 Then
buy("bb",AtMarket,def,10);
}
}
답변 1
예스스탁
예스스탁 답변
2019-10-30 14:33:44
> 꽃봄 님이 쓴 글입니다.
> 제목 : 답해주신 수식 문의 드립니다
> 하이투자증권은 주식은 모의투자 지원하지 않고 있고 선물만 지원합니다
저는 NH트레이더를 사용하고 있습니다
NH증권에서는 올해 9월부터 모의투자를 지원하지 않는다고 합니다
그래서 실물 테스트를 해야 할것 같습니다
현재 보유중인 종목으로 테스트를 하려면 시가에 100주를 매수하는것은
필요없을 것같습니다
아래 보내주신 수식을
input : 날짜(20191030),시간(90000);
if NextBarSdate >= 날짜 and NextBarStime >= 시간 Then
Condition1 = True;
이 부분과
if MarketPosition == 0 Then
buy("b",AtStop,C+PriceScale*10,100);
if MarketPosition == 1 then
이부분을 삭제하고
5호가에 1주씩 매매하기위해서
아래수식에서
{
if NextBarsdate > sdate and NextBarOpen >= C+PriceScale*5 Then
exitlong("bx",AtMarket,def,"",1,2);
if NextBarsdate > sdate and NextBarOpen <= C-PriceScale*5 Then
buy("bb",AtMarket,def,1);
}
이렇게 수정하면
5호가 상승시 1주 매도
5호가 하락시 1주 매수
이렇게 되는 건가요
매번 친절한 답변 감사드립니다
보내주신 수식
input : 날짜(20191030),시간(90000);
if NextBarSdate >= 날짜 and NextBarStime >= 시간 Then
Condition1 = True;
if Condition1 == true then
{
if MarketPosition == 0 Then
buy("b",AtStop,C+PriceScale*10,100);
if MarketPosition == 1 then
{
if NextBarsdate > sdate and NextBarOpen >= C+PriceScale*10 Then
exitlong("bx",AtMarket,def,"",10,2);
if NextBarsdate > sdate and NextBarOpen <= C-PriceScale*10 Then
buy("bb",AtMarket,def,10);
}
}