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.
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
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