Auftrag beendet
Spezifikation
Hi,
Attached is a indicator that send a alert everytime a bar gets out of of the bollinger band 20 - 2.5.
I need a extra function on this indicator.
When a bar closed outside the bollinger band then we consider this bar as a signal bar. When this signal bar is followed by a oposite bar then we consider this as a ITM (in the money) WIN trade.
Now I want to have a extra option within this indicator to select the amount of losses before it starts to send alerts.
When we fill in that we want to wait for 2 losses then we need the following situation.
Signal bar nr 1. <== closed outside the bollinger band but did not get followed by a oposite bar. <== this is a loss.
The counter should now have 1 loss.
Signal bar nr 2. <== closed outside the bollinger band but did not get followed by a oposite bar. <== this is a loss.
The counter should now have 2 losses.
Signal bar nr 3. <== Now a new bar starts to move outside the bollinger band. Here we should receive alerts as the counter noticed that previous 2 signal bars were not followed by a oposite bar. This means we have 2 otm (losses) in a row. When this bar finally closes and it's closing price is outside the bollinger band, then we should consider this as trade nr.1. When this signal bar is not being followed by a oposite bar then we will wait for the next signal bar. This next signal bar will also alert us everytime it gets outside the bollinger band. When this bar eventually closed outside the bband we will wait and see if the next bar will be oposite.
Let's say that this bar is a oposite bar then we want the counter to be rest to 0.
The amount of losses that it must count should be adjustable.