hallo1832 Posted March 16, 2021 Report Share Posted March 16, 2021 Hello, as the title says I want to add the condition X percentage price gain from the last candle to the existing scanner Unusual Volume. Thanks for your help! Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted March 16, 2021 Report Share Posted March 16, 2021 you can make a copy of the default scan/paintbar and then add stuff. Just look at how MINPRICE is handled and then add same thing for %change . That what you looking for? Quote Link to comment Share on other sites More sharing options...
hallo1832 Posted March 25, 2021 Author Report Share Posted March 25, 2021 Thanks, I think I got the price gain thing right. However, I have a little other problem. I want the alert to trigger only when the relative volume line exceeds a value of 10000. However, today's test triggered various alerts that were much less than this value. Attached is my code. Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted March 25, 2021 Report Share Posted March 25, 2021 your code defaults relative volume parameter check to 1000. Are you changing the parameter from the default value to 10,000 on the scanner tab by clicking on the PARAMS button? Quote Link to comment Share on other sites More sharing options...
hallo1832 Posted March 25, 2021 Author Report Share Posted March 25, 2021 yes I do. But the problem is also with this line "if (RVOL_Line.CrossesUp(10000, 0)" which should trigger when the relative volume crosses 10000 as far as I understand. I just didn´t define the parameters for that line yet. Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted March 25, 2021 Report Share Posted March 25, 2021 could you send me your setup: Go to FILE / HELP => Send Log/Settings to support menu (from Dashboard or Portfolio) And add this Post’s URL in the comment. Quote Link to comment Share on other sites More sharing options...
hallo1832 Posted March 26, 2021 Author Report Share Posted March 26, 2021 Done yesterday. it seems that the system alerts when a condition was met at some point in time. For example, if relative volume crossed 5k 4 days before, volume bar reached 100k three days ago and the price just went up this minute. Then the alerted triggers. But I want everything to be related to the current candle. Thanks for your help Jerry! Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted March 26, 2021 Report Share Posted March 26, 2021 I tried your scan. It did does not have any results. What exact parameters are you using? and no, it does not return stuff from 3 days ago. If you look at a chart with corresponding Paintbar, the scan looks at the last bar only Quote Link to comment Share on other sites More sharing options...
hallo1832 Posted March 26, 2021 Author Report Share Posted March 26, 2021 I edited the scan to see the recent parameters within the code and to exclude errors: False alerts: 11:43 $KIQ 11:45 $CLEU public void MainCalculation() { if (RVOL_Line > 7000 && Volume_Bar > Volume_Bar[1] && Volume_Bar >= 40000 && SymbolData.Last > Close[1] * 1+(50/100) && SymbolData.VolumePercent > 20) { SetColorAndShape("Vol Up", PBShape.ArrowUp_Hollow, SysColor.VolumeUp); TriggerAlert("Vol Up"); SetScanResult(100); } } Quote Link to comment Share on other sites More sharing options...
hallo1832 Posted March 26, 2021 Author Report Share Posted March 26, 2021 Just now it alerted $SCO , not even the mimimum volume bar of 40000 was observed. Quote Link to comment Share on other sites More sharing options...
hallo1832 Posted March 26, 2021 Author Report Share Posted March 26, 2021 Maybe I found my mistake. In Frequency I entered 0.1 Min instead if 1 Min. I will check and let you know. Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted March 26, 2021 Report Share Posted March 26, 2021 scan has to match the chart if comparing Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.