Strategy DayOpen Straddle for DAX
Forums › ProRealTime English forum › ProOrder support › Strategy DayOpen Straddle for DAX
- This topic has 241 replies, 39 voices, and was last updated 3 years ago by Monobrow.
-
-
01/14/2020 at 7:26 PM #116810
I will do more tests, but i have to ask you if you can attach the LATEST version of the strategy and on what timeframe you think should work on.
It’s a little bit confusing trying to find the last legit one in 14 pages 😀
01/14/2020 at 7:39 PM #11681201/14/2020 at 7:42 PM #11681301/14/2020 at 8:48 PM #116818Yes on & off and made & lost money. I consider this my worst and boring system 🙂 The last version was to reduce clutter.
Its concept is interesting, that why I still put time in it. Version v6p is running only in demo, still positive with around €100 this year. I make a strategy now on a higher timeframes. Minimum 5 minutes and with lost of trades. My best system has 900+ trades and goes way back on 1 hour timeframe, to put it in perspective!
ps maybe change the 2 and 1.5 variables at the entry section. Better modify the code somehow to get better results.
01/14/2020 at 9:39 PM #11682001/15/2020 at 7:57 AM #116837@Francesco Petrone I’am not saying the dax dayopen straddle it not profitable, it could be fine for coming months.
I don’t want to put a pic of another strategy here. I will test its robustness later and will post in that topic.
01/15/2020 at 10:54 AM #11684601/15/2020 at 11:18 AM #11684901/15/2020 at 11:49 AM #116852Oddly enough I was looking at this strategy last night, it only works well for long positions
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166//-------------------------------------------------------------------------// Main code : DailyOpen Straddle DAX 3minMM//-------------------------------------------------------------------------//-------------------------------------------------------------------------// Main code : Straddle DayOpen//-------------------------------------------------------------------------// common rulesDEFPARAM CUMULATEORDERS = falseDEFPARAM PRELOADBARS = 10000// optionalExtraTradeCriteria=1once multiplier=1once fraction=72once newlevel=72once oldlevel=72once startpositionsize=1once positionsize=startpositionsizeif strategyprofit>newlevel thenmultiplier=multiplier+0.05oldlevel=newlevelnewlevel=strategyprofit+multiplier*fractionpositionsize=multiplier*startpositionsizeelsif strategyprofit<oldlevel and multiplier>=1 thennewlevel=strategyprofitoldlevel=strategyprofit-multiplier*fractionmultiplier=multiplier-0.05positionsize=multiplier*startpositionsizeendif// positionsize and stopssl = 1 // % Stoploss 0.6pt = 0.8 // % Profit Target 0.4ts = 7 // % MFETrailing// indicator settignsNOP=15 //number of pointsTimeOpen=080000// day & time rulesONCE entertime = TimeOpenONCE lasttime = 100000ONCE closetime = 240000 // greater then 23.59 means it continues position overnightONCE closetimeFriday=173000tt1 = time >= entertimett2 = time <= lasttimetradetime = tt1 and tt2DayForbidden = 0 // 0=sundaydf = dayofweek <> dayforbidden// setup number of trades intradayif IntradayBarIndex = 0 thenlongtradecounter = 0Shorttradecounter = 0Tradecounter=0endif// general criteriaGeneralCriteria = tradetime and df// trade criteriatcLong = countoflongshares < 1 and longtradecounter < 1 and tradecounter <1tcShort = countofshortshares < 1 and shorttradecounter < 1 and tradecounter <1// indicator criteriaIf time = TimeOpen thenDayOpen=openendifif IntradayBarIndex = 0 thenlx=0sx=0endifif high > DayOpen+NOP thenlx=1elselx=0endifif low < DayOpen-NOP thensx=1elsesx=0endif// trade criteria extramin1 = MIN(dhigh(0),dhigh(1))min2 = MIN(dhigh(1),dhigh(2))max1 = MAX(dlow(0),dlow(1))max2 = MAX(dlow(1),dlow(2))If ExtraTradeCriteria thentcxLong = high < MIN(min1,min2)tcxShort = low > MAX(max1,max2)elsetcxLong = hightcxShort = lowendif// long entryIf GeneralCriteria thenif lx and tcLong and tcxLong thenbuy positionsize contract at marketlongtradecounter=longtradecounter + 1tradecounter=tradecounter+1endifendif// short entryIf GeneralCriteria thenif sx and tcShort and tcxShort thensellshort 0 contract at marketshorttradecounter=shorttradecounter + 1tradecounter=tradecounter+1endifendif// MFETrailingtrailingstop = (tradeprice/100)*tsif not onmarket thenMAXPRICE = 0MINPRICE = closepriceexit = 0endifif longonmarket thenMAXPRICE = MAX(MAXPRICE,close)if MAXPRICE-tradeprice(1)>=trailingstop*pipsize thenpriceexit = MAXPRICE-trailingstop*pipsizeendifendifif shortonmarket thenMINPRICE = MIN(MINPRICE,close)if tradeprice(1)-MINPRICE>=trailingstop*pipsize thenpriceexit = MINPRICE+trailingstop*pipsizeendifendifIf onmarket and priceexit>0 thensell at marketexitshort at marketendif// exit at closetimeIf onmarket thenif time >= closetime thensell at marketexitshort at marketendifendif// exit friday at set closetimeif onmarket thenif (CurrentDayOfWeek=5 and time>=closetimefriday) thensell at marketexitshort at marketendifendif// build-in exitSET TARGET %PROFIT ptSET STOP %LOSS slI took the above code live last night, tested over 100k bars with 1 point spread
01/15/2020 at 12:12 PM #11685601/15/2020 at 1:24 PM #116869Please ignore the first 2 screenshots I hadn’t changed the opening time
The systems side by side at 3 mins over 100k bars are shown in images 5 & 6 and I have turned off the money management so that we are both using one point per pip
I chose the parameters that allowed for a smoother curve so you can see that my system has taken around 1/3 of the trades of Pauls system
Mine is based from Pauls original posting so I am keen to test the new code and new time frames
They are really two versions of the same system and when I looked down the optimisation report I preferred this version of the system, I have around 20 systems running now so I prefer to have fewer trades with a higher Gain/Loss ratio to help with management of capital
More great work from @Paul for the community
1 user thanked author for this post.
01/15/2020 at 1:31 PM #116872Latest version of Paul works on 1min timeframe not on 3min.
With that scenario, compared to the screen of your version, you have a slightly better ratio on gains, but the number of trades is less than half as you said.OT: You’re not working anymore on your blog? I would have liked to read you.
01/15/2020 at 1:42 PM #116875Ah okay I will test on 1 Minutes, yes still working on the blog I just need to finish to the robo futures trader process section before developing the main blog
If you sign up for the newsletter here https://robofuturestrader.com/newsletter-sign-up/ then I will be sending out updates
To be honest it may end up as a vlog as I hate writing…….. not sure if you would have a preference of text/video or both
01/15/2020 at 2:04 PM #11687801/16/2020 at 3:34 PM #116994Thanks Francesco
On the Daily Straddle topic is did some work on it last night and it reminded me why I don’t like 1 min systems, with only having 100k bars there just isn’t enough of a trading period to make a decision on the system so I will probably get a version up and running in demo and revisit it in the summer. I had the same problem with the code below (can’t find the original link now) in that it looked great for Dax and Brent for 3 months but then flipped when I began testing
DAX 1 min mor steigerung1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586DEFPARAM FLATBEFORE=090100// Festlegen der Code-ParameterDEFPARAM CumulateOrders = false // Kumulieren von Positionen deaktiviert// einmalige werteonce size = 0.5once profi = 20once in = 1once korrek = 1sl = 35// Verhindert das Trading an bestimmten WochentagendaysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0noEntryAfterTime = 100000timeEnterAfter = time < noEntryAfterTime// einen trade nurIF (CurrentTime = 010000) thenonetrade = 0ENDIF// Bedingungen zum Einstieg in Long-PositionenIF (CurrentTime = 085900) thenhigh7 = HIGHEST[120](high)low7 = LOWEST[120](low)ENDIFIF (close > high7) AND (CurrentTime >= 090100) thenonetrade = 1ENDIFIF (CurrentTime >= 090100) AND not daysForbiddenEntry AND (onetrade = 0) AND timeEnterAfter THENBUY size CONTRACT AT high7 STOPENDIFIF (LONGONMARKET = 1) thenonetrade = 1in = 1korrek = 0//l1 = POSITIONPRICE + 0.0008l2 = POSITIONPRICE - sl//sell at l1 LIMITsell at l2 stopENDIF// Bedingungen zum Einstieg in Short-PositionenIF close < low7 AND (CurrentTime >= 090100) thenonetrade = 1ENDIFIF (CurrentTime >= 090100) AND not daysForbiddenEntry AND (onetrade = 0) AND timeEnterAfter THENSELLSHORT size CONTRACT AT low7 STOPENDIFIF (SHORTONMARKET = 1) thenonetrade = 1in = 1korrek = 0//s1 = POSITIONPRICE - 0.0008s2 = POSITIONPRICE + sl//EXITSHORT at s1 LIMITEXITSHORT at s2 STOPENDIF// korrekturIF (LONGONMARKET < 1) AND (SHORTONMARKET < 1) thenin = 0ENDIFIF in = 0 and korrek = 0 thend1 = POSITIONPERF(1) > 0d2 = POSITIONPERF(1) < 0IF d1 and size > 1 thensize = size - 1korrek = 1ELSIF d2 thensize = size + 1korrek = 1ENDIFENDIF// Stops und TargetsSET STOP pLOSS 60SET TARGET pPROFIT sl// PerformanceIF STRATEGYPROFIT > profi thensize = 1profi = profi + 20ENDIF -
AuthorPosts
Find exclusive trading pro-tools on