no trades after 12 october
Forums › ProRealTime English forum › ProOrder support › no trades after 12 october
- This topic has 14 replies, 5 voices, and was last updated 3 years ago by Nicolas.
Viewing 15 posts - 1 through 15 (of 15 total)
-
-
10/23/2020 at 9:30 AM #14815410/23/2020 at 9:43 AM #14815510/23/2020 at 10:01 AM #148156
no, no rejected orders on this system for ex
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061//-------------------------------------------------------------------------// Main code : 10 second DAX martigale//-------------------------------------------------------------------------//-------------------------------------------------------------------------// Codice principale : nn si sa m.a. colorata bull//-------------------------------------------------------------------------//SPEAD = 2.5//Capital = £500//Trading hours from DAX open until NYSE close. No after hours trading.//Time is UTC +2 (South Afica time)DEFPARAM CumulateOrders = false // Cumulating positions deactivatedONCE positionSize = 1IF StrategyProfit < StrategyProfit[1] THENpositionSize = positionSize +1ELSIF StrategyProfit > StrategyProfit[1] THENpositionsize = 1endifa=average[5] (close)if a[1]<a thenalex=100endifif a[1] > a thenalex=50endif// Prevents the system from creating new orders to enter the market or increase position size before the specified timenoEntryBeforeTime = 090000timeEnterBefore = time >= noEntryBeforeTime// Prevents the system from placing new orders to enter the market or increase position size after the specified timenoEntryAfterTime = 173000timeEnterAfter = time < noEntryAfterTime// Conditions to enter long positionsindicator1 = WeightedAverage[46](totalPrice)c1 = (High CROSSES OVER indicator1)indicator2 = WeightedAverage[6](totalPrice)c2 = (low CROSSES OVER indicator2)IF (c1 AND c2) AND timeEnterBefore AND timeEnterAfter and COUNTOFPOSITION=0 and alex=100 THENBuy positionsize contract at marketENDIFindicator3 = WeightedAverage[46](totalPrice)c3 = (low CROSSES UNDER indicator3)indicator4 = WeightedAverage[6](totalPrice)c4 = (High CROSSES UNDER indicator4)IF (c3 AND c4) AND timeEnterBefore AND timeEnterAfter and COUNTOFPOSITION=0 and alex=50 THENSellShort positionsize CONTRACT AT MARKETENDIF// Stops and targetsSET TARGET pPROFIT 20SET STOP pLOSS 8010/23/2020 at 10:03 AM #14815710/23/2020 at 10:22 AM #14817810/23/2020 at 10:42 AM #14819310/23/2020 at 10:47 AM #14819510/23/2020 at 10:56 AM #14819610/23/2020 at 11:10 AM #148197Personally I don’t use MM in demo and the systems that “froze” had only been running for maximum a few weeks. They work fine after the restart and hopefully it was a one time error.
1 user thanked author for this post.
10/23/2020 at 11:37 AM #14820210/23/2020 at 12:04 PM #14821010/23/2020 at 12:22 PM #14822010/23/2020 at 12:25 PM #14822110/23/2020 at 1:50 PM #14823710/23/2020 at 3:31 PM #148252 -
AuthorPosts
Viewing 15 posts - 1 through 15 (of 15 total)
Find exclusive trading pro-tools on
Similar topics: