Reply

Excluding time range

3 replies

M1S

Customer, bbp_participant, community, 31 replies.

Visit profile

7 years ago #115302

Hello,

 

I need to exclude 15-17 time range from trading in SQ strategies for Ninjatrader.  If I set SQ time range From to 1700 and To to 1500 the range is not recognized.  Please advise.

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

7 years ago #138119

Hello,

 

you would have to manually edit the final code, it is not possible to do now in SQ. Session times template is a missing feature in the current version but it is planned for newer version so it will have all that’s needed for futures markets

0

M1S

Customer, bbp_participant, community, 31 replies.

Visit profile

7 years ago #138154

Can you give an example of the final code edit that excludes 1600 -1800 range?

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

7 years ago #138178

Hello, this could do the trick 

if ((ToTime(Time[0])  180000))
{
       if (Close[0] > Close[1])
            EnterLong();
       }
}

0

Viewing 3 replies - 1 through 3 (of 3 total)