Assuming your sequence is designed to form a hairpin, you should not encounter any problems folding to the desired conformation. In the case of competing alternate structures, lower DNA and salt concentrations favor the hairpin over intermolecular forms as demonstrated experimentally by Marky et al., 1983 (Biopolymers , 22: 1247).
Regarding specific annealing conditions, you might refer to the article authored by Shockett and Schatz, 1999 (Mol. Cell. Biol., 19: 4159), which employs heating at 95 ºC and rapid cooling to favor hairpin formation over intermolecular association as paraphrased on page 4160: "Hairpin oligonucleotides were denatured at 95 °C and quick cooled on ice to favor intramolecular hairpin annealing rather than intermolecular association".
Assuming your sequence is designed to form a hairpin, you should not encounter any problems folding to the desired conformation. In the case of competing alternate structures, lower DNA and salt concentrations favor the hairpin over intermolecular forms as demonstrated experimentally by Marky et al., 1983 (Biopolymers , 22: 1247).
Regarding specific annealing conditions, you might refer to the article authored by Shockett and Schatz, 1999 (Mol. Cell. Biol., 19: 4159), which employs heating at 95 ºC and rapid cooling to favor hairpin formation over intermolecular association as paraphrased on page 4160: "Hairpin oligonucleotides were denatured at 95 °C and quick cooled on ice to favor intramolecular hairpin annealing rather than intermolecular association".
Most publications described the process as "slowly cool down for more than an hour", I also want to know how to make it slow enough. Have you solved this problem yet?