Tradingview Pine script to trigger & manage spreadbetting trade
£20-250 GBP
Cancelled
Posted over 8 years ago
£20-250 GBP
Paid on delivery
I am testing a few speadbetting strategies on some indices. I am using tradingview and use a MAC computer.
1. At a specified UK time, check where Index closed previous trading day,
2. At a specified UK time, compare today’s opening price with the previous day’s closing price.
3. If there a minimum gap of a specified number a trade will be opened based on the entry criteria.
4. If the opening price is lower than previous closing price, a SELL spreadbet trade will be opened to close the GAP if the entry criteria are met.
5. If the opening price is higher than previous closing price, a BUY spreadbet trade will be opened to close the GAP if the entry criteria are met.
6. Wait for the 1st 5 min bar to complete.
7. The size of the spreadbet point will be specified.
Entry Criteria for a BUY trade
Place an order to trigger if the price then penetrates the high of the 1st 5 min plus an extra number of specified points
Entry Criteria for a SELL trade
Place an order to trigger if the price then penetrates the low of the 1st 5 min minus an extra number of specified points
Stop Loss
Place a stop loss of a specified number of points from the entry point
Adjustment Rules
At a specified time, check and do one of the following:
a) If the trade has not been triggered, change the stop to a specified number of points.
b) If in profit by a specified number of points, move the stop to lock in a specified % of profits.
c) If in profit of less than a specified number of points, move the stop loss by a number of specified points.
d) If in loss of greater than a specified number of points, and in a BUY trade, move the stop to the LOW of the 1st 5 min bar.
e) If in loss of greater than a specified number of points, and in a SELL trade, move the stop to the HIGH of the 1st 5 min bar.
Other notes:
• Must be able to run and test in demo & run in live mode in Tradingview using Pine.
• Must be able to run on a MAC computer.
• Must run in UK time and take into account daylight saving.
• The specified number will differ depending on the index.
• The timing will differ depending on the index.
• Must not risk more than a specified & of the trading bank.
• Must be able to open, close and adjust trades in a given demo & live trading account.
• Must be fast in execution.