## Comment on Code your Technical Analysis strategy

commented on 31 Dec 2013, 01:16 PM

Here are the Algo Z codes based on client’s logic:

Indicator 21 Simple Moving Average.

– Sma(Close, 21)

Profit target 21 points

– Pulse/ AlgoZ doesn’t capture the buy/sell price to define 21 points from buy/sell.

Stop Loss 9 points

– You can use cover order feature of Pulse/ AlgoZ. It calculates based on the buy/sell trigger price. it is defined in terms of %age.

Trailing stop loss Once the position is in profit by 13 points, 9 points trailing stop loss.

Please check if you have bracket order role, if yes, then you can define and profit booking as well as sl.

When a candle closes above the 21 SMA, buy when the peak price of this candle is breached by 3 points.

– Close > Sma(close, 21)

– (Ref(High, 1) + 3) < Close * This point is not so clear. - (Ref(High, 1) + 3) < Close. This compares the previous bar's high with the current one. If the successive candles high is less than 3 points, the entry point is when the price breaches the highest of the preceding candles since signal, by 3 points. - Pulse/ AlgoZ doesn't capture the buy/sell price. (CLOSE > (MAXOF(REF (HIGH, 1), REF (HIGH, 2))))

* Compares with the current/close.

Sell:

At profit target of 21 points or a trailing stop loss of 9 points once the profit is 13 points.

– Please check if you have bracket order role, if yes, then you can define and profit booking as well as sl.
Or exit when the signal is reversed.

– Close < Sma(close, 21) - (Ref(High, 1) + 3) > Close

Re entry

Once position is closed re-enter if the trend continues and the prices breaches the high of a candle when position was closed by 3 points.

– Pulse/ AlgoZ doesn’t capture the buy/sell price.

(CLOSE > (MAXOF(REF (HIGH, 1), REF (HIGH, 2))))

* Compares with the current/close.
Short:

When a candle closes below the 21 SMA, short when the low of this candle is breached by 3 points.

– Close , Sma(close, 21)

– (Ref(High, 1) + 3) < Close * This point is not so clear. - (Ref(High, 1) + 3) < Close. This compares the previous bar's high with the current one. If the successive candles low is less than 3 points, the entry point is when the price breaches the lowest of the precedding candles since signal, by 3 points. - Pulse/ AlgoZ doesn't capture the buy/sell price. - (Ref(Low, 1) + 3) < Close Cover At profit target of 21 points or a trailing stop loss of 9 points once the profit is 13 points Or exit when the signal is reversed. Once position is closed re-enter if the trend continues and the prices breaches the low of a candle when position was closed by 3 points. - Please check if you have bracket order role, if yes, then you can define and profit booking as well as sl. * Please back test the strategies before applying live to assess the performance. Please revert to us in case you need further assistance.