Im looking for a combined function of STOP LOSS x and TRAILING y
As I understand you can use that combo in Backtest but not in Auto Trading.
I’ve read around in the forum and found several ways to “hard code”/own script code the TRAILING function and for ex. combine it with the STOP LOSS x command line.
Im looking for the reversal.
To use the SET STOP TRAILING and then set a coded SL
Example
example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Conditions to enter long positions
c1=(close>close[1])
IFc1THEN
BUY1CONTRACTATMARKET
ENDIF
// Stops and targets
SET STOPTRAILING6
//Own coded SL command
XXXX
What code could I use?
Would like the SL to be X points bellow tradeprice
(trading index)
The basic Ide, as you probably understand, is too safe up the trade; so if after enter the trade goes down bellow SL sell. If that dosnt happends use TRAILING and follow the trade in favor direction (to exit after turnaround)
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok