lowest low with condition based on moving average

Forums ProRealTime English forum ProOrder support lowest low with condition based on moving average

  • This topic has 8 replies, 3 voices, and was last updated 4 years ago by avatarAE.
Viewing 9 posts - 1 through 9 (of 9 total)
  • #114933
    AE

    Hi all,

    I would like to know if there is any way to get the lowest  (or highest) price with a condition.

    For example, I would like to know the  lowest price for DAX since Price crosses over SMA 200 and SMA200 crosses over SMA100.

     

    Thanks

    #114935

    Yes that is possible but you won’t know that it is the lowest price until the condition is no longer true. So it depends whether you are interested in the actual price or the actual time!

    #114936
    AE

    Thanks Vonasi, I´m interest in the actual time.

    #114938

    You can’t know the time until the condition is no longer true so you can never trade at this time. See image.

    #114941
    AE

    You are right, plenty of time happens lowest price but I just want the lowest price since LAST cross.

    Please check the picture.

    There is any way to know this lowest price with both condition (since last MA´s crosses and under SMA200) ?

    #114950

    The below code is computing the lowest low when MA100 is under the MA200 and reset that value each time the MA100 crosses under the MA200.

     

    1 user thanked author for this post.
    avatar AE
    #114952

    This indicator will show each new low after MA100 has crossed below MA200 and price is below MA200. It draws an arrow each time a new low is found and draws a line at the last lowest value found. It resets every time price goes back above MA200.

    It is an indicator but should give you some idea how to achieve what you want in a strategy. (I’m a little confused by exactly what you want!)

     

    1 user thanked author for this post.
    avatar AE
    #114955
    AE

    Thanks both,

    Maybe I confuse you because I didn’t explain very well.

    I´m triying to do backtest of COMA strategy: https://medium.com/@rcanessa/estrategia-de-trading-coma-para-mercados-en-tendencia-df74b8dd87a5

    https://www.youtube.com/watch?v=BFXp7OLfDtM&t=2s

    It’s in spanish but if you need I can translate it.

    Do you know this strategy?

    #114956
    AE

    Ok, I just make it with the idea of both

    Thanks you guys!

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

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