Breakout_ProfitMatrix_TSI

Strategies are published here.

Moderator: admin


Re: Breakout_ProfitMatrix_TSI

Postby Infime » Thu Nov 28, 2019 4:33 pm

Hi,

Sorry but there is something wrong... I link you a picture who each position (sell or buy) should be open. It's when the current course breaks the top or bot line of breakout indicator (like the picure) and "Open position in buy when the profitmatrix is green..." or "Open position in sell when the profitmatrix is red..."

And can you change the TSI by the CMO indicator ? Close the position when the current line of the CMO touches the level 0 of the CMO indicator. It will more simple for you ! (check the fushia on the picture).

Thank you, I hope it will work this time... :cry:
Attachments
Capture bonne 6.PNG
Infime
 
Posts: 47
Joined: Thu Aug 22, 2019 11:44 am

Re: Breakout_ProfitMatrix_TSI

Postby Apprentice » Thu Nov 28, 2019 7:49 pm

Your request is added to the development list.
Development reference 371.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Breakout_ProfitMatrix_TSI

Postby Apprentice » Fri Nov 29, 2019 4:44 am

Unclear requirements.
Exit condition: when TSI is reversed. Reversed to what?
I've included TSI into the entry and exiting on the opposite direction of TSI in comparison to entry TSI rule. But it looks like that there shouldn't be TSi in the entry, but it's unclear what is the opposite TSI in that case
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Breakout_ProfitMatrix_TSI

Postby Infime » Fri Nov 29, 2019 6:32 am

Yes, I said that it will more simple for you if you delete TSI and remplace it by a CMO indicator.

So, exit condition : When the the current line of the CMO touches the level 0 of the CMO indicator.
Entry condition : when the current course breaks the top (to buy) or bot (to sell) line of breakout indicator if the Profitmatrix is green (to buy) or red (to sell).

Like the picture linked on the last post.
Infime
 
Posts: 47
Joined: Thu Aug 22, 2019 11:44 am

Re: Breakout_ProfitMatrix_TSI

Postby Apprentice » Thu Dec 05, 2019 6:56 am

Breakout_ProfitMatrix_CMO.lua
(136.05 KiB) Downloaded 462 times

Try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Breakout_ProfitMatrix_TSI

Postby Infime » Thu Dec 05, 2019 6:15 pm

Hi Apprentice,

I'm boring but everything is not right...
Closing position is OK. :D
But Open position it's not exactly that. Some positions are good but not all. Many positions don't wait to break the top or bot line of breakout to open position. So...
I link you 2 pictures.
First ; It shows you ONLY ALL positions that must be open to buy. Because the current course increase, breaks the top line of breakout and the profitmatrix is green.
Second : It shows you ONLY ALL positions that must be open to sell. Because the current course decrease, breaks the bot line of breakout and the profitmatrix is red.

So the strategy can open many positions before to close the position. (Option can be add or is it added ?)
It's all...

Thank you for your response.
Attachments
illuu1.PNG
Only all buy positions
illuu1.PNG (6.13 KiB) Viewed 3683 times
illuu2.PNG
Only all sell positions
illuu2.PNG (5.95 KiB) Viewed 3683 times
Infime
 
Posts: 47
Joined: Thu Aug 22, 2019 11:44 am

Re: Breakout_ProfitMatrix_TSI

Postby Apprentice » Mon Dec 09, 2019 9:00 am

Breakout_ProfitMatrix_CMO.lua
(136.46 KiB) Downloaded 454 times

This is exactly how it coded. I've added advanced logging which can be turned on in the parameters. The strategy will print all decisions: why it opened or not opened the position.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Breakout_ProfitMatrix_TSI

Postby Infime » Wed Dec 11, 2019 5:22 am

Thank you Apprentice !
I think it's the breakout indicator that fail the strategy (it open just one position by day and doesn't open where it must to be open). Even I change the all parameters.
But don't worry it's good like this ! Many thanks.
Infime
 
Posts: 47
Joined: Thu Aug 22, 2019 11:44 am

Re: Breakout_ProfitMatrix_TSI

Postby Infime » Thu Dec 12, 2019 7:51 am

Considering that the strategy failed with the breakout indicator, could you please delete this indicator and replace it by the "daily range" indicator (viewtopic.php?f=27&t=3981&p=123409&hilit=daily+range#p123409).
It will be very thanksfull...
Use the same condition to close positions (When the CMO touches his level 0) and almost the same conditions to open.
To open positions :
1) Buy : When the current course breaks the daily range indicator in increase and the profitmatrix is green.
2) Sell : When the current course breaks the daily range indicator in decrease and the profitmatrix is red.
Many positions can be open in the same time, alterable time frame for daily range/CMO indicators and let the breakeven.

Thank you Apprentice, hope it will work with this... :oops:
Infime
 
Posts: 47
Joined: Thu Aug 22, 2019 11:44 am

Next

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 20 guests