SP500 | 3H
Forums › ProRealTime English forum › ProOrder support › SP500 | 3H
- This topic has 3 replies, 2 voices, and was last updated 6 years ago by
Nicolas.
Viewing 4 posts - 1 through 4 (of 4 total)
-
-
11/28/2019 at 10:21 AM #113776123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566// Spread 0,4 Points// 3 hours// Talos Trading// Definition of code parametersDEFPARAM CumulateOrders = False // Cumulating positions deactivated// The system will cancel all pending orders and close all positions at 0:00. No new ones will be allowed until after the "FLATBEFORE" time.DEFPARAM FLATBEFORE = 153000// Cancel all pending orders and close all positions at the "FLATAFTER" timeDEFPARAM FLATAFTER = 220000// Prevents the system from creating new orders to enter the market or increase position size before the specified timenoEntryBeforeTime = 153000timeEnterBefore = time >= noEntryBeforeTime// Prevents the system from placing new orders to enter the market or increase position size after the specified timenoEntryAfterTime = 215500timeEnterAfter = time < noEntryAfterTime// Prevents the system from placing new orders on specified days of the weekdaysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0// Conditions to enter long positionsindicator = RSI[14](Open)c1 = (indicator CROSSES OVER 24.5)c2 = (indicator CROSSES OVER 24)c3 = (indicator CROSSES OVER 23)c4 = (indicator CROSSES OVER 22)c5 = (indicator CROSSES OVER 21)c6 = (indicator CROSSES OVER 21.5)c7 = (indicator CROSSES OVER 23.5)c8 = (indicator CROSSES OVER 22.5)c9 = (indicator CROSSES OVER 29)c10 = (indicator CROSSES OVER 28)c11 = (indicator CROSSES OVER 27)c12 = (indicator CROSSES OVER 26.5)c13 = (indicator CROSSES OVER 26)c14 = (indicator CROSSES OVER 25.5)c15 = (indicator CROSSES OVER 20.5)c16 = (indicator CROSSES OVER 20)IF (c1 OR c2 OR c3 OR c4 OR c5 OR c6 OR c7 OR c8 OR c9 OR c10 OR c11 OR c12 OR c13 OR c14 OR c15 OR c16) AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THENBUY 15 CONTRACT AT MARKETENDIF// Conditions to exit long positionsindicator17 = RSI[14](close)c17 = (indicator17 CROSSES UNDER 55)indicator18 = Stochastic[14,3](close)c18 = (indicator18 >= 90)IF c17 OR c18 THENSELL AT MARKETENDIF// Conditions to enter short positionsc22 = (indicator >= 82.5)c23 = (indicator >= 83.5)IF (c22 OR c23 OR c25) AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THENSELLSHORT 15 CONTRACT AT MARKETENDIF// Conditions to exit short positionsindicator24 = Stochastic[14,3](close)c24 = (indicator24 <= 20)indicator25 = Stochastic[14,3](close)c25 = (indicator25 >= 45)IF c24 AND c25 THENEXITSHORT AT MARKETENDIF// Stops and targetsSET STOP pTRAILING 4SET TARGET pPROFIT 1011/28/2019 at 10:36 AM #11381811/29/2019 at 12:58 PM #113912
Hi Nicolas, thanks a lot for a magical site.
I have attached the result.
Please let me know if you need some more info.
11/29/2019 at 1:43 PM #113917 -
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
