multi timeframe doesn't work
Forums › ProRealTime English forum › ProOrder support › multi timeframe doesn't work
- This topic has 10 replies, 4 voices, and was last updated 7 years ago by
immo_vienna.
-
-
07/14/2018 at 10:10 AM #7595512345678910111213141516171819202122232425262728293031323334353637defparam cumulateorders = falsedefparam preloadbars = 500// Verhindert das Trading an bestimmten WochentagendaysForbiddenEntry = OpenDayOfWeek = 5 OR OpenDayOfWeek = 6 OR OpenDayOfWeek = 0//Money Managementcapital = 25000risk = 0.1stoploss = 10 // Could be our variable X// and calculate contractsequity = capital + StrategyProfitmaxrisk = round(equity*Risk)positionsize = abs(round((maxrisk/stoploss)/PointValue)*pipsize)// Bedingungen zum Einstieg in Long-Positionentimeframe(10 minutes,updateonclose)c1 = (high < high[1])c2 = (low < low[1])c3 = (close < medianprice[1]) // BULLSHITc4 = close[10] < average[10](close)c5 = (low < average[10](close)+std[10](close)) // - = mehr Sicherheitc6 = (close > average[10](close))c = c1 and c2 and c3 and c4 and c5 and c6if c and not daysForbiddenEntry thenbuy positionsize contract at marketendif// Bedingungen zum Ausstieg von Long-Positionencc1 = (close > average[10](close)+std[20](close)) // hier ggf. auch - und close[1]cc2 = (close > close[1])cc = cc1 and cc2if cc thensell at marketendif
timeframe doesn’t work?
07/14/2018 at 10:23 AM #75960I did not read your code thoroughly, but MTF in your code is not necessary, since you use only the 10-minute TF!
Lines 1-16 are within the default TF, but they do not do much TF-related activity, then you switch to 10 minutes through the end.
If you do not use the TIMEFRAME keyword and launch it on a 10-minute TF you’ll get the same results, I guess!
07/14/2018 at 11:04 AM #75966thats true but it doesnt work anyway. i want to look at the daily chart and trade in 10min chart.
07/14/2018 at 11:13 AM #75968a better screenshot now
123456789101112131415161718192021222324252627282930// Festlegen der Code-Parameterdefparam cumulateorders = falsedefparam preloadbars = 500// Verhindert das Trading an bestimmten WochentagendaysForbiddenEntry = OpenDayOfWeek = 5 OR OpenDayOfWeek = 6 OR OpenDayOfWeek = 0//Money Managementcapital = 25000risk = 0.1stoploss = 10 // Could be our variable X// and calculate contractsequity = capital + StrategyProfitmaxrisk = round(equity*Risk)positionsize = abs(round((maxrisk/stoploss)/PointValue)*pipsize)// Bedingungen zum Einstieg in Long-Positionentimeframe (default)c1 = (high < high[1])c2 = (low < low[1])c3 = (close < medianprice[1]) // BULLSHITc4 = close[10] < average[10](close)c5 = (low < average[10](close)+std[10](close)) // - = mehr Sicherheitc6 = (close > average[10](close))c = c1 and c2 and c3 and c4 and c5 and c6timeframe (5 minutes)if c and not daysForbiddenEntry thenbuy positionsize contract at marketendif07/14/2018 at 11:14 AM #75969line 19 – doesnt work
line 28 does
07/14/2018 at 11:25 AM #75972There must be an error somewhere BEFORE line 19.
I can only suggest that you take a look at this https://www.prorealcode.com/topic/premiere-approche-sur-le-multi-timeframe-avec-prorealtime/, where you may have a chance to spot the correct syntax.
07/14/2018 at 11:28 AM #7597307/14/2018 at 11:35 AM #75974Should it not be this and then launched on a 5 minute chart?
123456789101112131415161718192021222324252627282930// Festlegen der Code-Parameterdefparam cumulateorders = falsedefparam preloadbars = 500// Verhindert das Trading an bestimmten WochentagendaysForbiddenEntry = OpenDayOfWeek = 5 OR OpenDayOfWeek = 6 OR OpenDayOfWeek = 0//Money Managementcapital = 25000risk = 0.1stoploss = 10 // Could be our variable X// and calculate contractsequity = capital + StrategyProfitmaxrisk = round(equity*Risk)positionsize = abs(round((maxrisk/stoploss)/PointValue)*pipsize)// Bedingungen zum Einstieg in Long-Positionentimeframe (daily)c1 = (high < high[1])c2 = (low < low[1])c3 = (close < medianprice[1]) // BULLSHITc4 = close[10] < average[10](close)c5 = (low < average[10](close)+std[10](close)) // - = mehr Sicherheitc6 = (close > average[10](close))c = c1 and c2 and c3 and c4 and c5 and c6timeframe (default)if c and not daysForbiddenEntry thenbuy positionsize contract at marketendif07/14/2018 at 12:00 PM #75977thats what i wanted to try 😀
i used both – demo and my account. doesn’t work and i don’t know why. i checked the link u gave me – thats where i got it from…
07/14/2018 at 12:27 PM #7597907/14/2018 at 12:37 PM #75980ahhhhhh thats why….. okay thanks 🙂
-
AuthorPosts
Find exclusive trading pro-tools on