Brauche Hilfe: Big Line Strategy von Paul
Forums › ProRealTime Deutsch forum › ProOrder Support › Brauche Hilfe: Big Line Strategy von Paul
- This topic has 3 replies, 3 voices, and was last updated 6 years ago by mr blue.
Viewing 4 posts - 1 through 4 (of 4 total)
-
-
12/07/2017 at 4:03 PM #54992
Hi, mein System zeigt bei der Big Line Strategy von Paul an, dass es keine %Trailing stops durchführt. Das hab ich jetzt in Punkte umgewandelt. Jetzt sagt mir das System aber noch “Kombinierte Stops können bei Pro Order nicht verwendet werden”
Kann mir da jemand helfen? Anbei der Code:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124//-------------------------------------------------------------------------// Main code : Big Line Strategy//-------------------------------------------------------------------------// common rulesDEFPARAM CUMULATEORDERS = falseDEFPARAM PRELOADBARS = 10000// time rulesONCE entertime = 090000ONCE lasttime = 173000ONCE closetime = 240000 // greater then 23.59 means it continues position overnightONCE closetimefriday=180000tt1 = time >= entertimett2 = time <= lasttimetradetime = tt1 and tt2// positionsize and stopspositionsize=1+min(25,(strategyprofit/50000))if strategyprofit <0 thenpositionsize=1endifif strategyprofit>25000 thenquitendifsl=100 // % stoplossts=150 // % trailing stoppt=250 // % profit target// setup number of trades intradayif IntradayBarIndex = 0 thenlongtradecounter = 0Shorttradecounter = 0endif// trade criterialc = tradetime and countoflongshares < 1 and longtradecounter < 1sc = tradetime and countofshortshares < 1 and shorttradecounter < 1// line criteriaCurrentPrice = round(dclose(1))MPmod = 131 //131Factor = 113 // 116 defines linesAboveLevel0 = CurrentPrice mod MPmodStartLevel = CurrentPrice - AboveLevel0Level00Up = StartlevelLevel10Up = StartLevel + (1*Factor)Level20Up = StartLevel + (2*Factor)Level30Up = StartLevel + (3*Factor)Level40Up = StartLevel + (4*Factor)Level50Up = StartLevel + (5*Factor)Level60Up = StartLevel + (6*Factor)Level70Up = StartLevel + (7*Factor)Level80Up = StartLevel + (8*Factor)Level90Up = StartLevel + (9*Factor)Level00Down = StartlevelLevell0Down = StartLevel - (1*Factor)Level20Down = StartLevel - (2*Factor)Level30Down = StartLevel - (3*Factor)Level40Down = StartLevel - (4*Factor)Level50Down = StartLevel - (5*Factor)Level60Down = StartLevel - (6*Factor)Level70Down = StartLevel - (7*Factor)Level80Down = StartLevel - (8*Factor)Level90Down = StartLevel - (9*Factor)l0= close crosses over Level00Up or close crosses over Level00Downl1= close crosses over Level10Up or close crosses over Levell0Downl2= close crosses over Level20Up or close crosses over Level20Downl3= close crosses over Level30Up or close crosses over Level30Downl4= close crosses over Level40Up or close crosses over Level40Downl5= close crosses over Level50Up or close crosses over Level50Downl6= close crosses over Level60Up or close crosses over Level60Downl7= close crosses over Level70Up or close crosses over Level70Downl8= close crosses over Level80Up or close crosses over Level80Downl9= close crosses over Level90Up or close crosses over Level90Downs0= close crosses under Level00Down or close crosses under Level00Ups1= close crosses under Levell0Down or close crosses under Level10Ups2= close crosses under Level20Down or close crosses under Level20Ups3= close crosses under Level30Down or close crosses under Level30Ups4= close crosses under Level40Down or close crosses under Level40Ups5= close crosses under Level50Down or close crosses under Level50Ups6= close crosses under Level60Down or close crosses under Level60Ups7= close crosses under Level70Down or close crosses under Level70Ups8= close crosses under Level80Down or close crosses under Level80Ups9= close crosses under Level90Down or close crosses under Level90Up// extra criteriaelc=high < MIN(dhigh(1),dhigh(2))esc=low > MAX(dlow(1),dlow(2))// long entryIf lc and elc and (l0 or l1 or l2 or l3 or l4 or l5 or l6 or l7 or l8 or l9) thenbuy positionsize contract at marketlongtradecounter=longtradecounter + 1endif// short entryif sc and esc and (s0 or s1 or s2 or s3 or s4 or s5 or s6 or s7 or s8 or s9) thensellshort positionsize contract at marketshorttradecounter=shorttradecounter + 1endif// exit allIf onmarket and time >= closetime thensell at marketexitshort at marketendif// exit friday at set closetimeif onmarket and (CurrentDayOfWeek=5 and time>=closetimefriday) thensell at marketexitshort at marketendif// build-in exitSET STOP pLOSS sl12/07/2017 at 4:04 PM #54993da fehlte was, die letzten Reihen sehen so aus:
123// build-in exitSET STOP pLOSS sl pTRAILING tsSET TARGET pPROFIT pt12/08/2017 at 8:46 AM #5503112/22/2017 at 8:15 AM #56323 -
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
Find exclusive trading pro-tools on
Similar topics: