- This topic has 2 replies, 2 voices, and was last updated 2 days ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Optuma Forums › Optuma Scripting › Money Flow Script
Tagged: Volume, ACC, accumulate, Price, money flow
Hi,
I am trying to script an indicator that does the following:
Not sure what to do to make this work. Here is my attempt:
1 2 3 4 5 6 7 8 9 10 |
//Define the variables V1 == 0 ; V2 = VOLUME() ; V3 = CLOSE() ; //Calculate Money Flow V4 = IF(CLOSE() IsUp, V1 + (V2 * V3)) ; V5 = IF(CLOSE() IsDown, V1 - (V2 * V3)) ; ACC(V4 and V5, RANGE=All Time) |
Thank you for helping.
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:
1 2 3 4 5 6 |
//Get Turnover value based on the close position; V1 = IF(CLOSE() IsUp, TO(),TO()*-1); //Sum the values; ACC(V1, RANGE=All Time) |
Cookie | Duration | Description |
---|---|---|
cname | 14 days | This cookie is set by Optuma. The cookies is used to store the users campaign selection for selecting the correct version of Optuma to trial and is "Necessary". |
cookielawinfo-checbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |