Distance between two SMAs

Forums ProRealTime English forum ProOrder support Distance between two SMAs

  • This topic has 11 replies, 5 voices, and was last updated 2 years ago by avatarJS.
Viewing 12 posts - 1 through 12 (of 12 total)
  • #184439

    The distance of 2 moving averages … if both are on top of each other … can I somehow code them in percent?

    For example:

    SMA20> SMA200

    And of that the distance in percent?

    #184444

    There you go:

    1 user thanked author for this post.
    #184448

    And how exactly can I use this calculated number for long or short entries? My idea is to only enter into trades when the two SMAs are not too far apart.

    #184451
    JS

    If PerCent > x then => Buy

    If PerCent < y then => SellShort

    x for example 0.5%

    y for example -0.5%

    Crossing MA’s at x = 0 or y = 0

    1 user thanked author for this post.
    #184455

    distance in percent?

    Distance in  percent of what … the faster average / SMA20?

    So where SMA20 > SMA200 …

    ((SMA20-SMA200)/SMA20)*100

     

    1 user thanked author for this post.
    #184456
    JS

    Distance in percent of the Close

    PerCent is the same as:

    S1 = Average[20](Close)
    S2 = Average[200](Close)

    Dist = S1 – S2
    DistPerc = (Dist / Close) * 100

     

    #184463

    I was always very good at math … I’m trying to understand which formula is better. I’ll just try it out. Thank you very much.

    1 user thanked author for this post.
    #184697

    Hi. New to this forum. Such a great comunity.
    My firt try with an algo. Inspiration from Phoentzs

    Is this someting to build on or what do u think, Too much time in market? How to improve thos without curvefitting?

     

    #184764

    Personally, I think it’s been on the market for a long time, maybe too long. I can see that the setup is modeled on my H4 breakout. This type of setup works very well for me. But my little timeframe is M1. At the moment I’m also working on a setup with RSI. But with RSI2 in the H4 as a reversal. Build it yourself with the timeframes like H4 breakout. But it is still in progress.

    #184930

    Sorry. My aproach with sma-distance doesnt make any sense.

    MA20 and MA200 are close together buy signal ?, far apart buy signal ??

    it’s because distperc never goes above 3 or below -3 so the condition is always true

    #184935

    I’ve put this type of calculation aside for now. Even if it would be nice to calculate it so easily, it somehow doesn’t work that way. I continue to use my classic pullbacks. So MACD pullback or RSI pullback in connection with the MAs. That works pretty well.

    #184946
    JS

    The distance between the MA’s can be positief or negatief and zero for the crossing of the MA’s
    For a Long signal use DistPerc > “Positief Value” (for example yl = 0.5)
    For a Short signal use DistPerc < "Negative Value" (for example ys = -0.5) In your code there is only a negative value y1 = -3.1

Viewing 12 posts - 1 through 12 (of 12 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login