NexusFi: Find Your Edge


Home Menu

 





newbie stupid question!!!!


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one bugsbunny with 14 posts (2 thanks)
    2. looks_two Fat Tails with 6 posts (5 thanks)
    3. looks_3 gregid with 3 posts (4 thanks)
    4. looks_4 fluxsmith with 3 posts (4 thanks)
      Best Posters
    1. looks_one sam028 with 2 thanks per post
    2. looks_two gregid with 1.3 thanks per post
    3. looks_3 fluxsmith with 1.3 thanks per post
    4. looks_4 Fat Tails with 0.8 thanks per post
    1. trending_up 7,473 views
    2. thumb_up 19 thanks given
    3. group 5 followers
    1. forum 29 posts
    2. attach_file 4 attachments




 
Search this Thread

newbie stupid question!!!!

  #11 (permalink)
 
gregid's Avatar
 gregid 
Wrocław, Poland
 
Experience: Intermediate
Platform: NinjaTrader, Racket
Trading: Ockham's razor
Posts: 650 since Aug 2009
Thanks Given: 320
Thanks Received: 623

If I understand correctly what you want to achieve, you could do something along these lines (pseudo code):

EMAopposite(400) = EMA(2)-(EMA(400)-EMA(2))

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Quant vue
Trading Reviews and Vendors
How to apply profiles
Traders Hideout
NexusFi Journal Challenge - May 2024
Feedback and Announcements
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
What is Markets Chat (markets.chat) real-time trading ro …
76 thanks
Spoo-nalysis ES e-mini futures S&P 500
55 thanks
Just another trading journal: PA, Wyckoff & Trends
37 thanks
Bigger Wins or Fewer Losses?
24 thanks
The Program
17 thanks
  #12 (permalink)
 bugsbunny 
toronto,ontaio
 
Posts: 973 since May 2010

gregid.. are u pullin my leg or that really is a solution, as i dont know code language.

Thanks

Reply With Quote
  #13 (permalink)
 
gregid's Avatar
 gregid 
Wrocław, Poland
 
Experience: Intermediate
Platform: NinjaTrader, Racket
Trading: Ockham's razor
Posts: 650 since Aug 2009
Thanks Given: 320
Thanks Received: 623


Think of it this way (example):
X (long EMA (400)) = 70
Y (short EMA (2): approximation of the price level) = 50

Z (mirror image of X with Y being the mirror) = Y - (X - Y) = 50 - (70 - 50) = 50 - 20 = 30


This way:

X - Y = Y - X
(the distance from price of EMA and opposite of EMA is the same)

And I believe that's what you asked for...

Reply With Quote
Thanked by:
  #14 (permalink)
 bugsbunny 
toronto,ontaio
 
Posts: 973 since May 2010

thanks gregid, so i did have a valid question afterall, so will it make a difference if there was an indicator that did this with reasonable results, or its not worth the effort....

thanks gregid

Reply With Quote
  #15 (permalink)
 
gregid's Avatar
 gregid 
Wrocław, Poland
 
Experience: Intermediate
Platform: NinjaTrader, Racket
Trading: Ockham's razor
Posts: 650 since Aug 2009
Thanks Given: 320
Thanks Received: 623

I can't say if it is worth when it comes to utility of this indicator but you can't lose on learning something new/experimenting

I attached dirty version of your indicator - this version mirrors it from approximation of the price level but you may want to experiment with other similar ideas - like mirroring it from longer EMA.

Have some fun with it!

Attached Files
Elite Membership required to download: mirrorEMA.zip
Reply With Quote
Thanked by:
  #16 (permalink)
 bugsbunny 
toronto,ontaio
 
Posts: 973 since May 2010

well gregid, great job, im amazed with the kinda fast coding u did, at least now i know that besides the humor part u did take me seriously & just created something amazing, it will probably take some sort of smoothing but hey thanks for being on the same page with me.
I appreciate your hard work maybe now that such an indicator exists, now someone can tweak it to get results, i hope it helps someone in trading, the mirror ema kinda looks like feltons stochastics...

Thanks

Reply With Quote
  #17 (permalink)
 bugsbunny 
toronto,ontaio
 
Posts: 973 since May 2010

is it possible that the ema is reversed, say a 400 moving average is below price and is forming a curve can it be replicated that there is one forming above the price in the same pattern i mean no zig zag same kinda curve but on the upper side or opposite, so whatever the outcome of the original moving average is i want it to mirror in the opposite direction just like a upper or lower band but replicates the exact movement of the original moving average.
gregid did make an indi that kinda roughly matches my idea!!!!

Thanks

Reply With Quote
  #18 (permalink)
 
Trader.Jon's Avatar
 Trader.Jon 
Near the BEuTiFULL Horse Shoe
 
Experience: Beginner
Platform: NinjaTrader
Broker: MBTrading Dukascopy ZenFire
Trading: $EURUSD when it is trending
Posts: 473 since Jul 2009
Thanks Given: 401
Thanks Received: 184

Maybe this thread will help out a little bit ...


TJ

Reply With Quote
Thanked by:
  #19 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103


bugsbunny View Post
is it possible that the ema is reversed, say a 400 moving average is below price and is forming a curve can it be replicated that there is one forming above the price in the same pattern i mean no zig zag same kinda curve but on the upper side or opposite, so whatever the outcome of the original moving average is i want it to mirror in the opposite direction just like a upper or lower band but replicates the exact movement of the original moving average.
gregid did make an indi that kinda roughly matches my idea!!!!

Thanks

To achieve what you look for, you would have to mirror the curve at a straight line. The only such line that could be used is a regression line. The problem with any regression line is that it repaints.

This means that the mirrored moving average would be a repainting average as well. Repainting indicators are not very useful in my opinion, as they change their appearance after the fact. So in summary, this could be coded, will look nice and be more or less useless.

I feel that you are looking for a kind of channel, one line above price and the other line below price. The better options for this would include

- Bollinger Bands, based on a moving average and standard deviation
- Keltner Channels, based on a moving average and average true range
- Fixed Envelope Channels, based on a moving average and a fixed percentage of the last price
- Regression Channels, based on a regression line and standard deviation
- The Supertrend, based on a moving median and average true range

All those are valid tools for professional traders.

Reply With Quote
Thanked by:
  #20 (permalink)
 bugsbunny 
toronto,ontaio
 
Posts: 973 since May 2010


thanks traderjon & fattails.
Vortex is kinda the indi that would resemble my idea all i want it to be on the price & be more smooth like the higher moving averages, the whole idea behind all this is i wanna experiment if price really bounces off the mirrored moving average. see the keltner channel & bollinger bands are fine but they move with price & i am talking opposite of price, say if moving average is moving down while being on top of price in a downtrend, i want the mirrored moving average at the bottom of the price go up & eventually cross & go in oppostie directions again if price continued that way. The key is distance has to be the same from price. if moving average is on top with a 2 point difference then the mirrored moving average would be at the bottom at a distance of 2 points. looking like the vortex indi repelling each other. I hope im able to explain myself.

I really do appreciate your time & effort in this

Thanks

Reply With Quote




Last Updated on February 10, 2011


© 2024 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 - Privacy Policy - Downloads - Top
no new posts