Type/to search

EMA Trading Strategy

Cryptocurrency
Created: 2023-09-11 12:02:56
Last modified: 3 years ago
1
Follow
1781
Followers

EMA Trading Strategy

This strategy trades based on EMA analysis, with the following rules:

  • Enter long if previous day's close is above EMA

  • Exit long if current candle closes below EMA

Advantages of this strategy:

  • Uses EMA to determine trend direction
  • Simple and clear rules, easy to implement
  • Customizable EMA period for optimization

Potential issues:

  • Prone to false signals during range-bound markets
  • Late entry, risks being caught in whipsaws
  • No stop loss, risks uncontrolled losses
  • No trade frequency or position sizing rules

Overall, the EMA strategy works better in trending markets but should be used cautiously. Adding stops and filters would help optimize the strategy.

Source
Pine
/*backtest
start: 2023-01-01 00:00:00
end: 2023-09-10 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Binance","currency":"BTC_USDT"}]
*/

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © ericdwyang

//@version=5
Strategy parameters
Strategy parameters
Length
Year
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)