TradingView
capissimo
25 מרץ 2021 11:11

Anti-Breakout Strategy 

Australian Dollar/Japanese YenFXCM

תיאור

Anti-Breakout Strategy

Description:

This is a contrarian entry strategy for trading false breakouts. The high/low of the breakout bar is used for the entry in the opposite direction.

To reduce repainting set ptype variable to OHL3.

הערות שחרור

Added Doji module.

הערות שחרור

Fixed the volumeBreak function.

הערות שחרור

Minor fix.

הערות שחרור

Minor fix. Modified the Notification section.
תגובות
kdiddydawgy
Mind taking a look at my post below - struggling with syntax :)
capissimo
pleasantCardin94082
Nice Script
capissimo
@pleasantCardin94082, thx for the support)
capissimo
CoinDigger
Nice script.
One note. To calculate the Win Rate, you should use the close value of the candle, not the open, because the signal is given at the closing of the candle.
If you change line 119 to "float bidask = ubase ? (open+high+low)/3 : close" and use the option "Use Base Price?" as false, then the info box should give you result more close to reality.
capissimo
@CoinDigger, thx for your comment, but i did it intentionally to rely on the data that is not mutable by the time i check it.
CoinDigger
@capissimo, ohh, ok, got it ;)
VictorS-
For bitcoin trading what do you recommend close or OHL3?
Spaydz
do these repaint?
עוד