// Downloaded From https://www.WiseStockTrader.com
SetTradeDelays( 0, 1, 0, 0);

PreCondition = ATR( 1 ) < ATR( 7) ;

MoveUp = H > Ref( H, -1 );

Buy = Ref( PreCondition, -1 ) AND MoveUp;
BuyPrice = Max( Ref( H, -1 ), O );

Sell = Buy;
Sell = ExRem( Sell, Buy );
SellPrice = C;