Convert plots on Tradingview into strategy with Alerts (Pinescript language)
Budget: $10 – $30 USD
Currently i already have a simple pine script that is plotting 10 price points on a chart (H1 to H5 for highs and L1 to L5 for lows).
i need this converted into a strategy (with backtesting enabled) as well as an alert system for buy/sell
Rules are simple for the strategy:
all depends on the OPEN price of the current candle:
1) If current candle's OPEN price is a value between H3 & L3
result: wait for price to fall below L3, then buy once it crosses above L3
Profit target: H2 Value
2) If current candle's OPEN price is a value between H3 & H4
result: wait for price to rise above H4, then buy.
Profit target: H6 Value
3) If current candle's OPEN price is a value between L3 & L4
result: if price is above L3 then buy.
Profit target: H2 Value
4) If current candle's OPEN price is above H4
result: if price is above H4 then Buy
Profit target: H6 Value
Stop loss rules:
Calculate (High - Low) of previous candle
subtract this from open of current candle
i need this converted into a strategy (with backtesting enabled) as well as an alert system for buy/sell
Rules are simple for the strategy:
all depends on the OPEN price of the current candle:
1) If current candle's OPEN price is a value between H3 & L3
result: wait for price to fall below L3, then buy once it crosses above L3
Profit target: H2 Value
2) If current candle's OPEN price is a value between H3 & H4
result: wait for price to rise above H4, then buy.
Profit target: H6 Value
3) If current candle's OPEN price is a value between L3 & L4
result: if price is above L3 then buy.
Profit target: H2 Value
4) If current candle's OPEN price is above H4
result: if price is above H4 then Buy
Profit target: H6 Value
Stop loss rules:
Calculate (High - Low) of previous candle
subtract this from open of current candle