Simple code returns error message

Forums ProRealTime English forum ProOrder support Simple code returns error message

Viewing 7 posts - 16 through 22 (of 22 total)
  • #121846

    At Line 5 he defined …

     

    #121859

    Yes, he can use StocK.

    I think the error is at line 15,

    Line 8 is logically incorrect, since the average after > will always return 3 but it should not be reported as an error.

    #121941

    Thank you Roberto
    I was trying to describe a rising 50 moving average.
    Would If avg[50](close)>avg[50][3] then….. be correct.
    I know the trailing moving average omits (close) because it’s already
    happened, I got the wrong brackets for the 3 which was supposed to be 3 candles back.
    back.
    The StocK>80 then…. line did work .
    Is all this correct ?

    #121951

    Ok, fine.

    Yes, that’s correct!

     

    1 user thanked author for this post.
    #122627

    Hi
    Please how do I show if the MACD is above or below the MACDSignal line.?

    1 user thanked author for this post.
    #122670

    There you go:

    you can use variables AboveMACD and BelowMACD in your code (in the above code the histogram is not used,  if you don’t need it you may want to either remove or comment out line 3).

     

    2 users thanked author for this post.
    #122675

    Above added as Log 203 in here …

    Snippet Link Library

     

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

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