The edge – trading strategy for 1 hour timeframe
Forums › ProRealTime English forum › ProOrder support › The edge – trading strategy for 1 hour timeframe
- This topic has 3 replies, 2 voices, and was last updated 7 years ago by
Inertia.
-
-
01/12/2018 at 4:06 PM #59202
Hi,
I was listening to the following podcast (https://www.youtube.com/watch?v=bt2N7rUFzTM) shared last year on this forum.
So I have decided to find the Hedge too 😉 …
The conditions were simple. For couple of indicators => TF 1hr. No stop, no target. Sell after 5 bars (5hours).
The following candidates had an Hedge (more money than the begining of the test…) : The MACD, the Volume and the %Williams. I did not tried them all.
Hereafter are the results.
I’ll share the strategy on post N2.
1 user thanked author for this post.
01/12/2018 at 4:26 PM #59213Here’s the strategy.
Only 28 trades…
Not much history for the volumes…
Q: How can we make this strategy better ?
Sharpe ratio would be interesting…
Thx.
DAX The Hedge1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495//Fomr Inertia 12/01/2018// Définition des paramètres du codeDEFPARAM CumulateOrders = FALSE//Trade to be closed after 5 barsx = 5IF BarIndex - TradeIndex = x ThenSell at Marketendifindicator1 = Volumec1 = (indicator1 >= 10000)indicator2 = MACD[12,24,9](close)c2 = (indicator2 > 0)indicator3 = MACDline[12,24,9](close)c3 = (indicator3 < 0)indicator4 = Williams[14](close)c4 = (indicator4 >= -20)IF c1 AND c2 AND c3 AND c4 THENBUY positionsize CONTRACT AT MARKETENDIF//MM...once startpositionsize=1once positionsize=startpositionsizeonce flatoverweekends=1once startequity=0once Reinvest=1if reinvest then//------------ Fixed fraction money management ----------once multiplier=1once delta=500 // < == THROTTLEonce fraction=delta*pipvalueonce newlevel=delta*pipvalueonce oldlevel=delta*pipvalueif strategyprofit+startequity>newlevel thenmultiplier=multiplier+1oldlevel=newlevelnewlevel=strategyprofit+startequity+multiplier*fractionpositionsize=multiplier*startpositionsizeelsif strategyprofit+startequity<oldlevel and multiplier>=2 thennewlevel=strategyprofit+startequityoldlevel=strategyprofit+startequity-multiplier*fractionmultiplier=multiplier-1positionsize=multiplier*startpositionsizeendifEndifif flatoverweekends then//--------------- daylight-saving corrections ------------------if currentmonth=3 and day>=15 thendlc=10000elsif currentmonth=11 and day<8 thendlc=10000elsedlc=0endiffridaynight=(currentdayofweek=5 and time>=(223000-dlc))elsefridaynight=0endifif fridaynight thenif longonmarket thensell at marketelsif shortonmarket thenexitshort at marketendifendif//trailing stoptrailingstop = 40if not onmarket thenMAXPRICE = 0priceexit = 0endifif longonmarket thenMAXPRICE = MAX(MAXPRICE,close)if MAXPRICE-tradeprice(1)>=trailingstop*pointsize thenpriceexit = MAXPRICE-trailingstop*pointsizeendifendif//exit on trailing stop price levelsif onmarket and priceexit>0 thenSELL AT priceexit STOPendifSET STOP ploss 100//20SET TARGET pPROFIT 15001/12/2018 at 7:33 PM #59263I would be very very satisfied with current results – I assume done with only 1 contract.
Try a “re-invest” strategy that will leverage the results. You can also switch from mini cfd to real future contract that leverages also.
01/12/2018 at 8:36 PM #59290 -
AuthorPosts
Find exclusive trading pro-tools on