I am new to the ProReal Time software as well as coding. I am working on a basic Breakout strategy to get started. I have some problems with setting the breakout time correctly and it seems like the the “HIGH” and “LOW” are 10 minutes before my settings in the code. Example below the breakout time is set between 09:00 and 09:30 but when running the backtest it seems to take the high and low 08:50 – 09:20. Accept for that it seems to be working. there can only be 1 trade per day and the TP and SL are set value. Please comment if you see anything alse that could be improved when it comes to coding. I know this strategy doesnt deliver any great result at this point, but right now I am just interesting in learning the ProReal Time coding.
Thanks!
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Defparamcumulateorders=false
// The system will cancel all pending orders and close all positions at 0:00. No new ones will be allowed until after the “FLATBEFORE” time.
DEFPARAMFLATBEFORE=093000
// Cancel all pending orders and close all positions at the “FLATAFTER” time