September 20, 2022 at 3:30 am #69337
I am trying to set this up in the backtester where the signal shows after Friday’s close (to use the full week of data), then trade it on Monday.
I’m not sure if I set this up correctly or if something needs to be added to tell the system to trade on Monday.
Entry:12345678910JDKRS(Day(PERIODAMOUNT=1), INDEX=BIL:US, DEFAULT=Ratio).TrendBars == 0;ANDST1 = (STOCH(Week(PERIODAMOUNT=1, BARBYBAR=False), Bars=1, TYPE=Slow)); ST1.%K >ST1.%DExit:JDKRS(Day(PERIODAMOUNT=1), INDEX=BIL:US, DEFAULT=Ratio).TrendBars >0orST1 = (STOCH(Week(PERIODAMOUNT=1, BARBYBAR=False), Bars=50, TYPE=Slow)); ST1.%K < ST1.%D123Thanks!
September 20, 2022 at 7:38 pm #69345
- This topic was modified 2 weeks ago by John.
If you run the test using a Data Timeframe of Weekly and the Enter Trade Price rule as Next Day Open then Monday’s open will always be used.
Note that the order of your formula needs to be changed as variables have to be listed first. Also, Bars=1 is not recognised by the STOCH function: when changing the default values don’t type the text – always click on the function text and change the values from the pop-up so the correct syntax gets used.
When clicking on the STOCH function you will see the default 10/3/3 settings are being used. Change the default values as required and the correct syntax gets added to the formula:12345ST1 = STOCH(TYPE=Slow, BAR1=1);ST1.%K > ST1.%D andJDKRS(Day(PERIODAMOUNT=1), INDEX=BIL:US).TrendBars == 0
Hope that helps.September 21, 2022 at 12:09 am #69351
I think I may understand now. Is the code you provided above set to give the full weekly stochastic signal (not a false mid-week signal) while using a daily JKRS signal?
So does this eliminate the problem of using a weekly signal/getting an incomplete signal?
Because the results are a bit too good.
I noticed that the JKRS signal flashes on the day the bar turns green, not the day after. (I compared the trade list with showbar results).
Thanks for your time on this, I’m trying to get a better understanding of how Optuma handles weekly signals – sorry for all the questions.
I am still seeing non-Monday trades appear, even with the Data timeframe set to weekly. Can you let me know what I am doing wrong?
This is the code I am using:12345ST1 = STOCH(TYPE=Slow, BAR1=10); ST1.%K > ST1.%DandJDKRS(Day(PERIODAMOUNT=1), INDEX=BIL:US).TrendBars == 0
September 21, 2022 at 7:14 pm #69369
- This reply was modified 2 weeks ago by John.
Mixing timeframes is always complicated, but if the Data Timeframe is set to 1 Week in the test setup then the dates on the Trade List tab will all be Fridays. With Next Day Open selected as the entry rule it will be for the following week ie Monday’s open (because there isn’t a timeframe specified in the STOCH formula it uses the timeframe in the test setup).
Because weekly data is dated Friday, the daily RRG criteria has to be true on the Friday for the Monday entry.September 21, 2022 at 9:38 pm #69371
The way you explained it makes sense, however, the Tradelist shows mid-week trades (attached).
The area I circles shows trades on a Mon, Tues, & Wed.
I think this is why I am confused with this as my understanding is the trades should only be showing up Fridays. (I’m using EOD)
Thanks again for your help with this!September 21, 2022 at 10:14 pm #69375
OK thanks. I’m not sure how that’s possible if the test is using a weekly data timeframe, so please send the backtest file to support and we’ll take a look.
The .oba file for your test can be found here:
Documents/Optuma/Local/Searches/Back TesterSeptember 21, 2022 at 10:28 pm #69377
Hi Darren –
Is creating a support ticket the best way to get support the .oba files.
The website won’t allow me to upload the file.
I get “This type of file is not allowedundefined” (attached screenshot)September 21, 2022 at 11:15 pm #69381
- You must be logged in to reply to this topic.