PROTECTED SOURCE SCRIPT
已更新

Daily breakout @Tradingade

166
This is a daily breakout strategy that can be used on lower timeframe.

Yellow line is our breakout line, based on yesterday's average candle or yesterday's high/low. I found particularly usefull take data from daily candles and trade on lower timeframe, so that we can enter in position each time a trigger point is met on higher timeframe like Daily, which gives more reliable level for some kind of breakout strategy.


The logic of this code is:

Long Entry:
1 - price crosses above the yesterday's average candle
2 - price crosses above yesterday's high

Stop Loss : Percentage % / Trailing Stop
Take profit : Percentage %
Exit Cond : Today's High crosses above Yersterday's High
Filter: Yesterday low was highest in X days


Short Entry:
1 - price crosses below the yesterday's average candle
2 - price crosses below yesterday's low

Stop Loss : Percentage % / Trailing Stop
Take profit : Percentage %
Exit Cond : Today's low crosses below Yersterday's low
Filter: Yesterday high was lowest in X days



FILTER Notes:
You could switch both timeframe and N. of candles in input section. Even tough generally daily data are more reliable, you could find interesting to change it to 1H tf, so filter would be:
"1H high/low was the lowest/highest in previous X hours"


EXIT Notes:
Please note that "% exits" will always override "Exit Cond".
Set % exits to 0 if you want to exit only by "Exit Cond".

版本注释
Default Settings Changes

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。