by flbrgz » Tue Nov 06, 2018 12:59 am
Hello all. Hope your trading is going well.
I have been using the Trade Repeater for quite some time and except for my own bending of my own rules it has performed very well. There are some further coding challenges I have for you if you are willing.
I still have some issues with slippage. Is there a way to round the order value to its closest .01
I trade eur/nzd so if instance I may have trades at 1.50, 1.51, 1.52 ect these get repeated at say 1.503 1.512, 1.523 etc. Can they be rounded back to 1.50, 1.51, 1.52 before setting the repeat order.
I know it's really nothing but I find it easier to browse my trades when they all have trailing zeros and not random slippage values.
Now the big challenge.
Can we set a new value by pip distance on the repeat order if we get stopped out.instead of the original order value.
So if my sell trade at 1.50 gets stopped out, say 200 pips 1.70 can the repeat trade say " because we have been stopped out the order value will be 300 pips higher than the original trade. If the Trade closes at a profit then the original trade value will be used for the repeat trade".
The stopped out new order replacement value would be a setting in the strategy options settings.
A lot to think about I know.
Thanks in advance for any responses.