CALCULATEONLASTBARS value as a variable?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #55547 quote
    robdavrobdav
    Participant
    Veteran

     Hi I have an indicator that I need to vary CALCULATEONLASTBARS. Is it possible to have the number of bars as a variable so I can change the number in the variables section rather than the code itself? It doesn’t seem to allow it but I am wondering if there is a workaround. Thanks Rob  DEFPARAM CALCULATEONLASTBARS = 3000

    #55554 quote
    NicolasNicolas
    Keymaster
    Legend

    No variables possible with a DEFPARAM instruction. It would help a lot! 

    robdav thanked this post
    #55555 quote
    robdavrobdav
    Participant
    Veteran

    Agreed, it would help a lot.

Viewing 3 posts - 1 through 3 (of 3 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

CALCULATEONLASTBARS value as a variable?


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
robdav @robdav Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by robdavrobdav
8 years, 9 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 12/13/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...