Buy or Sell at a specific value

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #220564 quote
    Inertia
    Participant
    Master

    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 quote
    JC_Bywan
    Moderator
    Master

    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 quote
    Inertia
    Participant
    Master

    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)
  • You must be logged in to reply to this topic.

Buy or Sell at a specific value


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Inertia @inertia Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Inertia
2 years, 5 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 09/08/2023
Status: Active
Attachments: No files
Logo Logo
Loading...