Buy or Sell at a specific value

Forums ProRealTime English forum ProOrder support Buy or Sell at a specific value

Viewing 3 posts - 1 through 3 (of 3 total)
  • #220564

    Hello all !

    How do you add to this command a % of acceptance of a value?

    Example: I would like the X instrument to buy 1 pos long at 5000. The BarClose will never rarely be 5000 but mostly 5001/5002 or 4999/4998. Which is fine too 😉

    The trigger is > (close CROSSES OVER 5000)

    Thank you very much.

     

     

    #220566

    Tu peux faire qq chose de paramétrable, via des variables qu’on peut nommer niveau et marge par exemple:

    [ self-moderation: “In English JC!!!” ]

    You can do something with variables, let’s name them “niveau” and “marge” (yeah I keep my right to not give English names to variables)

    marge = 2

    niveau = 5000

    zoneinf = niveau-marge

    zonesup= niveau+marge

    et utiliser comme trigger selon le sens   and according to needed direction, use as trigger:

    if close crosses over zoneinf

    ou or

    if close crosses under zonesup

     

    #220591

    Thank you Nicolas.

    I picked-up the following formula…

    dist = 5 //distance from pivot points s/r

    x = dist*pointsize

    I’ll play around with it this weekend.

     

    Thank you very much

     

     

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

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