BTST technique?

how to set code for BTST stocks? not long period time investment. exit as early as possible with profit