Graphical functions not being recognized

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #231220 quote
    VictorVinnie
    Participant
    New

    Hi everybody,

     

    I am trying to print arrows and variable values in my charts but the functions DRAWARROW and PRINT are not recognized in my code.   Anybody knows the solution?   the only error message I get in the editor is “code not valid” and the function names appear underlined.

     

    Thanks!

    #231221 quote
    JC_Bywan
    Moderator
    Master

    Hi, graphical commands like DRAWARROW are only for indicators (probuilder code), not proorder and not proscreener. Maybe you are editing a probacktest/proorder code (would match having posted in proorder forum), or even if forum wasn’t chosen in purpose maybe editing a proscreener code?

    #231230 quote
    VictorVinnie
    Participant
    New

    noobywan, you are right!   I am trying to use those functions in a proorder piece of code.

    Is there any way to draw something in proorder ?

    #231244 quote
    JC_Bywan
    Moderator
    Master

    For backtest of a proorder code, in terms of drawings you can use graph and graphonprice commands, to display values taken by variables of your choice. Graph output goes in a separate window pane, graphonprice output goes in the price window. It will appear as lines, you can work on their names and colors. Mainly useful for debugging purposes. But beyond that, you can’t do all the drawarrow, drawtext, or any of the drawXXX commands available for indicators only.

    GRAPH

    GRAPHONPRICE

    #231274 quote
    VictorVinnie
    Participant
    New

    Thanks,

    the function is recognized in the code but I get an error message “GRAPH may not be recognized in the code” and it wouldn´t let me run it

    #231277 quote
    GraHal
    Participant
    Master

    Comment GRAPH out as below, GRAPH won’t run in proorder.

    //GRAPH
    #231278 quote
    JC_Bywan
    Moderator
    Master

    For backtest of a proorder code, […]

    Yes, only for backtest, and mostly useful for debugging purpose… but not for launching it as an automatic strategy. When actually running the strategy there’s no custom drawing by code.

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

Graphical functions not being recognized


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 6 replies,
has 3 voices, and was last updated by JC_Bywan
1 year, 10 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 04/08/2024
Status: Active
Attachments: No files
Logo Logo
Loading...