STD Last Low and last High

Forums ProRealTime English forum ProOrder support STD Last Low and last High

Viewing 11 posts - 1 through 11 (of 11 total)
  • #184791

    Hello,

    I’d like to call in my system the BARINDEX[n] of the  LAST Low and the last High of STD[20] (not the highest[p] or Lowest[p]), because if I use highest[p], it is possible that the result is the second to last (if it’s higher than the last one). So the question is if I’m at the last candle what’s the number [n] of the last high of STD.

    I tried Array with no success certainly due to my limited skills. It should look like this:

    Thanks a million.

     

    #184800

    If you don’t use any period, any bar can be either the new LOW or the new HIGH.

    You always have to set an interval/range, usually it’s periods, or the whole data history.

    Try this one:

    LowBAR and HighBAR are the barindex numbers you are looking for.

     

     

    #184810

    Many thanks Roberto!

    #184813

    Hi Khaled and robertogozzi.

    How would u use this in a strategy.

    I trying to make a simple and hopefully as robust strategy as possible.

    A mtf strategy with 1 indicator with inspiration from Jebus89

    timeframe daily: rsi 2 > 95

    timeframe 4 hours: rsi 2 > 95

    timeframe 1 hour: rsi crosses under 95

    Sell at daily timeframe when rsi 2 crosses under 30

    https://www.prorealcode.com/topic/multitimeframe-simple-conditions/page/2/

    Someting like this but maybey with std highbar lowbar.  What do u think?

    #184821

    Hi SnorreDK

    Thanks for your feedback and the suggestion to use RSI[2] crossing on higher TF.

    What I observed on the attached graph, is that if you go Long or Short according to your entry point and want to optimize Exit point (not too early, not too late), then you should Exit at the next turning point of the STD. Obviously I tried the following but  it didn’t give optimum result.

     

    Any clue how to code this LAST STD[20] turning point?

    #184823

    You simply have to check when STD[20]  is greater or lower than the prior bar.

     

    1 user thanked author for this post.
    #184825

    Thanks robertogozzi, you always save me time. Often times, the simplest solutions are the best.

    #184827

    If u come up with something it would be intresting to see khaled

    #184886

    So just to update you… I tested exit option (1) cross over/under RSI[n] as suggested above vs. (2) STD reversal and the RSI outperforms by far, despite the STD looks very on the graph :). This is obviously based on my system, it doesn’t mean it’s true across the board.

    #184887

    Intresting.

    Thanks for ur feedback khaled.

    What entryposition do u use

    #184889

    You mean my system? it’s based on a combination of Stochastics, MACD, MAs with a few filter. Still under development.

    1 user thanked author for this post.
Viewing 11 posts - 1 through 11 (of 11 total)

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