I’m not sure what I’m doing wrong, as I’m not getting the expected entry in trades with this platform. Below is part of a larger strategy, but I’ve trimmed the code to simplify troubleshooting. If you notice, when the price touches the short moving average during a downtrend, the trade is not executed as expected. Please see the attached file. This is just one example among many occurrences. The platform’s time is set to UTC+1. Asset is US Crude $10 in 4Hrs time fame. The strategy involves executing a sell entry position when the long moving average is above the short moving average, and the price touches the short moving average. This should be done with a fixed stop loss and 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
defparamcumulateorders=false
//////////////////////////////////////////Short Position Condition///////////////////////////////////////////
Without seeing Cursor Details showing actual values how can we be sure ABS(High–MAS)<10*pipsize and is not > 10*pipsize on the bar inside the red ring?
@GraHal, correct me if I’m wrong, but in a backtesting environment, does the ProRealTime engine process data in CSV format, including open, close, high, and low prices, without executing trades minute by minute or tick by tick within the current candlestick?
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue