Jump to content
Medved Trader Forums

Add % price gain from the last candle to Unusual Volume


Recommended Posts

  • 2 weeks later...

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.

 

 

RVOL.PNG

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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);
    }
}
 

 

 

 

CLEU 11_45.PNG

KIQ 11_43.PNG

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...