Entry at second touch of EMA code?

Forums ProRealTime English forum ProOrder support Entry at second touch of EMA code?

Viewing 8 posts - 1 through 8 (of 8 total)
  • #120237

    hi guys,

    I would like to know how to write the code which is when the price touch ema 2 times, then the entry position should be at the second touching point on ema.

    so anyone can tell me how to write?

    thank you so much

    #120239

    Wing Tai Tin – Welcome to the forums. Please try to post in the correct forum with future topics. The ProOrder forum is the place for auto strategy related questions. I have moved your post. 🙂

    Also please use meaningful topic titles – I have changed yours.

    #120240

    Try this (not tested):

    #120241

    If you want to make sure price has also never closed below MyEma in the last LookBack bars, replace line 4 with:

    #120255

    thank you so much

    #120256

    thank you for your helping

    but i dont really understand what is the difference between “longonmarket” “onmarket” “shortonmarket”

    also, “if” and “if not”

    for example:
    if i want to entry buy position, i should
    1. if longonmarket/onmarket then or
    2. if not longonmarket/onmarket then

    im so confuse how to use those codes.

    thank you very much

    #120257
    #120271

    i dont really understand what is the difference between “longonmarket” “onmarket” “shortonmarket”

    Sounds like you need basic training? Have you ever coded before? It’s okay … I and many others on here hadn’t coded before we started using PRT .

    Try reading the PRT Manual and / or do Nicolas video course.

    https://www.prorealtime.com/en/pdf/probacktest.pdf

    https://www.prorealcode.com/programming-with-prorealtime/

     

     

     

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

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