trading strategy - m9tz/trading GitHub Wiki

indicators

  • ma9H high
  • ma9L low
  • ma26 ohlc4

buy (long)

or do the otherway round for buy short buy if close > (ma26 AND ma9H)

sell (long)

sell if close < ma9L

exit indicator

make profit

not ready now `sell if (high(-2) < high(-1) < hight(0)) AND ma3L < 0.9 elseif (nop?)

trailing stop loss

ma9H as a simple line to follow with an extra respect of the aktual volatility by the difference of the upper and lowerprice ma of a short amount of periods. this not for best profit only for some profit wenn the exit inicator failed in the fist place

sell if price < ma9H + (1.5 * (ma9H - ma9L))

stop loss

only for sleeping well! risc 2% of account * 1.5 times the ATR here I take (ma9H-ma9L) this should be the ATR(9)

sell if price < ma9H + (0.02 * account * 1.5 * (ma9H - ma9L))