Strange buy level and Stop loss doesn't work

Forums ProRealTime English forum ProOrder support Strange buy level and Stop loss doesn't work

Viewing 4 posts - 1 through 4 (of 4 total)
  • #127675

    Please could you help me with this? I’ve attached a screenshot that shows two things that I don’t understand. Here is the code:

    I use an indicator, shown in the screenshot, to indicate a doji bar.

    Then I enter long if we have been in downtrend, the theory being that after a downtrend, a doji signals a change of direction.

    The first thing that I don’t understand is why the buy is at 5108, when I’ve asked it to buy at hahigh, which is my calculation of the heikin ashi high. 5108 is the open of that candle, not even the candlestick high.

    The second thing is why a stop is never placed. This trade is never closed, despite my setting a stop loss at hsl, which is shown in the screenshot as 4925.

    I’d very much appreciate your help with this – it has been driving me mad all day.

    Many thanks.

     

    #127681

    The first thing that I don’t understand is why the buy is at 5108, when I’ve asked it to buy at hahigh, which is my calculation of the heikin ashi high. 5108 is the open of that candle, not even the candlestick high.

    it’s because you are using STOP, while you should use a LIMIT pending order, since your entry price (hahigh[1]) is lower than the current one

    The second thing is why a stop is never placed. This trade is never closed, despite my setting a stop loss at hsl, which is shown in the screenshot as 4925.

    because you did set such a huge SL, over 5000 pips/points; that’s because LOSS requires a difference in price (such as high – low[1]), while you used a price (haopen[1])

    I’d very much appreciate your help with this – it has been driving me mad all day.

    Many thanks.

     

    #127745

    Hi Roberto – many thanks for your reply.

    Perhaps there’s something even more fundamental that I don’t understand, which is when things take place.

    I’ve changed my doji indicator so that it takes the trend into account, signalling 1 for a downtrend plus doji, signalling the start of an uptrend, and vice versa. This happens at 06:00 in the attached screenshot. I think that this signal is returned at 05:59:59, so is active 06:00, so that a trade should enter at during the 06:00 bar. However, it doesn’t.

    Could you please explain the mistake I’m making here?

    Again, many thanks.

    This is the new code:

     

    #127848

    Sorry, cancel that last post. I had two doji indicators, one of which flags the doji and the other flags the next candle as an entry. I confused the two. Sorry!

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

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