I have a spread which I have created as an indicator. Within the indicator I have also specified bollinger bands (Upper, Middle and Lower). The indicator is called SpreadBollinger.
What I want my strategy to do is enter short positon for 10 lots whenever the Upper bollinger band is broken with a stop of 12 ticks.
But at the moment no positions are being created and so my strategy analyzer comes back with 0 for the p&l.
Ideally I also want the strategy to take profit when the spread croses the middle bollinger band.
I have attached my code;
Any suggestions would be most welcome!
Kind Regards,
Ravi
Comment