NexusFi: Find Your Edge


Home Menu

 





PriceActionSwing discussion


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Silvester17 with 177 posts (570 thanks)
    2. looks_two dorschden with 99 posts (1,124 thanks)
    3. looks_3 Big Mike with 52 posts (90 thanks)
    4. looks_4 jmont1 with 51 posts (23 thanks)
      Best Posters
    1. looks_one dorschden with 11.4 thanks per post
    2. looks_two Silvester17 with 3.2 thanks per post
    3. looks_3 Big Mike with 1.7 thanks per post
    4. looks_4 sudhirc with 1.7 thanks per post
    1. trending_up 965,025 views
    2. thumb_up 2,947 thanks given
    3. group 613 followers
    1. forum 2,093 posts
    2. attach_file 615 attachments




 
Search this Thread

PriceActionSwing discussion

  #171 (permalink)
 dorschden 
Germany
 
Experience: Master
Platform: NinjaTrader
Posts: 112 since Jun 2009
Thanks Given: 59
Thanks Received: 1,143


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

Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Deepmoney LLM
Elite Quantitative GenAI/LLM
Exit Strategy
NinjaTrader
Better Renko Gaps
The Elite Circle
Are there any eval firms that allow you to sink to your …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
Battlestations: Show us your trading desks!
26 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
The Program
18 thanks
  #172 (permalink)
 Skylab 
Austin, Tx.
 
Experience: Intermediate
Platform: Ninja Trader, Metatrader
Posts: 4 since Sep 2010
Thanks Given: 1
Thanks Received: 1

Is the new version importable into NT 7.3?

Tom

Reply With Quote
  #173 (permalink)
 ghman101 
Daphne
 
Experience: Intermediate
Platform: TradeStation, TOS, Infinity, NT7
Broker: As above
Trading: ES, 6E, 6B, 6J
Posts: 144 since Apr 2010
Thanks Given: 224
Thanks Received: 84


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
  #174 (permalink)
 dorschden 
Germany
 
Experience: Master
Platform: NinjaTrader
Posts: 112 since Jun 2009
Thanks Given: 59
Thanks Received: 1,143


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.

Started this thread Reply With Quote
Thanked by:
  #175 (permalink)
 
tigertrader's Avatar
 tigertrader 
Philly, Pa
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader
Trading: ES, ZB
Posts: 6,482 since Jul 2010
Thanks Given: 6,662
Thanks Received: 36,257


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

Follow me on Twitter Reply With Quote
  #176 (permalink)
 
Silvester17's Avatar
 Silvester17 
Columbus, OH
Market Wizard
 
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,603 since Aug 2009
Thanks Given: 5,139
Thanks Received: 11,527


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
Click image for larger version

Name:	6E 06-11 (5 Min)  3_22_2011.jpg
Views:	690
Size:	73.7 KB
ID:	34571  
Reply With Quote
  #177 (permalink)
 dorschden 
Germany
 
Experience: Master
Platform: NinjaTrader
Posts: 112 since Jun 2009
Thanks Given: 59
Thanks Received: 1,143


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;
                }
            }

Started this thread Reply With Quote
Thanked by:
  #178 (permalink)
 
Silvester17's Avatar
 Silvester17 
Columbus, OH
Market Wizard
 
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,603 since Aug 2009
Thanks Given: 5,139
Thanks Received: 11,527


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
  #179 (permalink)
 
perryg's Avatar
 perryg 
Rechovot
 
Experience: Advanced
Platform: NinjaTrader
Broker: CQG
Trading: Index,Currency and Energy futures
Posts: 1,644 since Jan 2010
Thanks Given: 508
Thanks Received: 6,288


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
  #180 (permalink)
 zt379 
UK London
 
Platform: NT
Posts: 2,031 since Sep 2009
Thanks Given: 1,544
Thanks Received: 1,924


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




Last Updated on January 7, 2024


© 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