TradingView
capissimo
25 mars 2021 11:11

Anti-Breakout Strategy 

Australian Dollar/Japanese YenFXCM

Description

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.

Notes de version

Added Doji module.

Notes de version

Fixed the volumeBreak function.

Notes de version

Minor fix.

Notes de version

Minor fix. Modified the Notification section.
Commentaires
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?
Plus