Kozlod - Heikin-Ashi Bar Color Change StrategyYou can use this script to backtest Heikin-Ashi bar color change strategy.
You have to apply this script to usual candles and not Heikin-Ashi!!!
Background color indicates HA bar color. On change you'll see green/red arrows and alert will be fired.
Also you can find in the code calculations of all HA OHLC values.
Candlestick Analysis
Babypips: Inside Bar Momentum StrategyThe strategy contained in this post comes courtesy of babypips (.com), an excellent resource for all thing forex related. If you are new to trading, the site is definitely worth checking out!
Code commentary and an introduction to Inside Bars are available for this post on the Backtest-Rookies (.com) website.
Note: If you are interested in custom development services, please check out our services page on the Backtest-Rookies site.
Strategy Overview
Inside Bar Momentum Strategy.
Inside Bar Detection
Position sizing based on stoploss distance ( Note: Based on equity and assumes that the account currency is the counter currency.
Stop buys for entries
Takeprofit / Stoplosses for exits
Control Stopbuy, Takeprofit and Stoploss targets with inputs
Control Backtest start/end dates
SD_Bull_Bear_Engulfing_Rsi_SdThis strategy combines the idea of a bullish or bearish candle engulfing coupled with standard deviation (a 100% increase or a 50% decrease). The exit condition is placed if the percentage increase is achieved or 35<rsi<65.
The strategy requires refinement so please test the script and let know what can be incorporated to improve the efficiency.
Refined CandleCounter Strategy A while ago I published a Candle Counter strategy that got quite some attention. Unfortunately it didn't work for all charts for some reason, so I decided to rewrite it. The result is, to me, astonishing. Judge for yourselves!
Narrow Range + Inside Day, Short Only Strategy (by ChartArt)This short only strategy determines when there is both a NR7 (narrow range 7, a trading day in which the range is narrower than any of the previous six days), plus a inside day (high of the current day is lower than the high of the previous day and the low of the current day is higher than the low of the previous day) both on the same trading day and enters a short trade when the close is lower than the open and the slope of the simple moving average is downwards, too.
The strategy closes the short trade next time the daily close is lower than the open in any of the next trading days. In addition the NR7ID can be colored (the color is red when the close is lower that day than the open, else the color is green) and the SMA can be drawn with a color based on the direction of the SMA slope. To fine-tune the strategy it is highly recommended to change the period length of the SMA, which determines if the measured SMA slope is downwards or not. In this version 1.1 I made a small change to long only version. By default only the bearish NR7ID days are colored.
Inspiration:
How to trade NR7 and Inside Day Pattern
paststat.com
Code credit:
NR7 indicator script from Tradingview user Lazybear:
pastebin.com
P.S. You can find the 'long only' version of this trading strategy here:
Narrow Range + Inside Day, Long Only Strategy (by ChartArt)This long only strategy determines when there is both a NR7 (narrow range 7, a trading day in which the range is narrower than any of the previous six days), plus a inside day (high of the current day is lower than the high of the previous day and the low of the current day is higher than the low of the previous day) both on the same trading day and enters a long trade when the close is larger than the open and the slope of the simple moving average is upwards, too.
The strategy closes the long trade next time the daily close is larger than the open in any of the next trading days. In addition the NR7ID can be colored (the color is green when the close is larger that day than the open, else the color is red) and the SMA can be drawn with a color based on the direction of the SMA slope. To fine-tune the strategy it is highly recommended to change the period length of the SMA, which determines if the measured SMA slope is upwards or not.
Inspiration:
How to trade NR7 and Inside Day Pattern
paststat.com
Code credit:
NR7 indicator script from Tradingview user Lazybear:
pastebin.com
Bullish and Bearish Engulfing StrategyI've been trying to put a stop loss in the High or Low of the last second bar after I open a position but in this example the only way to close it, is with the opposite action. Does anyone know how to put a stop loss and order with just stop loss and close when there is a bullish or bearish engulfing bar?
Mister Transistor 3.0This is a general purpose very flexible program to test the effectiveness of HA bars.
Please note that if you are charting at tradingview using Heikin-Ashi charting, your system will be trading fictitious prices even if you check the "use real prices" box. Thought you might like to know that before you lose all your money.
This program performs the HA calcs internally thus allowing you to use HA bars on a standard bar chart and obtaining real prices for your trades.
Courtesy of Boffin Hollow Lab
Author: Tarzan the Ape Man
Big Candles v1This script simply takes a user-defined bar height number (variable barHeight) to find large candles. Automatically colors large bullish and bearish candles green or red, respectively. The barHeight can be modified to fit your needs.
Use this in a variety of ways:
- Confirm breakouts of support / resistance
- Identify new trends