My screener ignores MFI[40] condition
Forums › ProRealTime English forum › ProScreener support › My screener ignores MFI[40] condition
- This topic has 9 replies, 3 voices, and was last updated 5 years ago by Nicolas.
Tagged: Mfi, moneyflowindex
-
-
11/30/2019 at 8:21 AM #11393911/30/2019 at 11:25 AM #113948
In your screenshot MFI has a value of 79 so is not less than 35 so that instrument is not one that the screener will find.
When posting code please use the ‘Insert PRT Code’ button rather than post screenshots of it as that way others can easily copy the code to test it. With a screen shot you are expecting them to retype the whole code!
11/30/2019 at 12:05 PM #11395111/30/2019 at 12:14 PM #113954You are comparing a real-time value of a 40 periods calculation of the Money Flow Index indicator with its value 40 periods ago.. That’s where is the trouble I believe 😉
If you want to offset 40 periods ago an indicator, the syntax should be like this:
14 periods MFI from 40 bars ago1moneyflowindex[14][40]MoneyFlowIndex instruction.
11/30/2019 at 1:38 PM #11395711/30/2019 at 6:24 PM #113968I’ll try again…
I wanted to create a code for the screener that will show results if the previous period meets its conditions:
1. MFI (40 periods) is smaller than 35.
2. CCI (40 periods) is smaller than 0.
3. Close is bigger than Open
4. Price is bigger than 10$
The screener will show first high volume stocks.
Again, all condition should apply for the previous period.
This is the code:
12345678910indicator1 = MoneyFlowIndex[40]c1 = (indicator1[1] < 35)indicator2 = CCI[40]c2 = (indicator2[1] < 0)c3 = (close[1] > open[1])c4 = (close[1] > 10)criteria = VolumeSCREENER[c1 AND c2 AND c3 AND c4] (criteria AS "Volume")Some of the results of the screener have an MFI[40] value that is bigger than 35.
The time frame is 15 minutes.
I attached a screen shot.
Thank you.
12/01/2019 at 9:26 AM #11398212/01/2019 at 9:39 AM #11398612/01/2019 at 9:50 AM #11398912/01/2019 at 11:06 AM #113990 -
AuthorPosts
Find exclusive trading pro-tools on