No positions with a weekly multi timeframe strategy
Forums › ProRealTime English forum › ProOrder support › No positions with a weekly multi timeframe strategy
- This topic has 13 replies, 5 voices, and was last updated 6 years ago by
GraHal.
-
-
03/19/2019 at 1:32 PM #94022
Hello! I have worked with a strategy in several timeframes. Takes buy and sell signal in 1 minute timeframe but only if certain cretaries are met in the weekly timeframe. When I run it in ProOrder in a demo acount it does not take any positions.
And when I backtest, it needs at least 50000 units to get some signals. How do I solve that problem in ProOrder?
03/19/2019 at 2:00 PM #94023Make conditions easier to be met.
If you post your code we might be of more help.
03/20/2019 at 11:36 AM #94138Ok here it is.
That’s just one example. Don’t know how many units ProOrder works with?
1234567891011121314151617181920212223// Definition of code parametersDEFPARAM 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" timeDEFPARAM FLATAFTER = 220000// Conditions to enter short positionsindicator1 = 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) THENsellshort 1 CONTRACT AT MarketENDIF// Stops and targetsSET STOP pTRAILING 45SET TARGET pPROFIT 2503/20/2019 at 11:48 AM #94141Data history must be loaded for the indicators calculation to be made, that’s why you don’t get signals by reducting the units displayed. Getting weekly timeframe data from a 1 minute chart needs a lot of bars!
1 user thanked author for this post.
03/20/2019 at 11:54 AM #9414303/21/2019 at 9:54 AM #9424803/21/2019 at 10:24 AM #94252Maximum allowed by pProOrder is
1DEFPARAM PreloadBars=100001 user thanked author for this post.
03/21/2019 at 10:43 AM #9425403/21/2019 at 11:38 AM #9425703/21/2019 at 12:58 PM #94264Next version of Prorealtime you can back test longer, right?
Yes, with 1M bars!
03/22/2019 at 1:02 PM #94400Ok. 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.12345678910111213141516171819202122232425DEFPARAM PreloadBars=100000// Definition of code parametersDEFPARAM 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" timeDEFPARAM FLATAFTER = 220000// Conditions to enter short positionsindicator1 = 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) THENsellshort 1 CONTRACT AT MarketENDIF// Stops and targetsSET STOP pTRAILING 45SET TARGET pPROFIT 2503/22/2019 at 2:36 PM #9440503/22/2019 at 2:40 PM #94406I have signals in my backtest but not in ProOrder.
Over what period have you Forward Tested in Pro Order Auto Trading (I assume that is what you are referring to above when you say Pro Order?)?
Also you must be a very patient chap to wait all week (using update on close) to make £25 or am I missing somethng here?? 🙂
1234TIMEFRAME(weekly,updateonclose)SET STOP pTRAILING 45SET TARGET pPROFIT 25EDIT / PS
I don’t get any trades over 1000 bars on a Weekly TF Backtest with attached in the optimiser for a and s
03/22/2019 at 3:05 PM #94413 -
AuthorPosts
Find exclusive trading pro-tools on