Tradingview Pine script

MQL4 脚本 其它

工作已完成

执行时间8 天
客户反馈
Enjoyed working on my very first project with SharpQ. Very helpful and knowledgable person. Looking forward to working with you again.

指定

I would like to test a speadbetting strategy on two indices, using tradingview and a MAC computer.

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.

 

 

 

反馈

1
开发者 1
等级
(14)
项目
27
22%
仲裁
18
6% / 89%
逾期
8
30%
空闲
发布者: 1 代码
2
开发者 2
等级
(225)
项目
285
41%
仲裁
15
13% / 47%
逾期
67
24%
空闲
3
开发者 3
等级
(130)
项目
210
40%
仲裁
90
20% / 43%
逾期
85
40%
空闲
4
开发者 4
等级
(71)
项目
156
44%
仲裁
22
41% / 14%
逾期
16
10%
空闲
发布者: 10 代码
5
开发者 5
等级
项目
1
0%
仲裁
0
逾期
1
100%
空闲

项目信息

预算
100 - 150 USD
截止日期
 7  14 天