by BlueBloodedTrader » Fri Jul 29, 2011 5:01 pm
May I request an improvement to this strategy? There needs to be a directional bias. Trades should open in the direction of the trend only. Consequently, long trades will open on higher highs: short trades will open on lower lows. The way to hard code this into the strategy appears simple. At the moment the trade is opened when the specified DNC channel is breached , i.e. a "breakout" in either direction. This may be achieved by comparing plateaus (horizontal parts of the DNC channels) such that a long trade should only open if the "breakout" is of an upper DNC channel that is ascending i.e. the breakout is of a plateau that is higher than the last upper channel plateau; and similarly, a short trade should only be opened if the breakout is of a lower DNC channel that is decending, i.e. the breakout plateau is lower than the last lower channel plateau. Are you able to code this please?