EXPONENTIAL MOVING AVERAGES STRATEGY 20,60,100

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #101202 quote
    enri8979
    Participant
    New

    EXPONENTIAL MOVING AVERAGE STRATEGY
    Exponential Moving Average indicators are standard within all trading platforms, the indicators can be set to the criteria that you prefer. For this simple day trading strategy we need three exponential moving average lines. One set at 20 periods, the next set at 60 periods and the last set at 100 periods. The 20 period line is our fast moving average, the 60 period is our slow moving average and the 100 period line is the trend indicator.
    How do I trade with it? This day trading strategy generates a BUY signal when the fast moving average ( or MA) crosses up over the slower moving average.
    And a SELL signal is generated when the fast moving average crosses below the slow MA.
    So you open a position when the MA lines cross in a one direction and you close the position when they cross back the opposite way.
    How do you know if the price is beginning to trend?
    Well, If the price bars stay consistently above or below the 100 period line then you know a strong price trend is in force and the trade should be left to run.
    The same strategy could be improved by applying Scot Lowry MA 18,40,200. Gain results may differ from above but still interesting.
    Here below the trading system applied to the Nasdaq 100 index

    // Definizione dei parametri del codice
    DEFPARAM CumulateOrders = False // Posizioni cumulate disattivate
    
    // Condizioni per entrare su posizioni long
    indicator1 = ExponentialAverage[20](close)
    indicator2 = ExponentialAverage[60](close)
    c1 = (indicator1 CROSSES OVER indicator2)
    indicator3 = ExponentialAverage[20](close)
    c2 = (close > indicator3)
    indicator4 = ExponentialAverage[60](close)
    c3 = (close > indicator4)
    indicator5 = ExponentialAverage[100](close)
    c4 = (close > indicator5)
    
    IF c1 AND c2 AND c3 AND c4 THEN
    BUY 2 SHARES AT MARKET
    ENDIF
    
    // Condizioni per uscire da posizioni long
    indicator6 = ExponentialAverage[20](close)
    indicator7 = ExponentialAverage[60](close)
    c5 = (indicator6 CROSSES UNDER indicator7)
    
    IF c5 THEN
    SELL AT MARKET
    ENDIF
    
    // Stop e target
    SET STOP $LOSS 150
    Nicolas thanked this post
    EMA-2060100.itf backtest-nasdaq-of-15611965574lc8p.jpg backtest-nasdaq-of-15611965574lc8p.jpg
    #101487 quote
    GraHal
    Participant
    Master

    Thanks Enri

    I get attached on DJI 30 min TF with spread = 4

    Enri.jpg Enri.jpg Enri-1.jpg Enri-1.jpg
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

EXPONENTIAL MOVING AVERAGES STRATEGY 20,60,100


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
enri8979 @enri8979 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by GraHal
6 years, 8 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 06/24/2019
Status: Active
Attachments: 4 files
Logo Logo
Loading...