MOVING AVERAGE NUMERIC VALUE SUBTRACTED

Forums ProRealTime English forum ProOrder support MOVING AVERAGE NUMERIC VALUE SUBTRACTED

Viewing 4 posts - 1 through 4 (of 4 total)
  • #136685

    I want to use following as a condition to trade:

    Subtract numeric value of SMA x from SMA y. Trade if result is bigger/smaller than result of same subtraction in previous period.

    Coding/help appreciated.

     

    Thank you.

    #136690

    There you go (bigger):

    You may want to remove ABS( and the rightmost parenthesis if you want to have both positive and negative values.

    1 user thanked author for this post.
    #136771

    Thank you.

    Very helpful.

    Last tweak: What to do if I want to use SMA of mean price of last bar, not close?

    Thank you.

    #136782

    Instead of CLOSE use MedianPrice.

    What do you mean by “SMA of mean price of last bar“?  (The sma of mean price of the last bar is the mean price of last bar itself!)

Viewing 4 posts - 1 through 4 (of 4 total)

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