again a question to the pivot

Forums ProRealTime English forum ProOrder support again a question to the pivot

Viewing 8 posts - 1 through 8 (of 8 total)
  • #190024

    again, a question to the pivot.
    Sometimes I scare myself with how little my programming skills are.

    I would like to do the following on a daily basis:
    Once the pivot points are known (00.00?) open a trade that has the target the pivot point.
    For the calculation of the pivot for Monday, the data from Friday should be taken.

    How do I program this correctly?

    A big thank you in advance

    #190026

    There you go:

    1 user thanked author for this post.
    #190029

    Sorry, in line 24 the “>” relational operator should be replaced by “<“.

    Actually you did not tell when to enter Long or Short, so I just guessed.

     

    1 user thanked author for this post.
    #190049

    Dear man.

    Thank you very much for the code.
    I will look into it and get back to you.

    lg

    #190191

    Hello .

    I had to deal with other things the whole days and only now got to look at the code.

    I have rewritten the code a bit, simplified it a bit.
    It looks like if set cumulateorders = true, the TP is cleared and set new each day. How can I change this?

     

    #190192

    Addendum.

    Perhaps for the better understanding.

    Every started trade should keep its “own” pivot as target.

    #190193

    Nope, when accumulating positions an average price is calculated at any new position taken and TP and SL are adjusted accordingly.

    This cannot be changed.

     

    1 user thanked author for this post.
    #190198

    pity

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

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