Changes to Weekly Reversal FX Strategy
Forums › ProRealTime English forum › ProOrder support › Changes to Weekly Reversal FX Strategy
- This topic has 2 replies, 2 voices, and was last updated 1 year ago by Philley.
Viewing 3 posts - 1 through 3 (of 3 total)
-
-
03/23/2023 at 9:47 AM #211971
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 downtrendEntry 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 10RModifications 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 accordinglyMany thanks,Patrick05/02/2023 at 12:24 PM #213979Modifications required:- Orders not filled by 8:00am Monday to be cancelled DONE
- Stop to be moved to break even by 8:00am Tuesday DONE
- Reduce entry condition on Friday from move of 0.007% to 0.005% what is it, I can’t see any move?
- Reduce limit from 10R to 5R what are they, I can’t see any reference to those values?
- Entry from 11:01pm 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?
123456789101112131415161718192021222324252627282930313233343536373839defparam cumulateorders=falsedefparam preloadbars=0// --- settingsLotSize = 1 //define lot size of each order here// --- end of settingssellc, buyc, entry, sl, tp, dir = CALL "PRC_PatrickHilley01_indi"(close)if onmarket or shorttriggered or longtriggered thencurrentry=entrylevelendifif buyc[0] or sellc[0] thenentrylevel=entrystoploss=sltakeprofit=tpdirection=direndifif Not Onmarket AND (Time >= 080000 AND Time[1] < 080000) AND (DayOfWeek = 1) THENentrylevel=0endifif Onmarket AND (Time >= 080000 AND Time[1] < 080000) AND (DayOfWeek = 2) THENset stop BreakEvenendifif entrylevel>0 thenif not longonmarket and entrylevel<>currentry and close<entrylevel and direction=1 thenbuy lotsize contract at entrylevel stopset stop price stoplossset target price takeprofitendifif not shortonmarket and entrylevel<>currentry and close>entrylevel and direction=-1 thensellshort lotsize contract at entrylevel stopset stop price stoplossset target price takeprofitendifendif07/08/2023 at 2:41 PM #217441Thanks 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>
-
12345678910111213141516171819202122232425262728293031323334353637tolerence = 0.01s0 = opendayofweek=5s1 = range > 0.007s2 = high=highest[5](high)s3 = rsi[14]>=65s4 = high > BollingerUp[20](close) * (1 - tolerence)sellc = s0 and s1 and s2 and s3 and s4if sellc thendrawarrowdown(barindex,high) coloured("red")entry = close-(0.001*close)sldistance=0.002*closestoploss = close+sldistancetakeprofit = close-sldistance*5direction = -1endif// ---b0 = opendayofweek=5b1 = range > 0.007b2 = low=lowest[5](low)b3 = rsi[14]<=35b4 = low > Bollingerdown[20](close) * (1 - tolerence)buyc = b0 and b1 and b2 and b3 and b4if buyc thendrawarrowup(barindex,low) coloured("green")entry = close+(0.001*close)sldistance=0.002*closestoploss = entry-sldistancetakeprofit = entry+sldistance*5direction = 1endifreturn 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)
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
Find exclusive trading pro-tools on
Similar topics: