Daily one trade code doesn't trade every day in backtest

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #88308 quote
    magicmurdock
    Participant
    Average

    Hallo,

    sorry for this simple Question.

    I have a simple Code with one trade per day (5m-10m-15m Frame)
    If i’m backtesting there are random days where no trade ist executed.

    I think it’s a simple Problem.

    Thank you for vour Response.

    DEFPARAM flatafter = 170000
    
    if intradaybarindex = 12 and open < close  then
    
    buy 10 shares at market
    
    endif
    
    if intradaybarindex = 12 and open > close then
    sell 10 shares at market
    
    
    endif
    #88311 quote
    magicmurdock
    Participant
    Average

    solved. Sorry

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

Daily one trade code doesn't trade every day in backtest


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 1 reply,
has 1 voice, and was last updated by magicmurdock
7 years, 1 month ago.

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