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.
I 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?
Yes 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 !
the 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.
Hi theLeprechaun
See 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! 🙂
// Definition of code parameters
DEFPARAM CumulateOrders = true // Cumulating positions deactivated
// Prevents the system from creating new orders to enter the market or increase position size before the specified time
noEntryBeforeTime = 080000
timeEnterBefore = time >= noEntryBeforeTime
// Prevents the system from placing new orders to enter the market or increase position size after the specified time
noEntryAfterTime = 180000
timeEnterAfter = time < noEntryAfterTime
// Prevents the system from placing new orders on specified days of the week
daysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0
// Conditions to enter short positions
indicator1 = Average[25](close)
indicator2 = Average[75](close)
c1 = (indicator1 CROSSES under indicator2)
IF c1 AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THEN
SELL 1 CONTRACTS AT MARKET
ENDIF
// Conditions to exit short positions
indicator3 = Average[25](close)
indicator4 = Average[80](close)
c2 = (indicator3 CROSSES over indicator4)
IF c2 THEN
BUY AT MARKET
ENDIF
EricParticipant
Master
// Definition of code parameters
DEFPARAM CumulateOrders = true // Cumulating positions deactivated
// Prevents the system from creating new orders to enter the market or increase position size before the specified time
noEntryBeforeTime = 080000
timeEnterBefore = time >= noEntryBeforeTime
// Prevents the system from placing new orders to enter the market or increase position size after the specified time
noEntryAfterTime = 180000
timeEnterAfter = time < noEntryAfterTime
// Prevents the system from placing new orders on specified days of the week
daysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0
// Conditions to enter short positions
indicator1 = Average[25](close)
indicator2 = Average[75](close)
c1 = (indicator1 CROSSES under indicator2)
IF c1 AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THEN
SELLSHORT 1 CONTRACT AT MARKET //SELL 1 CONTRACTS AT MARKET
ENDIF
// Conditions to exit short positions
indicator3 = Average[25](close)
indicator4 = Average[80](close)
c2 = (indicator3 CROSSES over indicator4)
IF c2 THEN
EXITSHORT AT MARKET //BUY AT MARKET
ENDIF
This 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.
If you make the – False & Sellshort – change as below then on DAX 10 Mins you get results attached ( at spread = 2).
DEFPARAM CumulateOrders = False
indicator1 = Average[25](close)
indicator2 = Average[75](close)
c1 = (indicator1 CROSSES under indicator2)
IF c1 AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THEN
SELLSHORT 1 CONTRACTS AT MARKET
ENDIF
Sorry I couldn’t resist, hope it might encourage you Lep? 🙂
With Indicators at values (50, 85) then you get the curve as attached on DAX 10 Mins at spread = 2 and Lot size = 1
thx, 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.
Test on the Demo account provided by IG?
You have got a Demo Account?? Or maybe you are not using it??
You can turn to mini or micro contracts (Dax5, Dax1, instead of Dax25, or EurUsd-mini….).
the demo account balance is kinda of 0….some of the strategies tested before there didn’t work too well