The past 6-12 months I´ve broadly tested on the demo account all existing “strategy” on ProRealCode. Most results has been pretty bad. Except one that consistently has showed good results (winning trades 67%)
It have had a bit to large drawdowns but has always recovered and showed good results
Probably the one with most simple tenchology, Averaging Down Orders
The best results have been on USD/JPY 5M, but on most other index and currencies the result has been bad.
I don´t know programming and wonder if someone would be interested in help improve it?
The drawdowns would need to be limited to reasonable levels, and that it shouldn´t place order during certain times and days
You would probably also discover other improvements that the system is missing
//-------------------------------------------------------------------------
// Main code : #averaging down orders
//-------------------------------------------------------------------------
defparam cumulateorders = true
// indicators
EMA3 = exponentialaverage[3]
EMA10 = exponentialaverage[10]
if barindex>1 then
haopen=(haopen[1]+haclose[1])/2
haclose=(open+close+low+high)/4
endif
// first order (EMA cross)
if not shortonmarket and EMA3 crosses under EMA10 then
SELLSHORT 1 SHARE AT MARKET
endif
// close position with bullish EMA cross only if we are in profit and we are not already averaging down (1 position only)
if countofposition=-1 and haclose<tradeprice and EMA3 crosses over EMA10 then
EXITSHORT AT MARKET
endif
// averaging down
if shortonmarket and haopen>haclose and haopen[1]<haclose[1] and haclose>tradeprice then
SELLSHORT 1 SHARE AT MARKET
endif
// monitor the average price of whole orders and close them accordingly
if shortonmarket and haclose<positionprice and countofposition<-1 then
EXITSHORT AT MARKET
endif
maybe try to add a profit target?
if shortonmarket then
set target pprofit x
endif
I would advise you not to use an average down code. Generally you will (over time) gain more on adding up than down. Remember that the 5M timeframe is pretty short on history so just because it’s working now it might not in the future.
It should not work, but still it does.
I have run 75 strategy both long and short, currency, index, commodities but no one has given better results.
Over the past 6 months, USD / JPY has gone from 114.00 February 24 down to 100.00 and up to 118.50 and down again to 109.00 with profit.
It has cleared both up and down ….
Just keep in mind that just because it turned around this time it doesn’t need to do the same in the future.
Seems obvious that an averaging down strategy perform better than other ones which are allowed to loose.
I had to ramp up the start capital to show you a 200K bars backtest. There are evil drawdowns in the equity curve (typical for averaging down systems). You (or your account) would hardly be able to endure those in real life.
Big drawdowns are a problem, therefore I would like to test it with a intelligent stop loss system, if there is any?
Do you know of any good stop loss system that i could impliment in the code without any major programming skills?
There is no way in fixing this with a stop loss without the performance deteriorating. This is the effect of averaging down. You get a super high winning % but one day comes the day your account blows up (or at least takes a hard blow).
The more you add orders in your grid, the faster and easier will be the return to the average price to exit in profit or at breakeven.
@Ludde500 Also just an advise for the future when you look at systems posted on this or other forums – just because a system has got a high winning percentage it doesn’t automatically mean that it’s good system. A high winning percentage is normally the product of risking a lot of money for a very small profit. Sure it feels nice to be right all the time but it’s not always the smartest way to go. Try to read up on how you can make most money based on the amount of money you risk in each trade. Once you know this it’s easier to determinate if a system is good or not.
I saw now, that stupid me forgot to attach the screenshot.
Ok, I did not forget it but it doesn’t work!? Why can’t I attach a screenshot?
@Despair
The screenshot is here, I think there is a bug somewhere, I’m currently updating some things ..
Everything’s back to normal, sorry for disturbing 😐
Hi Viktormork!
Do you have any god links for Reading in this subject?
Regards Henrik
“Try to read up on how you can make most money based on the amount of money you risk in each trade. Once you know this it’s easier to determinate if a system is good or not.”