Script for Monday trading

Optuma Forums Optuma Scripting Script for Monday trading

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #69337
    John
    • Topics: 9
    • Replies: 3
    • Posts: 12

    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:

    • This topic was modified 2 weeks ago by John.
    #69345
    Darren
    • Topics: 71
    • Replies: 880
    • Posts: 951

    Hi 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.

    Capture

    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:

    Capture

    Hope that helps.

    #69351
    John
    • Topics: 9
    • Replies: 3
    • Posts: 12

    Edit:

    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:

    • This reply was modified 2 weeks ago by John.
    #69369
    Darren
    • Topics: 71
    • Replies: 880
    • Posts: 951

    Hi 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.

    #69371
    John
    • Topics: 9
    • Replies: 3
    • Posts: 12

    Hi Darren-

    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!

    #69375
    Darren
    • Topics: 71
    • Replies: 880
    • Posts: 951

    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 Tester

    #69377
    John
    • Topics: 9
    • Replies: 3
    • Posts: 12

    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)

    #69381
    Darren
    • Topics: 71
    • Replies: 880
    • Posts: 951

    OK thanks. We’ll get that fixed but in the meantime just attach it to an email and send to [email protected].

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest