Summer Sale: 40% Off All Annual PlansUpgrade Now
← All Scripts
Protected

BTC Entry and Exit Strategy

Pavan Boggarapu
3d ago
BTC Entry and Exit Strategy

This script's source code is protected by the author.

One important backtesting assumption: because this is 4H OHLC data, if a candle's high and low touch both a stop and a target during the same bar, OHLC alone cannot tell us which occurred first. This version gives the stop priority in that situation, which is the conservative choice.

Also, the script enters on the next 4H candle's open after a signal, rather than assuming an entry at the signal candle's close. This avoids look-ahead bias.

I compiled this exact version with the Lipi compiler after fixing the earlier \/parser issue. 

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by GoCharting. Read more in the Terms of Use.

Comments (0)

Loading comments…