Hi,
I’m looking for a few modifications to the attached strategy:
Existing Strategy notes:
Trade On Conditions
– Friday move from 8:00am GMT to Friday close to be 0.007% of FX price – i.e if EUR/USD is at 10700 move to be 75 point minimum
– Close on Friday to be weekly high/low
– Daily RSI to be 65 or higher in uptrend or 35 or lower in downtrend
– Price on Friday to be at or above upper BB on uptrend or at below lower BB on downtrend
Entry Conditions:
– Entry from 11:01pm on Sunday – entry level calculated at Fri close – plus 0.001% in downtrend or minus 0.001% in an uptrend.
– Stop placed at 0.002% of Friday close
– Limit – Stop x 10 – All trades standard 10R
Modifications required:
– Orders not filled by 8:00am Monday to be cancelled
– Stop to be moved to break even by 8:00am Tuesday
– Reduce entry condition on Friday from move of 0.007% to 0.005%
– Reduce limit from 10R to 5R
– Entry from 11:01pm on Sunday – entry level calculated at Fri <b>high or low </b>- plus 0.001% in downtrend or minus 0.001% in an uptrend. If High on Sunday from open to 11:00pm is higher that Friday high (or lower on downtrend) entry level to be adjusted accordingly
Many thanks,
Patrick
Thanks Robert,
Please see below for the last point that I need some assistance with:
- Entry from 11:05pm on Sunday – entry level calculated at Fri high or low plus 0.001% in downtrend or minus 0.001% in an uptrend. If High on Sunday from open to 11:00pm is higher that Friday high (or lower on downtrend) entry level to be adjusted accordingly where are those conditions and values dealt with?<span style=”color: #ff0000;”> I’ve added the indicator where these conditions are to be entered.</span>
-
tolerence = 0.01
s0 = opendayofweek=5
s1 = range > 0.007
s2 = high=highest[5](high)
s3 = rsi[14]>=65
s4 = high > BollingerUp[20](close) * (1 - tolerence)
sellc = s0 and s1 and s2 and s3 and s4
if sellc then
drawarrowdown(barindex,high) coloured("red")
entry = close-(0.001*close)
sldistance=0.002*close
stoploss = close+sldistance
takeprofit = close-sldistance*5
direction = -1
endif
// ---
b0 = opendayofweek=5
b1 = range > 0.007
b2 = low=lowest[5](low)
b3 = rsi[14]<=35
b4 = low > Bollingerdown[20](close) * (1 - tolerence)
buyc = b0 and b1 and b2 and b3 and b4
if buyc then
drawarrowup(barindex,low) coloured("green")
entry = close+(0.001*close)
sldistance=0.002*close
stoploss = entry-sldistance
takeprofit = entry+sldistance*5
direction = 1
endif
return sellc as "sell conditions" coloured(0,0,0,0), buyc as "buy conditions" coloured(0,0,0,0), entry as "entry", stoploss as "stoploss" coloured("red"), takeprofit as "takeprofit" coloured("green"), direction as "direction" coloured(0,0,0,0)