my journey with prt
Forums › ProRealTime English forum › ProOrder support › my journey with prt
- This topic has 17 replies, 5 voices, and was last updated 6 years ago by
theLeprechaun.
-
-
04/15/2018 at 7:40 PM #68404
I think that maybe I have a special gift to get ridiculous testing results.
So I will post some of those from time to time.
My coding performance is really limited and normally I want to go fully automated but so far I can’t get the code I need. I will ask for help and in return, I will show you my fabulous testing results and yes, you can laugh at me. 🙂
The one from today are the results of 10 days of trading on one min chart with my broken code.
04/15/2018 at 11:00 PM #68426I can’t understand what the point is… did you expect more than 24% in a week or maybe you are overly happy owing to your brilliant strategy?
04/16/2018 at 8:23 AM #68439Yes indeed, with all my respect, I feel a little bit of ironie in the air here…
Brother, remain humble regarding your “potential and punctual” results…
Posting result only without the associated code may not be really useful for the community….
Help you will always fin here 😉
May the force be with you !
04/16/2018 at 9:45 AM #68444the irony is toward me, to my coding skills, because I can crash the platform on a monthly basis. Maybe after you will see the attachments it will be clear because it may be looking like the Holy Grail at first but definitely it’s not.
I was trying to make a short strategy and somehow I got this. No idea why is opening only buy positions while I wanted to go for the short positions.
It seems that I really need to watch the tutorials. Anyway, still doesn’t make any sense to me what’s happening on this strategy.
04/16/2018 at 9:57 AM #6844704/16/2018 at 10:02 AM #68448See that blue button (far right top toolbar on a new message) if you add your code using this then I / we can run your code and either share in your holy grail or help re your question below …
No idea why is opening only buy positions while I wanted to go for the short positions.
Cheers
GraHal
PS Just thought of easier way (for future) to explain re Insert PRC Code button … attach an image! 🙂04/16/2018 at 10:07 AM #68451code1234567891011121314151617181920212223242526272829303132// Definition of code parametersDEFPARAM CumulateOrders = true // Cumulating positions deactivated// Prevents the system from creating new orders to enter the market or increase position size before the specified timenoEntryBeforeTime = 080000timeEnterBefore = time >= noEntryBeforeTime// Prevents the system from placing new orders to enter the market or increase position size after the specified timenoEntryAfterTime = 180000timeEnterAfter = time < noEntryAfterTime// Prevents the system from placing new orders on specified days of the weekdaysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0// Conditions to enter short positionsindicator1 = Average[25](close)indicator2 = Average[75](close)c1 = (indicator1 CROSSES under indicator2)IF c1 AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THENSELL 1 CONTRACTS AT MARKETENDIF// Conditions to exit short positionsindicator3 = Average[25](close)indicator4 = Average[80](close)c2 = (indicator3 CROSSES over indicator4)IF c2 THENBUY AT MARKETENDIF04/16/2018 at 10:15 AM #6845304/16/2018 at 10:42 AM #684571234567891011121314151617181920212223242526272829303132// Definition of code parametersDEFPARAM CumulateOrders = true // Cumulating positions deactivated// Prevents the system from creating new orders to enter the market or increase position size before the specified timenoEntryBeforeTime = 080000timeEnterBefore = time >= noEntryBeforeTime// Prevents the system from placing new orders to enter the market or increase position size after the specified timenoEntryAfterTime = 180000timeEnterAfter = time < noEntryAfterTime// Prevents the system from placing new orders on specified days of the weekdaysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0// Conditions to enter short positionsindicator1 = Average[25](close)indicator2 = Average[75](close)c1 = (indicator1 CROSSES under indicator2)IF c1 AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THENSELLSHORT 1 CONTRACT AT MARKET //SELL 1 CONTRACTS AT MARKETENDIF// Conditions to exit short positionsindicator3 = Average[25](close)indicator4 = Average[80](close)c2 = (indicator3 CROSSES over indicator4)IF c2 THENEXITSHORT AT MARKET //BUY AT MARKETENDIFThis is how you should deal with SHORT trades.
BUY/SELL are used to enter/exit LONG trades.
SELLSHORT/EXITSHORT need to be used to enter/exit SHORT trades.
04/16/2018 at 10:42 AM #68458If you make the – False & Sellshort – change as below then on DAX 10 Mins you get results attached ( at spread = 2).
123456789DEFPARAM CumulateOrders = Falseindicator1 = Average[25](close)indicator2 = Average[75](close)c1 = (indicator1 CROSSES under indicator2)IF c1 AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THENSELLSHORT 1 CONTRACTS AT MARKETENDIF04/16/2018 at 11:02 AM #6846204/16/2018 at 11:22 AM #68467thx, I know, it’s addictive.
I’m testing quite a few strategies and somehow it seems that the simple ones are the best.
But, at the end of the day, it seems that the only problem is me – not respecting the strategy, so I need to go automated.
Unfortunately, is difficult to test 4-6 strategies on a live account because of the minimum size required by IG, if something is going wrong it can blow your account quite quickly. With FXCM would be easier as they accept micro lots but unfortunately, PRT code doesn’t work there.
04/16/2018 at 11:38 AM #6847604/16/2018 at 11:45 AM #68478You can turn to mini or micro contracts (Dax5, Dax1, instead of Dax25, or EurUsd-mini….).
04/16/2018 at 12:10 PM #68486the demo account balance is kinda of 0….some of the strategies tested before there didn’t work too well
-
AuthorPosts
Find exclusive trading pro-tools on