How to count the Buy entry ?

Forums ProRealTime English forum ProOrder support How to count the Buy entry ?

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

    Hi All

    How to count the buy order will be realy executed and stop buying after 3 time :

    or a line number for Snippet also will be ok
    Best Reguards,
    ZeroCafeine

    #213137

    You have to use COUNT in your entry conditions, provided it is cleared when not on market:

     

    1 user thanked author for this post.
    #213142

    tks you so much for your quick answer, So I have to think like, I’m or not in market, when I see your answer it’s seems like easy, but I don’t know to think like that, I hope soon 😉

    #213152

    You have to use COUNT in your entry conditions, provided it is cleared when not on market:

    tks again for your answers, But Once again, I have phrased my question incorrectly :

    – How to count in the case of Limit order ? you can see in the photo, The conditions for the purchase were met except for the price limit
    – we can also met the same situation in the case of my Buy order is filled (so at this time we are OnMarket) But if my order is closed because of a stop loss so we will be in the case of Not OnMarket (So Count = 0) even we execute the Buy only one time

    #213158

    I found this solution, maybe you have an other idea :

    #213160

    A better solution is to reset COUNT at the beginning of a new trading day:

    the issue with pending orders can be addressed with this code, which detects a new entry (to be tallied when there are more positions on market than there were the prior candle:

     

     

     

    #213161

    Actually, instead of checking positions, you might use:

     

    #213163

    My subconscious found the solution while I slept last night, but with your solution on top of it, I’m lost …. 😅

    Actually I’m joking 😊, again thank you for your answer I totally understand your solution and I will try to understand it even better,

    About line 15, wouldn’t it be better to use the Close than Low, also maybe the Close +2 pips in limit for exemple

    With a buy at Low – 10 pips, do I risk not getting executed and the market going without me ?

    #213188

    in the continuity of my code I realise that if I am in position and I take another position then my line 16 does not work so I had to add this :

    It seems to work, I’ll come back at the end of the day to do more tests and compare with your solution @robertogozzi which seems much simpler than mine and I think it does the job

    #213190

    That’s how it takes me more than 4 hours on Wednesday to have 15 minutes of concentration to understand what it is, I’m sick of this temporary office 🤣🤣🤣🤣

    Wish me luck

     

    #213259

    Actually, instead of checking positions, you might use:

     

    Perfect 😊

    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