Internal error: unknown command

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #210905 quote
    cahlucas
    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
    PeterSt
    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
    robertogozzi
    Moderator
    Master

    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
    cahlucas
    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.

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 cahlucas
2 years, 11 months ago.

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