Forums › ProRealTime English forum › ProOrder support › No positions with a weekly multi timeframe strategy › Reply To: No positions with a weekly multi timeframe strategy
03/22/2019 at 1:02 PM
#94400
Ok. Now I have tried this code, and I get no signals in ProOrder?
Please note that I have tried other markets than DAX. There I have signals in my backtest but not in ProOrder.
|
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 |
DEFPARAM PreloadBars=100000 // Definition of code parameters DEFPARAM CumulateOrders = False // Cumulating positions deactivated // 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. DEFPARAM FLATBEFORE = 080000 // Cancel all pending orders and close all positions at the "FLATAFTER" time DEFPARAM FLATAFTER = 220000 // Conditions to enter short positions indicator1 = RSI[a](close) c1 = (indicator1 > s) TIMEFRAME(weekly,updateonclose) indicator11 = Stochastic[6,3](close) indicator22 = Average[5](indicator11) c2 =(indicator11 < indicator22) IF (c1 AND c2) THEN sellshort 1 CONTRACT AT Market ENDIF // Stops and targets SET STOP pTRAILING 45 SET TARGET pPROFIT 25 |