Internal error: unknown command

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #210905 quote
    cahlucascahlucas
    Participant
    New

    Dear members,

    For several times I have seen ProRealTime code that all gave errors. And all these errors I could not explain after looking at these commands in the programming manuals. It starts on the first line: Internal error: unknown command. It is the line with the ‘DEFPARAM’ command: the word ‘CumulateOrders’ is underlined here to indicate that it is not recognized. The same also applies to the commands ‘BUY’ and ‘EXITSHORT’. I can’t possibly figure out why those commands produce such errors. Maybe someone can shed some light on this? I have only added the lines below that give an error.

    Defparam CumulateOrders = false
    
    
    BUY 1 SHARES AT MARKET
    EXITSHORT AT MARKET
    
    

     

    Internal error: unknown command

    #210916 quote
    PeterStPeterSt
    Participant
    Master

    Maybe you apply this to Indicator code ? that should not be. This is meant for Strategy code (the rightmost tab at the attempt of selecting/opening the code by means of the editor).

    cahlucas thanked this post
    #210932 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    The code you posted reports no errors.

    Bear in mind that you can exit long trades using SELL, as EXITSHORT is used to exit short trades opened with SELLSHORT, instead.

    #210939 quote
    cahlucascahlucas
    Participant
    New

    Dear Peter,

    Thank you very much for your answer. Indeed, I had copied the code into the wrong editor. No more error messages this time. Thank you very much for this tip! Sincerely, Karel.

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

Internal error: unknown command


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
cahlucas @cahlucas Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by cahlucascahlucas
3 years, 6 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 03/05/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...