Basic PineScript modify for TradingView
Budget: €8 – €30 EUR
Hello,
I've a strategy pinescript and an indicator pinescript that I use to attach simultaneously to a chart and combine their alerts to successfully open a trade.
The strategy script is currently adding a label "open_long" or "open_short" according to its logic while the indicator script is adding a "B" (stand for breakout).
The goal I want to achieve is to merge the scripts to have a single strategy script with both function integrated but with one condition: the label "open_long or short" should appear ONLY if the "B" appeared few candles before, ie. 3 or 4 (value that can be easily changed as a variable).
I've a strategy pinescript and an indicator pinescript that I use to attach simultaneously to a chart and combine their alerts to successfully open a trade.
The strategy script is currently adding a label "open_long" or "open_short" according to its logic while the indicator script is adding a "B" (stand for breakout).
The goal I want to achieve is to merge the scripts to have a single strategy script with both function integrated but with one condition: the label "open_long or short" should appear ONLY if the "B" appeared few candles before, ie. 3 or 4 (value that can be easily changed as a variable).