- This topic has 2 replies, 2 voices, and was last updated 1 month ago by .
- You must be logged in to reply to this topic.
I am looking to model a trading system which uses a Weekly time frame to Enter and a Daily time frame to Exit.
Presently my system looks for a setup of certain conditions and if the next day’s price exceeds the previous Close a Buy occurs. The precursory part (i.e., the setup conditions) of the Buy script use appropriate Weekly Time Frame override. I assume that even though the Weekly Bar is not yet finished the trade pre-triggers even if the Weekly Bar is partly formed.
To force the Back Tester to only pre-trigger at the close of the Week I used the following as one of the pre-trigger conditions.
CLOSE(OFFSET=1) == WEEK()
With an OFFSET of One Daily Bar the Close price of Friday should equate to WEEK() (which should be the same price).
However, I do not think my trick is working.
Is there another way to trick the Back Tester into only looking for Weekly Buys at the Friday close?
You could try using the DAYOFWEEK() function, so adding ‘and DAYOFWEEK()==6’ will only trigger on Fridays.
Thank you very much. I knew there must be a way Optuma could handle this.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
|cname||14 days||This cookie is set by Optuma. The cookies is used to store the users campaign selection for selecting the correct version of Optuma to trial and is "Necessary".|
|cookielawinfo-checbox-analytics||11 months||This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".|
|cookielawinfo-checbox-functional||11 months||The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".|
|cookielawinfo-checbox-others||11 months||This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.|
|cookielawinfo-checkbox-necessary||11 months||This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".|
|cookielawinfo-checkbox-performance||11 months||This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".|
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.