Jump to content
Medved Trader Forums

Recommended Posts

Posted

I want to build a breakout scanner that reports stocks whose opening price is higher than the highest price of the last x bars (with x variable entering).  I would like to add this indication to the example On growing volumes.

Posted

You would run a historical chart scan, and use

    DefinePaintbarParameter("Period", "Period", true, 1, 100, 1, 5);
    var num = Convert.ToInt32(GetPaintbarParameter("Period"));
    if (Open > Max(1, num, High))
    {
        SetScanResult("O>HH");
    }
Posted (edited)

Thx for the suggestion. I try to code a beakout intraday screener, to identify stocks that rocks at 15.30. Would you suggest something to try this strategy?

Edited by and60rm
Posted

I think to something like this (scanner intraday)

condition 1: last close > sma200 (the stock is in long uptrend)

condition 2: open price > average(highest high of last X bars)

condition 3: yield between open and close(1) >+5%

condition 4: volume > average volume last x periods

condition 5 :%R>50

Posted

I am not sure what "yield between open and close[1]" is... But in general yes all that stuff can be done.

 

1. For SMA and other indicators - just plug them right into the scan/paintbar.

2. For averages - look up StateFIFOQueue and examples using it.

 

Posted

Thx! I have noticed for many US stocks growth in the premarket and an explosion in prices in the first phase of trading.  the goal is to capture this explosiveness, perhaps possible with Trade Ideas, with the breakout scanner.  even if we don't find a way to capture the first trend, we could enter on possible retracements of the main trend.  mine was just a hypothesis.

your assistance is invaluable.  and I thank you.  where can I get a list of all the functions and syntax of the language?

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...