NexusFi: Find Your Edge


Home Menu

 





Market Analyzer - How to screen for SMA moving up


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 3 posts (4 thanks)
    2. looks_two tre436 with 3 posts (0 thanks)
    3. looks_3 forrestang with 2 posts (0 thanks)
    4. looks_4 ShruggedAtlas with 2 posts (0 thanks)
    1. trending_up 10,988 views
    2. thumb_up 4 thanks given
    3. group 1 followers
    1. forum 10 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
ShruggedAtlas's Avatar
 ShruggedAtlas 
Bloomington
 
Experience: Beginner
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Stocks
Posts: 191 since Apr 2011
Thanks Given: 78
Thanks Received: 75

Does anyone know if it is possible to set the market analyzer to screen for sma moving up. The only way to filter/alert is to set a specific static value. I want an alert to fire if SMA is greater than the SMA of the previous bar. Do I have to create some sort of Boolean indicator to use in the Analyzer or is there another alternative?


"I've missed more than 9,000 shots in my career. I've lost almost 300 games. 26 times, I've been trusted to take the game-winning shot and missed. I've failed over and over and over again in my life. And that is why I succeed."
- Michael Jordan, 5-Time NBA Most Valuable Player, 6-Time NBA Champion
Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
CFTC Rewrites the Rulebook -- Kalshi Cracks $1B Non-Spor …
Prediction Markets & Event Contracts
April FOMC Minutes: Most Divided Fed Since 1992 -- Many …
Traders Hideout
$12M Ceasefire Contract Goes Disputed as Bandar Abbas St …
Prediction Markets & Event Contracts
Probability Collapse: Bitcoin $150k Craters from 15% to …
Prediction Markets & Event Contracts
Asia Equities Crash Overnight -- Nikkei -5.2%, KOSPI -6. …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Hello Im new here
5 thanks
  #2 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,557



Mike




We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on X Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114



ShruggedAtlas View Post
Does anyone know if it is possible to set the market analyzer to screen for sma moving up. The only way to filter/alert is to set a specific static value. I want an alert to fire if SMA is greater than the SMA of the previous bar. Do I have to create some sort of Boolean indicator to use in the Analyzer or is there another alternative?

Let us have a look at an 8-period SMA. Your condition for the SMA moving up would be
 
Code
SMA(8)[0] - SMA(8)[1] > 0
Both expressions are calculated as an average price over 8 consecutive closes, so the first condition is equivalent to
 
Code
Close[0] - Close[8] = Momentum(8)[0] > 0
You will certainly be able to enter the second condition.

I have now tried to enter the Momentum as a condition, but it did not accept the period of 8, but stays with the default period of 14. Also it caused data throttling on my data provider, so I am not able to use it.

Personally, I have never used the market analyzer, because it just caused crashes and destabilized Ninjatrader 6.5,
and even with NT 7.0 I do not trust in the capabilities of NinjaTrader handling larger data streams.


Reply With Quote
  #4 (permalink)
 
ShruggedAtlas's Avatar
 ShruggedAtlas 
Bloomington
 
Experience: Beginner
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Stocks
Posts: 191 since Apr 2011
Thanks Given: 78
Thanks Received: 75

Thanks Fat,

I'm discovering that the Market Analyzer is indeed a dawg! I typically scan at least 500 stocks at a time and since my formulas slow the software down to a crawl it has become virtually useless to me. I have actually stopped using it and given up on NT altogether. It's sad really, it has everything I need except that the one thing that is most essential to me...the market analyzer...comes to it's knees when I ask it to filter according to my conditions. Looking at multicharts now but not entirely impressed with its screener either. Thanks again for your help!


"I've missed more than 9,000 shots in my career. I've lost almost 300 games. 26 times, I've been trusted to take the game-winning shot and missed. I've failed over and over and over again in my life. And that is why I succeed."
- Michael Jordan, 5-Time NBA Most Valuable Player, 6-Time NBA Champion
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #5 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114


ShruggedAtlas View Post
Thanks Fat,

I'm discovering that the Market Analyzer is indeed a dawg! I typically scan at least 500 stocks at a time and since my formulas slow the software down to a crawl it has become virtually useless to me. I have actually stopped using it and given up on NT altogether. It's sad really, it has everything I need except that the one thing that is most essential to me...the market analyzer...comes to it's knees when I ask it to filter according to my conditions. Looking at multicharts now but not entirely impressed with its screener either. Thanks again for your help!

Processing 500 stocks in real-time needs a lot of CPU. You may want to subscribe to a service, where the actual scanning is being done on a larger machine, and you only collect the results of the scan. Maybe something like the tool from Trade-Ideas can solve your problem. I have never used it though.


Reply With Quote
  #6 (permalink)
 tre436 
london, UK
 
Experience: Beginner
Platform: NT7
Trading: TR909
Posts: 57 since Aug 2010
Thanks Given: 41
Thanks Received: 36

It almost feels like market analyser is a bit off an afterthought for NT especially when the majority of their customers are futures traders and seldom require tracking large number of symbols.

I 2nd offloading scanning to a dedicated service, I've used Trade ideas extensively as a scanner, just don't be overwhelmed by all the options available to you


Reply With Quote
  #7 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,060

Is anyone still needing help with this?

For Market Analyzer to work, you have to pass it a study that has an exposed variable or data series to reference. Once you have that you can have it alert you however you want.


Reply With Quote
  #8 (permalink)
 tre436 
london, UK
 
Experience: Beginner
Platform: NT7
Trading: TR909
Posts: 57 since Aug 2010
Thanks Given: 41
Thanks Received: 36

hi forest

I've only just started looking at the MA in NT based on this enquiry. one thing i used to use when I had IQfeed was their DDE connection into excel, mainly to look at a stocks distance to vwap.

How would I create something in the MA that shows distance to vwap, vwap is available as standard in the MA but not sure how to "pass it a study that has an exposed variable"

thanks


Reply With Quote
  #9 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,060


gktk View Post

How would I create something in the MA that shows distance to vwap, vwap is available as standard in the MA but not sure how to "pass it a study that has an exposed variable"

thanks

Well, you would need to pick a study with the VWAP in it. So first, pick whatever indicator you want that has a VWAP in it. Then you would need to check if there is an exposed variable with the value of VWAP in it. If so, you can output that value directly to MA.

If you want something a bit more sophisticated, that will actually show you the 'distance,' current price is from VWAP, a simple study could be written that displays the subtracts and finds the distance from VWAP to last price, then store that value in an exposed dataseries and output that to MA.

But at any rate, start first by posting the VWAP you want to use, and we'll go from there.


Reply With Quote
  #10 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114



gktk View Post
hi forest

I've only just started looking at the MA in NT based on this enquiry. one thing i used to use when I had IQfeed was their DDE connection into excel, mainly to look at a stocks distance to vwap.

How would I create something in the MA that shows distance to vwap, vwap is available as standard in the MA but not sure how to "pass it a study that has an exposed variable"

thanks

Do you want to know the stocks distance from VWAP in absolute terms or in numbers of standard deviations?

The VWAP calculation is somewhat complex, so if you want to use this for several stocks in the market analyzer, you need a VWAP which creates a CPU load as small as possible. You could for example code a small indicator that calls the anaCurrentDayVWAP indicator in Variance_Distance mode and use it with a 1 minute resolution and CalculateOnBarClose set to "true". This will recalculate the VWAP once per minute and you are on the safe side, if you want to monitor a selection of stocks. You can also use a higher resolution, for example 50 tick bars or whatsoever, but stay in mode CalculateOnBarClose = true to avoid recalculation with each incoming tick.


Reply With Quote




Last Updated on October 17, 2011


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts