EMA with a horizontal and verticle shift

Forums ProRealTime English forum ProBuilder support EMA with a horizontal and verticle shift

Viewing 13 posts - 16 through 28 (of 28 total)
  • #193420

    Pouvez-vous me donner un exemple

    Can you give me an example

    #193421

    Pouvez-vous me donner un exemple avec un indicateur simple, décalage à gauche et décalage à droite

    Can you give me an example with a simple indicator, shift left and shift right

    #193430

    @MIKE PAPY

    Only post in the language of the forum that you are posting in. For example English only in the English speaking forums and French only in the French speaking forums.

    Again, please abide by the rules highlighted in yellow (below).

    Thank you 🙂

     

    #193451

    Is the REturn necessary to make the indicator work accurately? When i put RETURN under the line as the example shows it underlines it indicating an error

    #193452

    I did it like this

    EMAPer1 = exponentialaverage[EMAPer1]
    RETURN EMAPer1

     

     

    #193454

    I am finding that my code isn’t honoring the MA’s im using as i see them on the chart. I’m also measuring the distances between the MA’s to fine tune entrys and i find trades aren’t taken in situations when the gap is above the distance i have set but takes trades whenthe lines are squashed together. I i’m starting to think i have something missing with regard to the MA coding

    #193455
    JS

    It’s easier to help when you post the code…

    #193461

    The full code is too big to post plus it’s not mine to do so, it’s one that i’m working on as a trader. but this is the section i have for the MA’s. The top two lines determine the MA’s which are set in variable optimisation to 3 and 5.

    the next line down determines the conditions which have to be met to take a long. So i want EMA 3 (EMAPer1) to be over the EMA5[1horizontal shift] (EMAPer2)  by the Pointsize difference or more. This value is currently set to 5 which is shown on the 4th line down. I have this further up the page.

     

     

    #193722

    Do you only recieve help on here if you hand over your work?

    #193730

    trades aren’t taken in situations when the gap is above the distance i have set

    Are you taking into account that code is read at the close / end of a bar and (any resultant) trades are opened / closed at the open / start of the next bar?

    Is it possible that you are viewing / assessing MA gap on the 1st bar that shows as trade opened?

    Whereas the MA gap that met strategy conditions occured in the bar before the 1st bar that shows as trade opened?

    Hope above makes sense?

    #193767

    Yes this makes sense, I have accounted for this and look for when trends are extended and MA’s are spread out for many candles and see that entrys aren’t taken or taken at the end of a move like this when the MA’s are closing back up or in situations where MA’s are squashed together with smaller gaps trades are taken

    #193796

    Insert below at the bottom of your code and check if Long trades are opened when below is True / = 1 as shown on your chart in a separate section of it’s own (often ends up at the bottom these days! 🙁 )

    GRAPH EMAbuyc

    #194035

    This a shifted version of a Moving Average. It can be shifted both horizontally (number of bars to be shifted, + or -) and vertically (% to be shifted, + or -, with decimal digits):

    If you replace line 8 with:

    you will get a shifted RSI (you can change the variable’s name MyMA, or leave it as is).

     

Viewing 13 posts - 16 through 28 (of 28 total)

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