hiding code in indicator Error message,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #135590 quote
    Tony87
    Participant
    Junior

    hello all, i haven’t touched on indicators at all so i am not totally familiar with the format,   i am just using it to hide parts of my code,/fixed strategy values, and using the call function to request variables, everything i want to share i have listed

    a=1

    b=2

    and then also put after RETURN a,b,c,d ect

    i keep getting a error message on the indicator when clicking add indicator to chart

    “a positive integer field is expected with []” anytime i have used [] within in the code in my indicator, it has a positive integer inside of it,

    also

    then i go to back test my strategy i get a error “the function “x” called from “x” is called with 20 parameters(s) instead of 0 expected.

    is there and examples posted for a simple call/indicator format example, is there a limit of parameters per indicator?

    sorry i am not sharing the code but that would defeat the point of it lol,

    many thanks

    #135613 quote
    Vonasi
    Moderator
    Master

    CALL

    If you don’t call your indicator with any parameters in the [ ] then you need to at minimum call it with (close) as a parameter.

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

hiding code in indicator Error message,


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Tony87 @tony87 Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 06/11/2020
Status: Active
Attachments: No files
Logo Logo
Loading...