Support Board
Date/Time: Thu, 21 Nov 2024 22:04:28 +0000
Post From: Spreadsheet Trading off Bollinger Bands
[2013-04-09 23:58:17] |
j514 - Posts: 5 |
Hi! So I have attempted to make a simple script that goes long when the price crosses the upper bollinger band, and goes short when the prices crosses the lower bollinger band (and so if I am already holding a long position, when it crosses the lower bollinger band it should 'reverse' short). Right now, it enters the first position fine, but then it never exits or reverses. This is my 'code': 'Buy Entry' (K3): =(E3 >= AA3) 'Buy Exit' (L3): =(E3 <= AC3) 'Sell Entry' (M3): =(E3 <= AC3) 'Sell Exit' (N3): =(E3 >= AA3) (where E3 is the last price, AA3 is the upper band value, AC3 is the lower band value) What am I doing wrong? I have set 'Allow Opposite Entry with Opposing position' to YES |