Parentheses issue with CALL instruction – Senior moment!

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #142452 quote
    smpsmp
    Participant
    Average

    I have a blank on this or a senior moment guess.  I have a BOT working and seems to return excellent results.  When I split the strategy up into an indicator and call it up in a strategy I keep getting parentheses issue and I am now starring to darkness.

     

    Can any help with correcting this error please?

    GBPUSD-Issue.png GBPUSD-Issue.png
    #142457 quote
    smpsmp
    Participant
    Average

    I am not sure that will work.

    #142458 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Usually that warning is displayed when there are input variables defines in your indicator and you did not specify them within brackests, but your pic, left panel, shows NO variables set for the indicator!

    You shoud try calling it:

    • without quotes x,y,z,w = CALL GBPUSD_30min_long_indi
    • without quotes but with empy brackets x,y,z,w = CALL GBPUSD_30min_long_indi[]

    replace x,y,z,w with your real names.

    Check your indicator (stand-alone, not embedded in your strategy) that it requires no input variables.

    x-11.jpg x-11.jpg
    #142463 quote
    VonasiVonasi
    Moderator
    Master

    smpaxton – Topic moved to the correct forum. Your topic is ProOrder coding related and not a platform question or issue. Please try to post in the correct forum with any future topics as per the forums rules. 

    Also it is preferred that you post the code using the ‘Insert PRT Code’ button rather than post screenshots of it.

    #142465 quote
    smpsmp
    Participant
    Average

    Thanks for the reply and help but none of the suggestions work!

    GBPUSD-30Min-Long-v1.0.itf GBPUSD_30min_long_indi.itf
    #142468 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Append:

    (close)

    so that it becomes:

    entry, buyperpoint, sl, tp = CALL "GBPUSD_30min_long_indi"(close)

    use quotes.

    smp thanked this post
    #142472 quote
    smpsmp
    Participant
    Average

    Bingo!  Thanks, it works now

     

    many thanks

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

Parentheses issue with CALL instruction – Senior moment!


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
smp @smpaxton Participant
Summary

This topic contains 6 replies,
has 3 voices, and was last updated by smpsmp
6 years, 1 month ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 08/24/2020
Status: Active
Attachments: 4 files
ProRealCode ProRealCode
Loading...