I am currently working an a Breakout strategy. It all seams to work fine but I am struggeling with the Stop loss and Take profit. I want the take profit to be set from my “HI” or “LO” in the breakout range instead of from the price that I get when the order is set.
The reason for this is that when there is a slippage, the order price will be different from the HI or LO. I still want to have the same profit target.
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
// --- settings
rangestart=092500//start of premarket schedule
rangeend=093500//end of premarket schedule
closeat=115500//time schedule to close all pending & atmarket orders
takeprofit=5//takeprofit in points
stoploss=5//stoploss in points
n=1//amount of lots/contracts/shares to open for each new order
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.