Identify candle direction

Forums ProRealTime English forum ProOrder support Identify candle direction

Viewing 5 posts - 1 through 5 (of 5 total)
  • #110839

    Hello forum,

    I’m new at this with no coding experience, I’m trying to sort out the code for the simple logic below. Could someone help with this?

    1. Is close of the candle for a 30m or 15min period above or below open
    2. If above, then place a buy order for x amount with a specific SL and Limit
    3. If below, then place a sell order for x amount with a specific SL and Limit

    Much appreciated!

    Regards,

    Pablo.

    #110840

    pablojml – Your question is strategy related. The place for strategy questions is the ProOrder forum and not the PrScreener forum. I will move your post to the correct forum.

    Please post in the correct forum with future posts.

    #110856

    There you go:

     

    #110894

    Thanks Roberto,

    I’m struggling to understand what the offset does in this code. And what is the difference between these two:

    If the code is testing if opening is above or below close, then “AT MARKET” should do the trick no? as it will be comparing precisely at close and buying/selling at the start of the next candle.

    Also, forgot to add if I wanted to test 1 specific candle of the day at one specific hour, how can I add this to the code?

    Regards,

    Pablo.

    #110896

    Offset is what you meant by X, a displacement or distance from the price.

    Otherwise what amount was your X?

    As for the time:

     

     

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

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