Trying to create an indicator called HiLo Activator for Tradingview that i used for FT4. The part I need help with is when the price of the current bar closes above or below the current moving average of the step line it should stop plotting the current support or resistant step line and display the other step line.
I have HiLo Activator in Tradestation platform, looked at code, would be very simple conversion from Tradestation ( eastlanguage ) to TradingView ( Pinescript ). Looking at your pinescript, it's a very simple fix to make it work correctly.