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,953 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

  #1561 (permalink)
 BucketTrader 
Daniel Island
 
Experience: Beginner
Platform: NT
Trading: es, nq, cl
Posts: 3 since Jan 2018
Thanks Given: 0
Thanks Received: 1

I am using PAS for NT8 and cannot figure out how to activate the fib feature. I've searched this thread from the time the NT8 version was made available with no luck. Is this feature available in this version. Will someone please lead me in the right direction.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Cheap historycal L1 data for stocks
Stocks and ETFs
Quantum physics & Trading dynamics
The Elite Circle
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #1562 (permalink)
 nttradert 
London/United Kingdom
 
Experience: Intermediate
Platform: NinjaTrader, Omnitrader
Trading: Emini YM
Posts: 16 since Jun 2017
Thanks Given: 22
Thanks Received: 39


nttradert View Post
Does anyone have a sample indicator and/or strategy that accesses the PAS indicator/s for NT8?

I have tried referencing the sample strategy written earlier in this forum, however this appears to be written for NT7 and I have been unable to get the sample code to work with NT8 and have not managed to find an answer in the remaining pages since an NT8 version of the indicator was published.

There seems to be a lot of random comments/suggestions on the forum, but I have seen nothing definitive so if anyone does have a simple sample for NT8, either an indicator or a strategy, it would make an unproductive, swearword generating (I thought learning ninjascript would teach me a new language, not new ways to say bad things) weekend much more tolerable.

tom

For anyone who has been bashing their heads trying to make this work with NT8 and has struggled to find anything that works on the forum, here is some sample code that uses an instantiated version of PAS and prints some values (I could not have done this without the excellent help and advice from reach4thelasers)

Included is the the info/code to access PAS, PASOsc as well as pjsCumdelta (be aware that the pjsCumdelta requires you to install that indicator - it was just something that I wanted values from, not something that you need to extract info from PAS) - also the NT8 Swing indicator (again, not needed for PAS, but something I wanted info out of)

The code is split, but the section where it fits under is included, so you can't just copy and paste - you would have to paste into the correct section. Also, you need to install PAS if you want to access it.

"...

Under declarations section
using PriceActionSwing.Base;

public class SUv2 : Indicator
{
private NinjaTrader.NinjaScript.Indicators.PriceActionSwing.PriceActionSwing PriceActionSwing1;
private NinjaTrader.NinjaScript.Indicators.PriceActionSwing.PriceActionSwingOscillator PriceActionSwingOscillator1;
private DivergenceMode divergenceMode = DivergenceMode.pjsCumDelta;

private SimpleFont textFont = new SimpleFont("Courier", 15);
private pjsCumDelta CumDelta;
private int param1 = 20;
private int param2 = 20;
private int param3 = 20;

protected override void OnStateChange()

if (State == State.SetDefaults)
{
}
else if (State == State.Configure)
{
CumDelta = pjsCumDelta(param1, param2, param3, true,true,true,true,false,true,true, 0 , false,false, false, false, false);
}

if (State == State.DataLoaded)
{

Swing1 = Swing(Close, SwingStrength);
PriceActionSwing1 = PriceActionSwing(Close, SwingStyle.Standard, 7, 20, false, SwingLengthStyle.Ticks,
SwingDurationStyle.Bars, true,false, false, SwingTimeStyle.False,
SwingVolumeStyle.Absolute, VisualizationStyle.Dots_ZigZag, textFont, 15, 30, 45,
60, 75, 90,NinjaTrader.Gui.DashStyleHelper.Solid, 3, true, true);
PriceActionSwingOscillator1 = PriceActionSwingOscillator(Close, SwingStyle.Standard, 7, 20, false,
Show.Volume, true, true, true);
}
protected override void OnBarUpdate()
{

// Checks to ensure there are enough bars before beginning
if (CurrentBars[BarsInProgress] <= 1
|| CurrentBars[BarsInProgress] < 20)
return;

Print("Time: " + Time[0] + " |Number: " + CurrentBar + " | DB: " + PriceActionSwing1.DoubleBottom[0] +
" | DT: " + PriceActionSwing1.DoubleTop[0] + " | HH: " + PriceActionSwing1.HigherHigh[0] +
" | HL: " + PriceActionSwing1.LowerHigh[0] + " | LL: " + PriceActionSwing1.LowerLow[0] +
" | LH: " + PriceActionSwing1.LowerHigh[0] + " | VH: " + PriceActionSwingOscillator1.VHigh[0] +
" | VL: " + PriceActionSwingOscillator1.VLow[0] +
" | pjs0Bal: " + CumDelta.Plot0balance[0] +
" | pjs3BBal: " + CumDelta.Plot3barbalance[0]);
}

..."


Finally, I am not a programmer (think C# for dummies and then dumb it down) so I am sure there are better ways of doing the above and I welcome anyone to suggest a better way of doing the above (that actually compiles), but this should get you going faster than the 2 months I have been screaming at my screen.

tom

Reply With Quote
  #1563 (permalink)
 vickisb 
Sarasota FL
 
Experience: Intermediate
Platform: Ninja Trader
Trading: ES
Posts: 59 since Feb 2017
Thanks Given: 36
Thanks Received: 22


Could someone please help?

First, in an NT7 strategy, how would I write a condition to check that a) the oscillator is green/positive and b) has just turned green? I tried VHigh>0 (PriceActionSwingOscillator(20, 7, PriceActionSwing.Base.SwingStyle.Standard, false).VHigh[0] > 0) and got an error.

Second, is there an explanation somewhere of all of this, especially how the oscillator changes? Watching real-time, for instance if it is green, before it turns permanently red I see red bars or a red line superimposed on the green bars. Is that VLowCurrent, and what causes the histogram to finally flip permanently red in a couple of bars?

Reply With Quote
  #1564 (permalink)
 
wilson619's Avatar
 wilson619 
San Diego, CA
 
Experience: None
Platform: NT8
Trading: Futures
Posts: 83 since Jun 2010
Thanks Given: 208
Thanks Received: 71

Does anyone know if there is a version of PAS based on the highest/lowest bar close rather than the high/low of a bar? If not, can anyone suggest a rather simple code change that I can modify to accomplish this? Thanks.

Wilson

Reply With Quote
  #1565 (permalink)
 SuperDriveGuy 
Switzerland
 
Experience: Beginner
Platform: NinjaTrader
Broker: AMP, FXCM
Trading: FDXM, YM
Posts: 8 since Nov 2009
Thanks Given: 38
Thanks Received: 4


wilson619 View Post
Does anyone know if there is a version of PAS based on the highest/lowest bar close rather than the high/low of a bar? If not, can anyone suggest a rather simple code change that I can modify to accomplish this? Thanks.

Wilson

Hi Wilson,
There is a tickbox in the parameters to use close values. See the attached image.

Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	183
Size:	46.1 KB
ID:	246897  
Reply With Quote
Thanked by:
  #1566 (permalink)
 
wilson619's Avatar
 wilson619 
San Diego, CA
 
Experience: None
Platform: NT8
Trading: Futures
Posts: 83 since Jun 2010
Thanks Given: 208
Thanks Received: 71

With so many options now and my CSS disease, I couldn't see it. Thanks Guy!

Wilson
(CSS disease - can't see sh_t)

Reply With Quote
  #1567 (permalink)
 
fesx's Avatar
 fesx 
Georgia
 
Experience: Intermediate
Platform: Ninja
Broker: AMP/CQG
Trading: ZN, ES, FGBL, FESX
Posts: 133 since Jul 2009
Thanks Given: 874
Thanks Received: 113

I tried downloading the following indicator but get the following error. Is there a PriceActionSwing utility file that I need to download? or if someone can point me in the right direction of the latest paint bar for the PriceActionSwing NT7 would be greatly appreciated.

Attached Thumbnails
Click image for larger version

Name:	PriceActionSwingTrendVS_error.png
Views:	176
Size:	65.6 KB
ID:	246968   Click image for larger version

Name:	PriceAction_Indicators.png
Views:	153
Size:	15.1 KB
ID:	246969  
Attached Files
Elite Membership required to download: PriceActionSwingTrendV2.cs
Reply With Quote
  #1568 (permalink)
 nttradert 
London/United Kingdom
 
Experience: Intermediate
Platform: NinjaTrader, Omnitrader
Trading: Emini YM
Posts: 16 since Jun 2017
Thanks Given: 22
Thanks Received: 39


fesx View Post
I tried downloading the following indicator but get the following error. Is there a PriceActionSwing utility file that I need to download? or if someone can point me in the right direction of the latest paint bar for the PriceActionSwing NT7 would be greatly appreciated.

Link available for download on first page of this forum or search the downloads section.

Reply With Quote
Thanked by:
  #1569 (permalink)
 
fesx's Avatar
 fesx 
Georgia
 
Experience: Intermediate
Platform: Ninja
Broker: AMP/CQG
Trading: ZN, ES, FGBL, FESX
Posts: 133 since Jul 2009
Thanks Given: 874
Thanks Received: 113


nttradert View Post
Link available for download on first page of this forum or search the downloads section.

I have looked over the first page again...no links for the PriceActionSwingTrend indicator and as you can see I have an indicator for the mentioned but I get compiling errors where its asking for a utility to reference.

Reply With Quote
  #1570 (permalink)
 nttradert 
London/United Kingdom
 
Experience: Intermediate
Platform: NinjaTrader, Omnitrader
Trading: Emini YM
Posts: 16 since Jun 2017
Thanks Given: 22
Thanks Received: 39



fesx View Post
I have looked over the first page again...no links for the PriceActionSwingTrend indicator and as you can see I have an indicator for the mentioned but I get compiling errors where its asking for a utility to reference.



Above is a link to the indicator "package"



5th line down. That link takes you to the NT7 version of the indicator.

What you showed was a *.cs file. I would think that you need the whole indicator (which that is not).

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