How to speed up Multitimeframe Strategies testing by ~10x
0 replies
Theo Gottwald
2 years ago #287814
When creating a multi-timeframe strategy with SQX, you typically set the main timeframe to H1 and the additional timeframe to D1.
The strategy is to focus on the smaller time frame first, then seek approval from the higher time frame.
This approach allows the strategy to first analyze the smaller timeframe H1, which has more candles, to identify conditions, and then test those conditions against the larger timeframe, D1, which has fewer candles.
In my case, one strategy that has been tested this way takes approximately 38 milliseconds.
In information technology, there’s a principle known as shorthand calculation, which emphasizes avoiding unnecessary evaluations.
When you have a long-term timeframe like D1 and a fluctuating calculation from H1, it doesn’t make sense to start with H1.
If D1 is negative, the outcome will always be negative, regardless of H1’s value. And remember D1 hass much less candles!
Therefore, you should first calculate D1 and only evaluate H1 if D1 is positive.
This approach allows us to set D1 as the main timeframe and H1 (the smaller timeframe) as the additional timeframe.
Doing so will significantly reduce the calculation time per strategy to just 4 milliseconds per Strategy.
This may not work for all Strategies, depending on the usage of H1 (the smaller Timeframe) and D1 (the larger Timeframe).
But a ten times faster calculation speed can make up for a lot.
#InformationTechnology #ShorthandCalculation #DataAnalysis #TimeframeStrategy #Efficiency#StrategyTesting #PerformanceMetrics #Milliseconds #Optimization #TechInsights
#MultiTimeframe #TradingStrategy #SQX #TechnicalAnalysis #ForexTrading
**Mit besten Grüßen | With best regards | Cordiali saluti**
**Theo Gottwald**
*Leading Expert in SPR & Visual Automation*
???? **What's New in the Q4 Update?**
1️⃣ Open AI Vision: Empower your SPR with cutting-edge visual recognition. See the unseen. ????????
2️⃣ Open AI TTS: Seamlessly transform text into natural, lifelike speech. Hear the difference. ????️????
3️⃣ GPT-4 with 128k Token Context Window by OpenAI: Dive into unparalleled depth in AI conversations. Think deeper. ????????
4️⃣ DALLE-3 by OpenAI: Command revolutionary AI to generate stunning images. Imagine more. ????️????
5️⃣ ElevenLabs Text to Speech: Experience text-to-speech so lifelike, it speaks to you. ????️
6️⃣ Stable Diffusion Local & Online via Automatic1111: Unlock creativity with both local and cloud-based image generation. Create anywhere. ☁️????
7️⃣ GPT4All & LM Studio: Harness powerful offline AI capabilities. Your studio, smarter. ????️????
8️⃣ DeepL Translator with SPR Integration: Achieve real-time, accurate translations. Speak the world's language. ????????
9️⃣ ChatGPT by OpenAI: Engage with your SPR through natural, dynamic conversations. Connect genuinely. ????️
???? WHISPER by OpenAI: Convert voice to text with effortless precision. Listen, transcribe, act. ????️????
???? Mistral AI: Scale your AI integration with seamless efficiency. Elevate your AI journey. ????????
???? Claude 3 by Anthropic: Experience next-level AI understanding and interactivity. Discover AI with a human touch. ????????
???? **Address:**
Herrenstr. 11, 76706 Dettenheim, Germany
???? **Phone:**
Office: +49 (7247) 9851112
Mobile: +49 160 6688 222
Fax: +49 (7247) 9851113
???? **Email:**
[[email protected]](mailto:[email protected])
???? **Websites:**
[IT-Berater](http://www.it-berater.org) | [Smart Package](http://www.smart-package.com)
0