ok i have a rough draft of the code that opens trades on the cog lines above and below the middle cog line
it works according to the original rules and right now it is for 5 digit systems - will need adjustments to work for the 4 digits
i have only done a little testing so far but it seems to be opening the trades at the right time
the next problems to tackle :
stop loss needs to be made relative to the outer most cog line rather than a fixed value from the open price
right now i have a fixed lot size set of 0.10 - it needs to have your code plugged back in for optimizing again
since the spread between the cog lines can be more than 20 pips then that means that the stoploss from the inner most cog line to 10 or 20 past the outtermost cog line can be as high as 80 pips or so - that means some form of risk limitation should be set up where a maximum spread for stoploss and the number of open orders etc needs to be made -
here is my first version