Graphical functions not being recognized

Forums ProRealTime English forum ProOrder support Graphical functions not being recognized

Viewing 7 posts - 1 through 7 (of 7 total)
  • #231220

    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

    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

    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

    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.

    https://www.prorealcode.com/documentation/graph/

    https://www.prorealcode.com/documentation/graphonprice/

    #231274

    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

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

     

    #231278

    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)

Create your free account now and post your request to benefit from the help of the community
Register or Login