MA scan

Viewing 15 posts - 1 through 15 (of 17 total)
  • #111140

    Hi,

    I have one more scan that I would like to get some code for.

    I would like to create a scan when these 3 moving averages are very tight together (same price) but I wondering is it possible to have a small variable so if they are not exactly the same it will still show results?

    Exponential moving average 6
    Moving average 10
    Exponential moving average 20

    I have been watching the videos on how to wright simple code but still finding it hard to get my head around it. Is there any other even more basic videos that I can view? just so that I can learn to code as well.

    Cheers,

    Jack

    #111149

    You need to define what the ‘small variable’ is. In this code it is that the lines are all within a percentage of price.

     

    2 users thanked author for this post.
    #111173

    Thank you so much! that is what I am after!

    #111188

    O I just had a thought. Does this scan for stocks that are layered with the MA’s 6, 10 and 20 (top to bottom)? How can I add it so that it doesn’t have to be any order?
    Just that some of the stocks that I have found with the MA’s tight are not coming up on the scan.
    Sorry to be a pain.

    Cheers,

    Jack

    #111241

    I have found a number of stocks that do not come under this scan, but yet they are under the parameters of what the scan is looking for.
    What could be wrong?

    #111251

    The screener does not care what order the lines are in. It just checks the distance between the highest line and the lowest line and compares it to price.

    What % of price are you testing for? I notice that one of your images has a price of 0.234 so if you are looking for a maximum gap of say 0.25% between the highest and the lowest line then they must be just 0.000585 apart or less.

    The other image has a price of 2.950 so they would need to be <= 0.007375 apart.

    Try increasing the percentage setting if it is missing stocks that you think it should be detecting.

    #111258

    Don’t really have a specific % in mind just wanted to get all the stocks that had the MA’s really tight together so I could choose which ones I thought had the best set ups.
    I increased it all the way up to 20% and still didn’t those ones, looks like it’s only finding the larger cap names. Odd.

    #111260

    20% of price would allow the lines to be very far apart indeed!

    1 user thanked author for this post.
    #111273

    Yes, I know I have just tried every different % change and it still wont find these stocks from .00002 up to 100%
    Wonder what it could be? Super strange

    #111276

    Add this indicator to any chart as a separate indicator and you can see what the current percentage is as well as the historical maximum and minimum spread of the highest to lowest average.

     

    #111302

    Okay thank you so much I really appreciate it 🙂

    #111338

    Both codes above added as Log 183 and 184 to here …

    Snippet Link Library

     

    1 user thanked author for this post.
    #111820

    How can I adjust the price range for this scan?
    Cheers

    #111845

    Sorry but I don’t understand what you mean by ‘adjust the price range for this scan’.

    #111857

    Sorry I was half asleep when I wrote that.

    I would like to narrow the range of stocks I am scanning for, stocks that are priced from .05 to 7 dollars or what ever I am wanting to narrow my search.
    Hope that makes sense?
    Thank you in advance,
    Jack

Viewing 15 posts - 1 through 15 (of 17 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login