I am looking to code some type of scalping, limited time exposure to market (5mins on a 5 second chart) the below code appears to be correct to me but when i run it the max time with it being a loss is still open. is there something wrong with the code?
note i am running the SL code from forums as well & have a sell for TP & loss.
any help is appreciated,
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//trailing stop function
trailingstart=3.5//trailing will start @trailinstart points profit
trailingstep=1//trailing step to move the "stoploss"
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.