STYLE(,) does not accept width variable

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #39909 quote
    AVTAVT
    Participant
    Senior
    val=average[10]
    Return val coloured(255,0,0) style(point,5)

    above works

    val=average[10]
    DotSize=5
    Return val coloured(255,0,0) style(point,DotSize)

    syntax error: line 3, col 42

    one of the following suits better than “DotSize”: a text width (1-5)

    Should nothing be wrong with the code (Nicolas: a variable can only be a number – I keep in mind what you say 😉 , we need a number and I defined one)

    Comments please. Thank you.

    #39922 quote
    NicolasNicolas
    Keymaster
    Legend

    That’s right, width can’t be a variable, only a number. It should be nice if it was possible to use variable for sure. I’ll add it to the wish list.

    AVT 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

STYLE(,) does not accept width variable


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
AVT @avt Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
9 years, 2 months ago.

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