Skip to main content

Posts

Latest Crypto Fear & Greed Index


New Pine Scipt: Martingale Strategy

This script actually does not really involve any Technical Analysis (TA). It just a bot that runs on traditional martingale strategy. Martingale startegy is a risk management strategy that originated in 18th-century France. It is based on the principle of doubling down on losses to recover them in the next winning trade. Strategy description: It places BUY order and double down (according to the multiplier) when the price got lower. TP as per your setting. This strategy works best during bearish period with recovery pattern. Recommended setting: Pair: SUIUSDT (Binance) Time frame:  5min Min capital in wallet:  168 USDT   The code as follows:  **Please read the important instruction in the code. // @version= 5 strategy ( "SUI(Binance TF5)www.capayam.com" , overlay = false , initial_capital = 168 , default_qty_type = strategy.percent_of_equity , default_qty_value = 100 , pyramiding = 10 , commission_type = strategy.commission.percent , commission_value = 0....

New Pine Scipt: EMA RSI ATR Vol strategy

This script has more indicators than previous code. It uses: 1. Exponential Moving Average (EMA) 2. Relative Strength Index (RSI) 3. Average True Range (ATR) 4. Volume EMA and RSI used to determine the trend, while ATR is used to determine TakeProfit or StopLoss levels. Volume (Vol) is to make sure that there will be significant movement and liquidity is available.  Strategy description : It places BUY order when price crosses up Fast EMA + Fast EMA must be above Slow EMA + RSI in between 55-70 + Vol above certain/preset amount.  The TP and SL depend on ATR value. Recommended setting: Pair:  SUIUSDT (Binance) Time frame:  5min Min capital in wallet:  100 USDT   Pinescript as follows: // @version= 5 strategy ( "Code209[EMA,RSI,Vol,ATR]:SUI(Binance)tf5[capayam.com]" , overlay = false , initial_capital = 99 , default_qty_type = strategy.percent_of_equity , default_qty_value = 100 , pyramiding = 1 , commission_type = strategy.commission.percent , commiss...

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 I...

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 ,...