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,125 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 978,477 views
    2. thumb_up 2,948 thanks given
    3. group 613 followers
    1. forum 2,093 posts
    2. attach_file 615 attachments




 
Search this Thread

PriceActionSwing discussion

  #1541 (permalink)
 odmassion 
new york United states
 
Experience: Intermediate
Platform: Ninja Trader
Trading: Emini Es
Posts: 117 since Aug 2016
Thanks Given: 18
Thanks Received: 11


pepbosch View Post
Thank you @dorschden for the great indicator.
I have been trying to set up a Market Analyzer with no success, Is there any change from NT7 version why you can not get the divergence signals plot from a Market Analyzer using NT8 version?
thank you very much

Will be waiting

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
What broker to use for trading palladium futures
Commodities
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
MC PL editor upgrade
MultiCharts
About a successful futures trader who didnt know anythin …
Psychology and Money Management
 
  #1542 (permalink)
 
Shivaya's Avatar
 Shivaya 
Belfast N.Ireland and Brisbane Australia
 
Experience: Advanced
Platform: NinjaTrader
Broker: Stage 5
Trading: ES
Posts: 128 since Jun 2009
Thanks Given: 84
Thanks Received: 489

Looking for a way for Price swing to show ZN & ZB in bond price and not decimal? So far no joy? Anyone know a way? Thank You.

Reply With Quote
  #1543 (permalink)
 
Botts's Avatar
 Botts 
Penetanguishene, Ontario, Canada
 
Experience: None
Platform: NinjaTrader-8
Broker: NinjaTrader Brokerage, Continuum
Trading: ZB, MES, NQ, YM
Posts: 924 since Jun 2011
Thanks Given: 4,019
Thanks Received: 3,605



Shivaya View Post
Looking for a way for Price swing to show ZN & ZB in bond price and not decimal? So far no joy? Anyone know a way? Thank You.


@FatTails shared this "Code Snippet" with us for NT-7 Indicators.

I have not tried this on NT-8 indicators, but it might help you?

Add this code section to your indicator after OnBarUpdate():


#region Miscellaneous

public override string FormatPriceMarker(double price)
{
double trunc = Math.Truncate(price);
int fraction = Convert.ToInt32(320 * Math.Abs(price - trunc) - 0.0001);
// rounding down for ZF and ZT
string priceMarker = "";
if (TickSize == 0.03125)
{
fraction = fraction/10;
if (fraction < 10)
priceMarker = trunc.ToString() + "'0" + fraction.ToString();
else
priceMarker = trunc.ToString() + "'" + fraction.ToString();
}
else if (TickSize == 0.015625 || TickSize == 0.0078125)
{
if (fraction < 10)
priceMarker = trunc.ToString() + "'00" + fraction.ToString();
else if (fraction < 100)
priceMarker = trunc.ToString() + "'0" + fraction.ToString();
else
priceMarker = trunc.ToString() + "'" + fraction.ToString();
}
else
priceMarker = price.ToString(Gui.Globals.GetTickFormatString(TickSize));
return priceMarker;
}

#endregion

R.I.P. John Bottomley (Botts), 1956-2022.
Please visit this thread for more information.
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #1544 (permalink)
 
Shivaya's Avatar
 Shivaya 
Belfast N.Ireland and Brisbane Australia
 
Experience: Advanced
Platform: NinjaTrader
Broker: Stage 5
Trading: ES
Posts: 128 since Jun 2009
Thanks Given: 84
Thanks Received: 489

Thanks, I actually want this for NT7 but did not get it to compile. Do you have an NT7 version already with code added?

Reply With Quote
  #1545 (permalink)
 
KennyK's Avatar
 KennyK 
Sunshine Coast Queensland Australia
 
Experience: Intermediate
Platform: Ninja Trader, DT7.
Broker: Ninjatrader
Trading: AUD Futures
Posts: 95 since Apr 2013
Thanks Given: 29
Thanks Received: 24

Thanks dorschden very much for the excellent indicator!
I can see you have put a lot of work into it, it's a real credit to you!
Thanks also for your generosity in sharing it with us all.
I have just started to use it. I have tried both and find I like the old version better than the Pro at this stage, for 2 reasons.
1. I don't need all the bells and whistles in the pro and the unless I am mistaken the oscillator works slightly different in both versions, I prefer the result from the older one.

I have a question, or more of a feature request.
What I would find extremely useful, is if the swing line type would change with the change of trend, (based on swings).
I have uploaded an image to display exactly what I am talking about.
The image is from a book by Robert Krausz called WD Gann, Treasure Discovered.

I am able to program basic indicators, but after looking at your code, this is beyond my capability.
Would really appreciate if someone can do this.

Sorry the image is upside down, I tried to fix it but it wouldn't change.
You can see it clear enough though.

Cheers,
Ken.

Attached Thumbnails
Click image for larger version

Name:	Trend.jpg
Views:	268
Size:	576.4 KB
ID:	243389  
Reply With Quote
  #1546 (permalink)
 
Botts's Avatar
 Botts 
Penetanguishene, Ontario, Canada
 
Experience: None
Platform: NinjaTrader-8
Broker: NinjaTrader Brokerage, Continuum
Trading: ZB, MES, NQ, YM
Posts: 924 since Jun 2011
Thanks Given: 4,019
Thanks Received: 3,605


Shivaya View Post
Thanks, I actually want this for NT7 but did not get it to compile. Do you have an NT7 version already with code added?

Sorry, short answer is "No", I don't use "PAS"......

R.I.P. John Bottomley (Botts), 1956-2022.
Please visit this thread for more information.
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #1547 (permalink)
 hoolio 
Melbourne, Australia
 
Experience: Intermediate
Platform: NT8, Multicharts,Sierra
Broker: CQG, IB
Trading: YM,CL,GC,6E,6J
Posts: 97 since Mar 2013
Thanks Given: 85
Thanks Received: 60

I've got another question on PAS in NT8.

Does anyone know how I can export to excel (or similar) a csv that shows the rotation sizes in ticks so I can do some statistical analysis on those rotations ?

I've tried a free indicator called Universal Data Export and it does export the indicator data but for PAS this is not the tick sizes of the rotations but instead seven columns labelled:
DoubleBottom
LowerLow
HigherLow
DoubleTop
LowerHigh
HigherHigh
Gannswwing

These columns are populated with zeros or the fractal low/high which can be a succession of prices until the fractal is achieved.

This would take a lot of cleaning up to get into a nice array of rotation sizes so any suggestions on the best way to do this would be great

Reply With Quote
  #1548 (permalink)
 algoth 
Helsinki, Finland
 
Experience: Beginner
Platform: NinjaTrader
Broker: CQG
Trading: ES
Posts: 125 since Feb 2013
Thanks Given: 307
Thanks Received: 599

I'm getting the following error when trying to install/import the PAS zip file on NT8 (freshly installed). Any idea as to what might cause it?


Quoting 
Import failed. The NinjaScript Archive File may contain duplicate method names that already exist on your PC,
modify a method signature that other scripts were dependent on, or be missing a required file on either your PC or in the import archive.

Apologies if this has been addressed before in the thread, a quick search didn't bring up any relevant posts.

EDIT: I also tried copying the .cs files to NT's indicator folder, but couldn't get them to compile.

Reply With Quote
  #1549 (permalink)
 GeorgeW 
London United Kingdom
 
Experience: Beginner
Platform: NinjaTrader
Trading: 6E
Posts: 44 since Dec 2014
Thanks Given: 4
Thanks Received: 29


algoth View Post
I'm getting the following error when trying to install/import the PAS zip file on NT8 (freshly installed). Any idea as to what might cause it?



Apologies if this has been addressed before in the thread, a quick search didn't bring up any relevant posts.

EDIT: I also tried copying the .cs files to NT's indicator folder, but couldn't get them to compile.

Based on my experience with another indicator, this happens if you have another indicator in the indicators folder with the same name in the following section:
public class PriceActionSwing: Indicator
If that is the case, you will either need to exclude one of them from compilation or rename the bold part of one of them - e.g. PriceActionSwing02 would be sufficient.

Reply With Quote
Thanked by:
  #1550 (permalink)
burcksj
NY, New York
 
Posts: 2 since Jan 2012
Thanks Given: 0
Thanks Received: 1


Thank you @dorschden for your great indicator.
Is possible to add Volume Delta Values to the Swings in this indicator?
I think that this would be a valuable added feature for this indicator.

Thank you.

Reply With Quote
Thanked by:




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