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: 13
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: 23190
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: 23190
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: 13
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 8 times

Try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 23190
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
(6.13 KiB) Not downloaded yet
illuu2.PNG
Only all sell positions
(5.95 KiB) Not downloaded yet
Infime
 
Posts: 13
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 5 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: 23190
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 6 guests