Use stop guaranteed

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #100818 quote
    rejo007
    Participant
    Senior

    Hello,

    What do you think of a strategy that would take a long and short position in the last minutes of trading on Friday with guaranteed stop as close as possible and closing these positions on Monday at the opening.

    No gain (spread loss) if there is no gap, but big gains in case of gap.

    Strategy very simple to code, but I can not.

    Someone to test it?

    Thank you

    #100900 quote
    GraHal
    Participant
    Master

    No gain (spread loss) if there is no gap

    Spread (as you say) plus 3 nights overnight interest charges.

    Plus the guaranteed SL premium if / when it triggers.

    Worth trying though! 🙂 Would this backtest okay??

    We won’t know until we have the code?

    #100903 quote
    rejo007
    Participant
    Senior
    1. You think it’s possible to backtest? Or in backtest it will be a simple stop and not a stop guaranteed ?
    #100904 quote
    TempusFugit
    Participant
    Veteran

    Interesting idea

    IF DAYOFWEEK=5 AND HOUR=20 THEN
    BUY AT MARKET
    ENDIF
    
    IF ONMARKET AND DAYOFWEEK<5 THEN
    SELL AT MARKET
    ENDIF

    This is it? The question is how much to put in the spread for the backtest

    #100905 quote
    TempusFugit
    Participant
    Veteran

    I don´t know how to code the guaranteed stop, but maybe sustracting from the result he loosess beyond that stop will do the trick

    #100911 quote
    GraHal
    Participant
    Master

    What market are we talking about here?

    The DJI trades until 9:30 on Friday? And opens at 23:00 on Sunday?

    #100912 quote
    rejo007
    Participant
    Senior

    hello,

    hard to do a backtest this kind of strategy but at the election of trump, i have do a similar manual strategy and the result was very good.

    sorry for my bad english

    #100913 quote
    GraHal
    Participant
    Master

    sorry for my bad english

    If you hadn’t said I wouldn’t have thought anything at all … you’re english is fine, no problem!

    #100959 quote
    Nicolas
    Keymaster
    Master

    Don’t need to code the guaranteed stop, all orders automatically have it.

    #100962 quote
    Vonasi
    Moderator
    Master

    You would need two strategies – one long and one short as it is not possible to be both long and short at the same time in a strategy. Then you have the issue that price is not static between the close of a market and the opening the next day. The broker will make their own market and so if your stop losses are close there is a very good chance that they will both be hit. If they are wide then you need a big gap to ever be profitable. Also spread increases when markets are closed so your SL levels need to be wider than this at minimum.

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

Use stop guaranteed


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
rejo007 @rejo007 Participant
Summary

This topic contains 9 replies,
has 5 voices, and was last updated by Vonasi
6 years, 8 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 06/16/2019
Status: Active
Attachments: No files
Logo Logo
Loading...