pause trading strategy if last trade was a loss.

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

pause trading strategy if last trade was a loss.

Postby LearningByDoing » Fri Jun 03, 2016 5:35 am

When backtesting several strategies, I realized that losses often come in "groups".
e.g.:

W...Win
L...Loss
X...omitted trade
trade history example:
before:
W L L L L W L W W W--> 5 Wins 5 Losses
after:
W L X X X X L X W W --> 3 Wins 2 Losses

For some strategies this method actually works wonders on their profitability.

So I would like to be able to switch "allow strategy to trade" off or in some other way ignore the next signal, if last trade was a loss and switch it back on if last would-be trade would have been a win. Also if last trade would have been a loss it should ignore the next signal.

I know that this is not a complete strategy I am requesting, but I believe it can be extremely helpful in a bunch of strategies. So if you could either give us the code for this functionality to paste into strategies or if that is not feasable for you, maybe incorporate that in some existing strategy (e.g.: PARABOLIC SAR STRATEGY).

Also if you read this and have a suggestion on how this could be done, I´d be happy for your input.
LearningByDoing
 
Posts: 18
Joined: Wed Apr 13, 2016 6:13 pm

Re: pause trading strategy if last trade was a loss.

Postby Apprentice » Fri Jun 03, 2016 1:52 pm

Your request is added to the development list.
Bugzilla Bug 3535
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36495
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Google [Bot] and 53 guests