timeframe on ticks

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #170667 quote
    zomegazomega
    Participant
    New

    Hi all

    i am seting a backtest with 2 different timeframe, one on 3 000 ticks to give a trend indicator and the default one on 100 ticks.

    defparam cumulateorders = false
    
    timeframe(3000 ticks, updateonclose)
    
    xClose = (Open+High+Low+Close)/4
    if(barindex>2) then
    xOpen= (xOpen[1] + xClose[1])/2
    xHigh= Max(xOpen, xClose)
    xLow= Min(xOpen, xClose)
    endif
    
    c0 = xclose > xopen
    c1 = xclose < xopen
    
    timeframe (100 ticks, updateonclose)
    
    if intradaybarindex =0 and c0 then 
    buy 1 contract at market
    endif
     
    set stop ploss 2
    set target pprofit 2

    When i try to run it, i have the attached error message but i dont get it: 3000 is a multiple of 100 so 100 is a common denominator to both TF … where is the problem ?

    thx for your help !!

    error-1.png error-1.png
    #170675 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Only time-based TF’s are allowed.

    No ticks, Renko etc…

    Use the correct forum, as highlighted in yellow below.

    For strategies use ProOrder. I moved it.

    Thank you 🙂

    MoiAvila thanked this post
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

timeframe on ticks


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
zomega @zomega Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
5 years, 4 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 05/28/2021
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...