Buy or Sell at a specific value

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #220564 quote
    InertiaInertia
    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_BywanJC_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
    InertiaInertia
    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTimeā„¢ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 InertiaInertia
3 years ago.

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