Money Flow Script

Optuma Forums Optuma Scripting Money Flow Script

  • This topic has 2 replies, 2 voices, and was last updated 2 days ago by Louis.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #70961
    Louis
    • Topics: 43
    • Replies: 74
    • Posts: 117

    Hi,

    I am trying to script an indicator that does the following:

    • When the security price closes higher, calculate price * volume and add that to the previous value.
    • When the security price closes lower, calculate price * volume and subtract that from the previous value.

    Not sure what to do to make this work. Here is my attempt:

    Thank you for helping.

    #70975
    Darren
    • Topics: 74
    • Replies: 967
    • Posts: 1,041

    Hi Louis,

    We have a tool called Turnover with a function TO() which is basically the daily value of trading (close x volume). We can take the TO() value and multiply it by -1 when the IF() condition is false. This will calculate the all-time money flow:

    Capture

    #71069
    Louis
    • Topics: 43
    • Replies: 74
    • Posts: 117

    Thanks Darren. Appreciate your help.

    1 user thanked author for this post.
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest