Simple code returns error message

Forums ProRealTime English forum ProOrder support Simple code returns error message

Viewing 15 posts - 1 through 15 (of 22 total)
  • #121152

    Completely new to coding so started a simple test program got error msg to go to prorealcode but thats too complex. Advice welcome

    #121154

    AT line 12 leave a blank between LOSS and 10.

    #121169

    Thank you Roberto, one more question… how do I code the stochastic %K passing through %D

    #121172

    cyrillic – I have moved your topic. You posted it in the ‘Welcome New Members’ forum and it is a strategy question so I have moved it to the ProOrder forum. Please try to post in the correct forum with any future topics.

    1 user thanked author for this post.
    #121173

    There you go:

     

    1 user thanked author for this post.
    #121254

    Thank you Roberto…..

    Also… If I wanted no buy/sell action to be taken until two or more commands
    have been completed, would I use several “if” command lines and where would the command
    “and” be put ??

    #121255

    Is this what you mean …

     

    2 users thanked author for this post.
    #121284

    Thanks GraHal ……….. Does the command need to be in one long string ?
    Everything seems to need to be just so or it bites you.. great when you know the exact format.

    #121429

    Does the command need to be in one long string ?

    Yes, but you can do same / similar to below.

    The auto-syntax checker is very good if you make a mistake it will let you know when you try and run the code.

     

     

    #121497

    Thanks GraHal, I’m learning…..
    Is it possible to plot the %K of the Stochastic on its own or the MACD line on its own ??
    Such as against an SMA.

    #121498

    This will only return the K line.
    You can apply an MA to the indicator, but this will simply replicate the D line That you have previously removed.

    2 users thanked author for this post.
    #121838

    Thank you Roberto…
    I have just tried to backtest this simple program but the syntax error now
    underlined is the > symbol, third line up (>80) What have I done wrong ?

    #121839

    What have I done wrong ?

    Try …

     

    #121840

    This could be the error, at line 8:

    what is the number 3 within parentheses? That’s the place where you put the data series on which the average is computed, CLOSE, HIGH, StocK, Rsi….. not 3!

    (when omitted, the CLOSE is assumed)

     

    #121844

    Also, line 15 should be:

     

    1 user thanked author for this post.
Viewing 15 posts - 1 through 15 (of 22 total)

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