When will position be closed with signal last period of day

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #11670 quote
    Somatolysis
    Participant
    Junior

    Hi,

    just to be  sure because in this case I have no livetrading experience:

    Example:

    I have a long position

    timeframe 1 hour

    trading hours 080000 to 220000 (you know that IG offers longer trading hours but I don´t like to use them)

    Then the signal to sell the position comes with the last candle of the day (210000 until 220000).

    In Backtest the position is closed at 080000 next day.

    Is this in livetrading the same? German support of Prorealtime says, yes. Is it true? Has anyone livetrading experience with such a situation?

     

    Thanx in advance,

     

    Soma

    #11673 quote
    Elsborgtrading
    Participant
    Veteran

    Hi Soma.

    The code you are describing is not clearly to me, without the code.

    Perhaps what you are looking for is the DEFPARAM. here are an example.

    Cheers Kasper

    //====NO Position open between 23:00-07:00
    defparam flatbefore=070000
    defparam flatafter=230000
    //=====================================
    
    //====No trade bewteen these hours
    IF (Time >= 080000 AND Time <= 220000) then
    Tradetime=1
    else
    Tradetime=0
    endif
    //==========================
    
    IF condition and tradetime then
    BUY PositionSize CONTRACTS AT MARKET
    ENDIF
    
    
    
    #11711 quote
    Somatolysis
    Participant
    Junior

    it´s not the defparam.

    Example:

    Lets say I have a long position and will sell with.

    if longonmarket and close crosses over average[200] then

    sell at market

    endif

     

    Trading hours 080000 to 220000

    The signal comes at 220000

     

    The Backtest sells at 080000 next day.

    But when will the live system sell.

    080000 next day, too? Or after 220000 because IG has longer trading hours live?

    Thank you.

    #11720 quote
    Nicolas
    Keymaster
    Master

    Just test if hour of crossover is not the last hour of trading hours. If it is true, don’t allow trade and wait for the next signal.

    #11749 quote
    Somatolysis
    Participant
    Junior

    Hi Nicolas,

    I already do this in all of my live systems. Just wanted to be sure. I will test it with a small position in the next time and will let you know.

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

When will position be closed with signal last period of day


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by Somatolysis
9 years, 5 months ago.

Topic Details
Forum: ProOrder: Automatischer Handel & Backtesting
Language: German
Started: 08/14/2016
Status: Active
Attachments: No files
Logo Logo
Loading...