Skip to main content

Posts

Latest Crypto Fear & Greed Index


New Pine Script: Fibonacci Retracement + EMA + RSI = Momentum Strategy

 This is a special script that has been tested longest compared to previous script. Another indicator is added from the previous script  which is the Fibonacci retracement level. Stop Loss also available based on previous low candles lookback. StopLoss is very important to protect your capital. Strategy description: It places BUY order when price crosses up Fibonacci retracement line and when price above long EMA line and RSI is above Buy Threshold. It closes order when the RSI reached Sell Threshold, OR when the price hit StopLoss on previous low lookback.  Recommended setting: Pair: ARKUSDT (Binance) Time frame: 5min Min capital in wallet: 50 USDT // @version= 5 strategy ( ARK(Binance)TF5[www.capayam.com]" , overlay = true , initial_capital = 25 , default_qty_type = strategy.percent_of_equity , default_qty_value = 100 , commission_type = strategy.commission.percent , commission_value = 0.1 ) // The default setting is for ARKUSDT (Binance TF5min). // Adjustable Inputs ema

Improved Pine Script: EMA RSI Momentum

This pine script is the improved version of previous script. Check here . The strategy mainly the same, except it now has StopLoss function, so you sleep soundly knowing your capital is protected.  It also includes Start and Stop timestamp. It can be useful to backtest the strategy at a shorter/specific period of time. Strategy Technical Description: It place Buy order when price crosses up EMA line and RSI is above BUY threshold. It exits when the RSI reaches SELL threshold. The recent swing low acts as StopLoss level. Recommended setting: Pair: IOUSDT (Binance) Timeframe: 5 minutes Capital in wallet: Minimum 30 USDT // @version= 5 strategy ( "EMA-RSI strategy[www.capayam.com]" , overlay = false , initial_capital = 10 , default_qty_type = strategy.percent_of_equity , default_qty_value = 100 , commission_type = strategy.commission.percent , commission_value = 0.1 ) // The default setting is for IOUSDT (Binance TF5) // Adjustable Inputs emaLength = input.int ( 540 ,

My sets of favourite pine codes (for easy revision)

This post is mainly for my own reference actually, so that i could easily come back grab the lines of pine scripts to be inserted into my pine script strategy. They are all version 5 pine script. 1. Top line  Strategy with preset of initial capital, order size, and commission percentage: // @version= 5 strategy ( "Strategy Name [capayam.com]" , overlay = false , initial_capital = 100 , default_qty_type = strategy.percent_of_equity , default_qty_value = 100 , commission_type = strategy.commission.percent , commission_value = 0.1 ) 2. Input groups They are usually for adjusting Take Profit and Stop Loss level. I use this to set Oversold level as well that determine my entry threshold. // Input Groups OverboughtLevel = input.int ( 50 , title = "OverboughtLevel" ) OversoldLevel = input.int ( -50 , title = "OversoldLevel" ) 3.  Timestamp This is useful when backtesting a specified shorter period within a long period of time backtesting range (usu

New Pine Script Published: EMA RSI Momentum Strategy

 This is a momentum strategy that strikes while its hot and exits before the momentum ended. It is actually quite by using only 2 indicators which Exponential Moving Average (EMA) and Relative Strength Index (RSI).  Strategy Technical Description: It place Buy order when price crosses up EMA line and RSI is above BUY threshold. It exits when the RSI reaches SELL threshold. Recommended setting: Pair: RNDR (Binance) Timeframe: 5 minutes Order Size: 100% equity Pyramiding: 1 order Commission: 0.1 % // @version= 5 strategy ( "EMA RSI Momentum Strategy TF5min [capayam.com]" , overlay = false , initial_capital = 10 , default_qty_type = strategy.percent_of_equity , default_qty_value = 100 , commission_type = strategy.commission.percent , commission_value = 0.1 ) //Desc: Buys when price crosses above long EMA line and above RSI Buy threshold. Exits when RSI above Sell threshold. //Recomended pair: RNDRUSDT TF5min (Binance) // Adjustable Inputs emaLength = input.int ( 450 ,

New Pine Script: Cosine Kernel Regression

 This pine script is adapted from Cosine Kernel Regression by QuantraSystems . Credit goes to this brilliant script writer.  The Cosine Kernel Regressions indicator (CKR) uses mathematical concepts to offer a unique approach to market analysis. This indicator employs Kernel Regressions using bespoke tunable Cosine functions in order to smoothly interpret a variety of market data, providing traders with incredibly clean insights into market trends. Details here..   Strategy Description: This stratgey uses many indicators to combine into an indicator that minimizes noises to get as accurate as possible. Order Buy is placed on Oversold signal , and exits the order when Overbought signal . Recommended Settings: Pair: RNDRUSDT (Binance) Time frame: 1 hour Initial Capital: 100 Base Currency: Default Order Size: 100% equity Pyramiding: 1 order Commission: 0.1 %  // @version= 5 strategy ( "CKR: capayam.com credit to QuantraSystems" , overlay = false , initial_capital = 10 , defa