PriceActionSwing discussion (Page 18) - NinjaTrader | futures.io
futures.io futures trading
 

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader


PriceActionSwing discussion
Started:November 23rd, 2009 (11:23 AM) by dorschden Views / Replies:391,595 / 1,343
Last Reply:December 1st, 2016 (04:53 AM) Attachments:423

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.


You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike
     

Reply
 423  
 
Thread Tools Search this Thread

PriceActionSwing discussion

Old March 22nd, 2011, 01:14 PM   #171 (permalink)
Elite Member
Germany (Meck-Pomm)
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 107 since Jun 2009
Thanks: 50 given, 934 received


Silvester17 View Post
the swing trend might be a very good "filter". I tried to implement a paint bar study instead of the lines on the bottom of the chart. needless to say I didn't get very far. any help would be very much appreciated.

You just have to add the following bold lines to the PriceActionSwingTrend indicator (starts in line 77):
 
Code
            
if (showTrend)
{
  int trend = Convert.ToInt32(swingTrend[0]);
  switch (trend)
  {
  case -1:
    BarColor = Color.Red;
    DownTrend.Set(1);
    break;
  case 1:
    BarColor = Color.Green;
    UpTrend.Set(1);
    break;
  default:
    BarColor = Color.Gray;
    NoWhere.Set(1);
    break;
   }
 }
dorschden


Last edited by dorschden; March 22nd, 2011 at 02:16 PM. Reason: NoWhere.Set and DownTrend.Set was wrong
Reply With Quote
     
The following 2 users say Thank You to dorschden for this post:
     

Old March 22nd, 2011, 01:21 PM   #172 (permalink)
Elite Member
Austin, Tx.
 
Futures Experience: Intermediate
Platform: Ninja Trader, Metatrader
 
Posts: 4 since Sep 2010
Thanks: 1 given, 1 received

Applicable to NT 7.3

Is the new version importable into NT 7.3?

Tom

Reply With Quote
     

Old March 22nd, 2011, 01:27 PM   #173 (permalink)
Elite Member
Daphne
 
Futures Experience: Intermediate
Platform: TradeStation, TOS, Infinity, NT7
Broker/Data: As above
Favorite Futures: ES, 6E, 6B, 6J
 
Posts: 124 since Apr 2010
Thanks: 198 given, 66 received

Import failed


Any idea what I've done wrong? Import failed so I extracted the files to the proper folder, then tried to compile, and got this >> 2011-03-22_1125 - GregHohman's library

Reply With Quote
     

Old March 22nd, 2011, 01:33 PM   #174 (permalink)
Elite Member
Germany (Meck-Pomm)
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 107 since Jun 2009
Thanks: 50 given, 934 received


Skylab View Post
Is the new version importable into NT 7.3?

I think so, but I only have version 7.0.1000.4 and Windows 7 with SP 1, so I can't test it with the previous version.


ghman101 View Post
Any idea what I've done wrong? Import failed so I extracted the files to the proper folder, then tried to compile, and got this >> 2011-03-22_1125 - GregHohman's library

You have to delete the PriceActionSwingRelation indicator. I renamed it to PriceActionSwingTrend.

Reply With Quote
     
The following user says Thank You to dorschden for this post:
     

Old March 22nd, 2011, 01:45 PM   #175 (permalink)
Elite Member
Philly, Pa
 
Futures Experience: Master
Platform: NinjaTrader
Favorite Futures: ES, ZB
 
tigertrader's Avatar
 
Posts: 5,870 since Jul 2010
Thanks: 6,243 given, 31,000 received

Futures Edge on FIO

dorschden View Post
I think so, but I only have version 7.0.1000.4 and Windows 7 with SP 1, so I can't test it with the previous version.



You have to delete the PriceActionSwingRelation indicator. I renamed it to PriceActionSwingTrend.


Thanks, that did the trick!!!

Reply With Quote
     

Old March 22nd, 2011, 01:46 PM   #176 (permalink)
Market Wizard
Columbus, OH
 
Futures Experience: None
Platform: NT-9G, TOS
Favorite Futures: ES
 
Silvester17's Avatar
 
Posts: 3,228 since Aug 2009
Thanks: 4,421 given, 9,881 received


dorschden View Post
You just have to add the following bold lines to the PriceActionSwingTrend indicator (starts in line 77):
 
Code
            
if (showTrend)
{
  int trend = Convert.ToInt32(swingTrend[0]);
  switch (trend)
  {
  case -1:
    BarColor = Color.Red;
    DownTrend.Set(1);
    break;
  case 1:
    BarColor = Color.Green;
    UpTrend.Set(1);
    break;
  default:
    BarColor = Color.Gray;
    NoWhere.Set(0);
    break;
   }
 }
dorschden

wow, that was fast. working perfectly now. thank you very much.

Attached Thumbnails
PriceActionSwing discussion-6e-06-11-5-min-3_22_2011.jpg  

Last edited by Silvester17; March 22nd, 2011 at 02:13 PM.
Reply With Quote
     

Old March 22nd, 2011, 02:24 PM   #177 (permalink)
Elite Member
Germany (Meck-Pomm)
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 107 since Jun 2009
Thanks: 50 given, 934 received


Silvester17 View Post
wow, that was fast. working perfectly now. thank you very much.

Maybe you can increase the paint bar study, if you change the bar color when a trend ends. Because often the end of a trend will result in the opposite trend. You skip the no trend part.

 
Code
// add a variable "int oldTrend" to the variable region

            if (showTrend)
            {
                int trend = Convert.ToInt32(swingTrend[0]);
                switch (trend)
                {
                    case -1:
                        DownTrend.Set(1);
                        oldTrend = -1;
                        BarColor = Color.Red;
                        break;
                    case 1:
                        BarColor = Color.Green;
                        oldTrend = 1;
                        UpTrend.Set(1);
                        break;
                    default:
                        NoWhere.Set(1);
                        if (oldTrend == 1)
                            BarColor = Color.Red;
                        else if (oldTrend == -1)
                            BarColor = Color.Green;
                        break;
                }
            }

Reply With Quote
     
The following 2 users say Thank You to dorschden for this post:
     

Old March 22nd, 2011, 02:28 PM   #178 (permalink)
Market Wizard
Columbus, OH
 
Futures Experience: None
Platform: NT-9G, TOS
Favorite Futures: ES
 
Silvester17's Avatar
 
Posts: 3,228 since Aug 2009
Thanks: 4,421 given, 9,881 received


dorschden View Post
Maybe you can increase the paint bar study, if you change the bar color when a trend ends. Because often the end of a trend will result in the opposite trend. You skip the no trend part.

 
Code
// add a variable "int oldTrend" to the variable region

            if (showTrend)
            {
                int trend = Convert.ToInt32(swingTrend[0]);
                switch (trend)
                {
                    case -1:
                        DownTrend.Set(1);
                        oldTrend = -1;
                        BarColor = Color.Red;
                        break;
                    case 1:
                        BarColor = Color.Green;
                        oldTrend = 1;
                        UpTrend.Set(1);
                        break;
                    default:
                        NoWhere.Set(1);
                        if (oldTrend == 1)
                            BarColor = Color.Red;
                        else if (oldTrend == -1)
                            BarColor = Color.Green;
                        break;
                }
            }

yes agree, that's a good idea. thanks again and really appreciate your help.

Reply With Quote
     

Old March 22nd, 2011, 02:45 PM   #179 (permalink)
Elite Member
Rechovot
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: CQG
Favorite Futures: Index,Currency and Energy futures
 
perryg's Avatar
 
Posts: 1,701 since Jan 2010
Thanks: 501 given, 6,241 received


Silvester17 View Post
wow, that was fast. working perfectly now. thank you very much.

Can you post your version with the colored bars, as I like the way you have colored them.

Reply With Quote
     

Old March 22nd, 2011, 03:06 PM   #180 (permalink)
Elite Member
UK London
 
Futures Experience: None
Platform: NT and XTrader
Favorite Futures: Piano
 
Posts: 1,209 since Sep 2009
Thanks: 1,296 given, 1,452 received


Hi and thx.dorschden

I have an older version of your price swing indicator.
I'm using it on ZigZag but only for the FibRetracement.
You say you have taken ZigZag out of latest version of post#167

Q1: am I correct that the latest version will display the same FibRetracement lines
but just also includes all the ABC information as one display ?

Q1a: if so then I can transparent out the displays I don't want to leave just the
FibRetracement which will be the same FibRetracement as per ZigZag of older version?


Many...many..................................................many thx

Reply With Quote
     

Reply



futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > PriceActionSwing discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)
 

NinjaTrader 8: Features and Enhancements, Tips and Tricks

Dec 6
 

Al Brooks: Stop Losing when a Good Trade goes Bad, Correcting Mistakes

Elite only
 

Trading Technologies: Algo Design Lab hands-on

Dec 13
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Murray Math Discussion? jwhtrades Traders Hideout 5 July 27th, 2011 10:06 PM
Looking for general discussion thread. jctrader Traders Hideout 2 May 2nd, 2011 03:23 PM
PriceActionSwing jeff92887 NinjaTrader 2 March 1st, 2011 07:15 AM


All times are GMT -4. The time now is 09:39 AM.

Copyright © 2016 by futures.io. 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.
 
no new posts

Page generated 2016-12-03 in 0.12 seconds with 20 queries on phoenix via your IP 54.197.72.5