SMA – Nasdaq – 1 day

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #219542 quote
    ipanemaboy2012
    Participant
    New

    Good morning,

    I am looking for data on the best moving average crossover indicators on Nasdaq values ​​and the index, time span of the day.

    I’m interested in buying.

    But also for sale because I don’t find anything very fantastic in playing the short sale, while remaining on this “day” time period.

    Thanks in advance to the community

    #219577 quote
    robertogozzi
    Moderator
    Master

    This strategy will enter a Long trade when the fast MA crosses over the slow MA AND the current price is ABOVE Sma200 AND Sma200 is ascending.

    It will enter a Short trade when the fast MA crosses under the slow MA AND the current price is BELOW Sma200 AND Sma200 is descending.

    It will only exit on a Stop & Reverse, so there’s no SL, nor TP (but you can change this).

    As with all MAs, strategies based solely on them are rarely profitable in the long run, mainly due to their lagging nature and to the fact that they are easily curvefitted (overoptimized) to best suit one’s expectations. Adding one or more indicators could be beneficial:

    DEFPARAM CumulateOrders = false
    Sma200 = average[200,0](close)
    FastMA = average[10,0](close)
    SlowMA = average[50,0](close)
    L1     = FastMA CROSSES OVER  SlowMA
    S1     = FastMA CROSSES UNDER SlowMA
    L2     = close > Sma200
    S2     = close < Sma200
    L3     = Sma200 > Sma200[1]
    S3     = Sma200 < Sma200[1]
    Lcond  = L1 AND L2 AND L3 AND Not LongOnMarket
    Scond  = S1 AND S2 AND S3 AND Not ShortOnMarket
    IF Lcond THEN
       BUY 1 Contract at Market
    ELSIF Scond THEN
       SELLSHORT 1 Contract at Market
    ENDIF
    #219578 quote
    robertogozzi
    Moderator
    Master

    Do not double post. Ask your question only once and only in one forum. All double posts will be deleted anyway so posting the same question multiple times will just be wasting your own time and will not get you an answer any quicker. Double posting just creates confusion in the forums.

    Thank you 🙂

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

SMA – Nasdaq – 1 day


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by robertogozzi
2 years, 6 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 08/23/2023
Status: Active
Attachments: No files
Logo Logo
Loading...