This script implements the Peti Kemas published on Youtube by Woles Trader. This version is a slight modification strategy for selecting the EMAs period, but users can change the period.
The strategy starts if the current candle close is below EMA90 or EMA200, a buy signal is generated when the price crosses up EMA13. Buy signals are further generated if the price crosses up EMA90 and EMA200. Sell signals are generated when the price cross down EMA8, EMA13, EMA90, or EMA200.
When the price is above EMA90 or EMA200, a buy signal is generated when the price crosses up EMA8 and EMA55. Sell signals are generated when the price cross down EMA8, EMA13, EMA90, or EMA200.
A start buy signal is indicated with a triangle-up with the buy text, and a final sell signal is shown when a triangle-down with the sell text. Users can add position when the triangle-up shape (without text) is shown after the buy signal and decrease the position when triangle-down.