Tradingview Pine Script strategy
Project detail
* I will only consider bis starting with the code word at the end of the description.
Hi, I need someone to code a very simple strategy for me on TradingView pine script and ready for optimization.
The strategy: When volume is X times bigger than volume moving average (Y days) and price the bar is upwards I.e. last price is higher than open price Open position is closed by stop-loss percentage or alternatively pre-defined profit take.
Parameters for optimisation:
X – order of magnitude bigger than volume MA
Y – volume periods moving average
Q – Stop loss percentage
Z -Pre defined take profit percentage
Example: on daily time frame we have a unfinished green daily bar progressing. Volume Moving average for the last 10 days is 100k. For “X” value of 1.5x the moment we reach 150k daily volume the script should open a buy order. For x value of 2x the script should klebtet a buy order when the volume reaches 200k etc. The order is closed on the basis of a trailing stop order with “Q” percentage.
Alert is sent on order entry and order close showing time and price levels
Strategy should work on different time frames 1h, 4h, 1D etc
Code word: “Carrot”