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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #88308 quote
    magicmurdockmagicmurdock
    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
    magicmurdockmagicmurdock
    Participant
    Average

    solved. Sorry

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 magicmurdockmagicmurdock
7 years, 10 months ago.

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