I was wondering if anyone here has any small code snippet examples of how to add dollar cost averaging into a strategy.
For example if you EnterLong(1, ""); then when the long position you just just entered goes against you lets say 10 ticks you would EnterLong(1, ""); again and if the position goes another 10 ticks against you it would add another EnterLong(1, ""); Its not martingale because were not doubling down but rather putting on a series of Long positions in a area. More conducive for swing trades then typical scalping I would guess.