[beta-testing] multi timeframe support for automatic trading, ideas are welcome!

Viewing 15 posts - 181 through 195 (of 288 total)
  • Author
    Posts
  • #79329 quote
    robertogozzi
    Moderator
    Master

    Keep them, they won’t take much ram space!

    At least until they recognize that IGNORED is a reserved word, not a variable!

    #79330 quote
    AlgoAlex
    Participant
    Master

    Roberto, look again at my picture:

    [attachment file=79331]

     

    The system doesn’t allow the word “ignored” more than one time, because it sees it as a variable!

    It won’t run.

    #79334 quote
    robertogozzi
    Moderator
    Master

    That’s why I suggested that you keep the complete set of variable names, even if you don’t need some of them, at least until they correct the bug, they won’t take much space in your PC’s ram!

    #79336 quote
    AlgoAlex
    Participant
    Master

    But if I keep all variables, I have to use them all!! Or am I wrong?

    #79340 quote
    robertogozzi
    Moderator
    Master

    If you have X and Y unused, but need to keep them, you can use a dummy IF…ENDIF:

    IF x AND y THEN //no action
    ENDIF
    AlgoAlex, Pepsmile and Bel thanked this post
    #79715 quote
    Pepsmile
    Participant
    Veteran

    For future eventual use of variables I used something like :

    X = X

    Y = Y

    But your suggestion is more efficient because it doesn’t use memory ressources by assigning useless values.

    Thx Roberto

    robertogozzi thanked this post
    #80575 quote
    robertogozzi
    Moderator
    Master

    In this scenario, will:

    1. OnMarket be updated every minute despite it is tested within the 1-hour TF?
    2. more than one trade be opened within the same 1-hour candle if the first one is entered and exited in a few of minutes, since all conditions still apply and code is read every minute (but conditions updated on close)?
    TIMEFRAME (1 hour,updateonclose)
    IF close > average[20](close) AND Not OnMarket THEN
       BUY 1 CONTRACT AT MARKET
       SET TARGET pPROFIT 20
       SET STOP   pLOSS   20
    ENDIF
    //
    TIMEFRAME (default)                  //run from a 1-minute chart
    //  trailing stop code here
    
    #80818 quote
    robertogozzi
    Moderator
    Master

    I suggest the implementation of the keyword SKIPTIMEFRAME or BREAKTIMEFRAME, similar to BREAK, to skip to the next TF in the code or to the end:

    TIMRFRAME (daily,updateonclose)
       .
       .
    TIMRFRAME (1 hour,updateonclose)
       .
    IF MyConditions THEN
       SkipTimeFrame           //resume at the beginning of the following TF, if any
    ENDIF
       .
    TIMEFRAME (default)
       .
       .
    #80819 quote
    robertogozzi
    Moderator
    Master

    Does MTF support the use od the same TF more than once with different behaviours:

    TIMEFRAME (Daily,updateonclose)
       .
       .
    TIMEFRAME (Daily,default)
       .
       .
    TIMEFRAME (1 hour,updateonclose)
       .
       .
    TIMEFRAME (default)
    #80838 quote
    Nicolas
    Keymaster
    Master

    Yes it works. In the attached picture you clearly see the use of the daily timeframe 2 times: a and b variables are calculated differently.

    robertogozzi and Bel thanked this post
    #81769 quote
    Jan
    Participant
    Veteran

    Hallo all,

    interesting discussions all above, I will certainly test MTF in my future strategies.

    I have 2 very basic questions:

    1. If I let turn on the MTF-possibility in my real IG-account, would it have effect on my existing trading strategies ?  (given the obvious fact that I do not change those existing strategies with new MTF-code).          Any bugs known when turn the MTF possibility on, but not using any MTF code in the strategies?   I would think that it would not have any impact, but please give me your thoughts.
    2. Already any testresults known of the Walk forward analysis in combination with Multiple Time Frame code, no bugs known sofar, it works as expected  ?

     

    Thanks in advance, KR Jan

    #81777 quote
    Nicolas
    Keymaster
    Master

    I’m not with IG, but I know that many users asked them to turn the MTF on their accounts. By reading all the topics of the forums, I have no feeling that it has changed the way the “old” strategies should have behaves without it.

    #81864 quote
    Gianluca
    Participant
    Master

    I am using strategies in real account with MTF and old strategies, nothing changes with those

    #81875 quote
    robertogozzi
    Moderator
    Master

    MTF simply applied to old strategies won’t be beneficial (maybe just for trailing stops, but not always). You have to write a strategy suited for MTF!

    #81880 quote
    Vonasi
    Moderator
    Master

    MTF simply applied to old strategies won’t be beneficial (maybe just for trailing stops, but not always). You have to write a strategy suited for MTF!

    I think Gianluca is just pointing out that his old strategies have not been effected in any way by now having MTF available on his platform/account – which is what Jan Wind wanted to know with his first question.

    Gianluca thanked this post
Viewing 15 posts - 181 through 195 (of 288 total)
  • You must be logged in to reply to this topic.

[beta-testing] multi timeframe support for automatic trading, ideas are welcome!


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Nicolas @nicolas Keymaster
Summary

This topic contains 287 replies,
has 47 voices, and was last updated by Brianoshea
5 years, 10 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 03/19/2018
Status: Active
Attachments: 48 files
Logo Logo
Loading...