PROTECTED SOURCE SCRIPT
EMA CROSS STRATEGY MAXTRA

ENTRY LOGIC
Long Entry (Buy Signal):
Condition: Short EMA crosses above Long EMA (Golden Cross)
Interpretation: A potential upward trend is beginning
Short Entry (Sell Signal):
Condition: Short EMA crosses below Long EMA (Death Cross)
Interpretation: A potential downward trend is beginning
EXIT LOGIC
There are a few options depending on the style of strategy:
Option 1: Opposite Crossover
Exit Long: When Short EMA crosses below Long EMA
Exit Short: When Short EMA crosses above Long EMA
This method keeps you in the trade until the trend reverses.
Option 2: Fixed Stop Loss / Take Profit
Exit trade when a profit target or stop loss is hit
Example: 2% stop loss and 4% take profit
Note : In Properties, go to Initial Margin. Add one more zero to get the backtest results for futures trades. For spot, use it as it is.
Long Entry (Buy Signal):
Condition: Short EMA crosses above Long EMA (Golden Cross)
Interpretation: A potential upward trend is beginning
Short Entry (Sell Signal):
Condition: Short EMA crosses below Long EMA (Death Cross)
Interpretation: A potential downward trend is beginning
EXIT LOGIC
There are a few options depending on the style of strategy:
Option 1: Opposite Crossover
Exit Long: When Short EMA crosses below Long EMA
Exit Short: When Short EMA crosses above Long EMA
This method keeps you in the trade until the trend reverses.
Option 2: Fixed Stop Loss / Take Profit
Exit trade when a profit target or stop loss is hit
Example: 2% stop loss and 4% take profit
Note : In Properties, go to Initial Margin. Add one more zero to get the backtest results for futures trades. For spot, use it as it is.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.