Support Board
Date/Time: Sun, 19 Jan 2025 00:08:18 +0000
Post From: coding question
[2018-03-01 18:50:05] |
Glenn Infinity - Posts: 103 |
Do you know why the coding below would initiate another trade while it was still above the band? Can a condition be put on the code to prevent another trade until it satisfies the 2nd condition? I am taking a long when the price closes outside the bollinger band and short when it closes below the bollinger band. I want the code to be take one long trade not multiple long trades until it changes direction i.e. goes back in the band. Here is the simple alert condition code: Long: C>ID2.SG1 Short: C<ID2.SG3 Where ID2.SG1 is the upper band and ID2.SG3 is the lower band Thanks, |