In a backtest I want to check if a simple long-only strategy of the round numbers would yield a profit.
Example
DowJones
Buy at 34.000
SL 33.000
TP 35.000
with Martingale doubling until profit, then again from the beginning
And this example then generalized to all 1,000s (or 2,500s, or x-round number) in the DowJones (applicable to probably most indices)
What does such a code look like?
I lack the simplest of programming skills and am asking for your help. Please can you help me?