I'm seriously struggling with this one. I'm trying to create a Double Bottom indicator with certain features.
I just don't know how to write a code of it. I'm aware about this code: Swing(int strength).SwingHighBar(int barsAgo, int instance, int lookBackPeriod) b and athe help guide on the swing indicator: https://ninjatrader.com/support/help...nt8/?swing.htm
I just can't figure out how to implement following criteria.
Here are key features of the indicator. Since Double Bottom has 2 swings I will be using SL2 and SL1 (Swing Low2 and Swing Low1) SL1 being most recent swing.
1. There is up to 6 bars within between SL1 and SL2 (including SL1 and SL2 Bars)
2. If SL1 is Higher then SL2 then LL (Lower Low) of SL1 to be within 2 ticks distance from LL of SL2
3. HH coming from SL2 should be 6 ticks or more away from the 20 EMA
I would appreciate your help with it
Comment