Share ideas, debate tactics, and swap war stories with forex traders from around the world. Change ma method to suit different trading styles Use in combination with support/resistance levels Why use the hull moving average 2.slow sma=100 3.rsi (14 period) 4.adx (14 period) for buy When fast sma (20) cross above slow sma (100) and adx >=25 and rsi >=50 to enjoy a long term trend add trailing stop the sell is when fast sma (20) cross below slow sma (100) and adx >=25 and rsi <50 this strategy will only buy/sell only if there is a crossover and all other conditions.
Avoid trading in the middle. I used the obv.mq4 for a start and gradually started building the code up I added the setindexbuffer and setindexstyle functions in init () for the second buffer which will hold my ma values i created a loop which looks back ma_period = 200 time units in the past, takes the obv values of those, places them all into an obv_vals array, and then uses the imaonarray () function to get the sma.
WATCH