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

  #1391 (permalink)
Sakk
Melbourne
 
Posts: 7 since Apr 2014
Thanks Given: 0
Thanks Received: 1


jmont1 View Post
@Sakk, perhaps if you state your simple modification someone will respond.

Hi jmont1,

I'm using NT7. Using the Price Action Swing Pro indicator allows to select under "Features" 21.Naked Swing Lines to True or False. When True it plots a "Ray Line" at the HH,HL,LL & LH based on the swing paramaters.

The "ray line" is removed or cancelled once price penetrates it.

The mod that I would like is to:
1. only plot the "ray line" on HL and LH
2. once price penetrates rather than cancel leave the line active for a further user defined number of bars, such as 20 bars then cancel
3. Create a Sound Alert once price penetrates

That's it, I'm looking at price retesting HL's and LH's.

Also currently under Swing Values, if you select Labels as True it plots the HH, HL, LL, LH on every new condition. Can this be changed to only plot Labels as per the setting or logic on Naked Swing Line, which only plots once the condition is TRUE. Not sure if that makes sense.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Deepmoney LLM
Elite Quantitative GenAI/LLM
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
  #1392 (permalink)
 philm 
washington dc usa
 
Experience: Advanced
Platform: ninjatrader
Trading: es
Posts: 3 since Jun 2012
Thanks Given: 0
Thanks Received: 1

I read the snippet of code provided by the author and I set Swing Trend to==1 and I keep getting an error message. I did observe that in the original code, the spelling is swingTrend.

Reply With Quote
  #1393 (permalink)
 
lolu's Avatar
 lolu 
Lagos, Nigeria
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader, SierraChart
Trading: Euro Currency & Oil
Frequency: Daily
Duration: Hours
Posts: 2,552 since Jun 2009
Thanks Given: 1,049
Thanks Received: 1,678


Just noted that the PriceActionSwingBase is not in the package ... is this the structure of the new indicator ? Also, using the PriceActionSwingPro, the swing values (i.e. labels, length, duration, price, etc) and the divergence lines do not display/plot when the divergence is set to Stochastic, GomCD, or MACD. Could this be attributed to the absence of PriceActionSwingBase in my installation of the indicator ?

Lolu

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #1394 (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


lolu View Post
Just noted that the PriceActionSwingBase is not in the package ... is this the structure of the new indicator ? Also, using the PriceActionSwingPro, the swing values (i.e. labels, length, duration, price, etc) and the divergence lines do not display/plot when the divergence is set to Stochastic, GomCD, or MACD. Could this be attributed to the absence of PriceActionSwingBase in my installation of the indicator ?

Lolu


this is the same problem mentioned earlier:


Silvester17 View Post
if you would increase the "days to load", or decrease the divergence parameter 2, it should also work. looks like there're not enough bars to do the calculations. but don't understand why it's working with the extensions.


Reply With Quote
Thanked by:
  #1395 (permalink)
 
lolu's Avatar
 lolu 
Lagos, Nigeria
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader, SierraChart
Trading: Euro Currency & Oil
Frequency: Daily
Duration: Hours
Posts: 2,552 since Jun 2009
Thanks Given: 1,049
Thanks Received: 1,678


Silvester17 View Post
this is the same problem mentioned earlier:

Had to "pump" in some 55 days on a 5-Minute chart and my parameter 2 was already decreased.

Thanks, Silvester ... you're greatly BLESSED.

Lolu

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #1396 (permalink)
 icog 
Sofia Bulgaria
 
Experience: Intermediate
Platform: TradeStation
Broker: TradeStation
Trading: Everything
Posts: 194 since Oct 2016
Thanks Given: 391
Thanks Received: 181


Sakk View Post
Hi jmont1,

I'm using NT7. Using the Price Action Swing Pro indicator allows to select under "Features" 21.Naked Swing Lines to True or False. When True it plots a "Ray Line" at the HH,HL,LL & LH based on the swing paramaters.

The "ray line" is removed or cancelled once price penetrates it.

The mod that I would like is to:
1. only plot the "ray line" on HL and LH
2. once price penetrates rather than cancel leave the line active for a further user defined number of bars, such as 20 bars then cancel
3. Create a Sound Alert once price penetrates

That's it, I'm looking at price retesting HL's and LH's.

Also currently under Swing Values, if you select Labels as True it plots the HH, HL, LL, LH on every new condition. Can this be changed to only plot Labels as per the setting or logic on Naked Swing Line, which only plots once the condition is TRUE. Not sure if that makes sense.

I am on NT8 and if it is the same in NT7 you may try playing with naked swing values and "tick reply" option from data series. For me if i remove tick reply it will plot all naked swings and keep them forever (i guess). If it is on only the active naked swings are plotted.

Reply With Quote
  #1397 (permalink)
Sakk
Melbourne
 
Posts: 7 since Apr 2014
Thanks Given: 0
Thanks Received: 1


icog View Post
I am on NT8 and if it is the same in NT7 you may try playing with naked swing values and "tick reply" option from data series. For me if i remove tick reply it will plot all naked swings and keep them forever (i guess). If it is on only the active naked swings are plotted.

Thanks @icog however I'm also looking to only plot HL and LH's. Cheers

Reply With Quote
  #1398 (permalink)
 contrax 
Guadalajara + Jalisco/Mexico
 
Experience: Beginner
Platform: NinjaTrader
Trading: ES MINI
Posts: 50 since Dec 2016
Thanks Given: 9
Thanks Received: 7

Hello, is possible to add alert for HH and LL? and how i can hear the other alerts in the moment that they appear? I mean, in the moment when the "LowerHIgh" appear i want the sound, i dont want to wait for the other label to hear the "LowerHigh" Thank you!

Reply With Quote
  #1399 (permalink)
 
PilotTrader's Avatar
 PilotTrader 
New Brunswick NJ/USA
 
Experience: Intermediate
Platform: NT7, NT8
Trading: NQ, CL, GC, NG, HG
Posts: 157 since Aug 2014
Thanks Given: 106
Thanks Received: 355

Hello folks,

I asked Dorschden if he could help me on my problem below but maybe some of you folks already know the solution. I generally use NT7 Strategy Wizard first for any new indicators that I want to code in my strategies to obtain the correct initial coding methods.

For some reason, using Strategy Wizard, I keep getting the following error:
'NinjaTrader.Strategy.Strategy.PriceActionSwing(int, double, PriceActionSwing.Base.SwingStyle, bool)' is a 'method', which is not valid in the given context
The code for Strategy Wizard:
if ( MDT_TQMeter(5, 100, 4, true, true, 1).SignalSeries[0] == 5
&& PriceActionSwing(20, 4, PriceActionSwing.Base.SwingStyle.Standard, true).HigherLow[1] > 0

Basically, I would like to know if the previous bar is a HL bar, at least in the example above.

Any assistance here would be very much appreciated.

Blue skies, Ricardo


https://nexusfi.com/images/smilies/ammo/crazy_pilot.gif

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #1400 (permalink)
 jmont1 
New York, NY
 
Experience: Intermediate
Platform: NinjaTrader8
Broker: Data = Rithmic -- Gives 70 Level II Data
Trading: 6C (Low Margin,) 6E, CL, GC, ES and Maybe DX for smaller tick value
Posts: 1,394 since May 2011
Thanks Given: 1,719
Thanks Received: 1,019



PilotTrader View Post
Hello folks, For some reason, using Strategy Wizard, I keep getting the following error:

Basically, I would like to know if the previous bar is a HL bar, at least in the example above.

Any assistance here would be very much appreciated.

Blue skies, Ricardo

@PilotTrader, I have tried to figure this out MANY times. Others have tried to help but do not have the correction for the PAS to handle this error.

BUT I did post a sample of Strategy Wizard asking for help. A member did not fix the Strategy Wizard issue but did correct the sample strategy to work. Since I am not a coder, I am not completely clear what was done to correct it. The main thing I see is that he used this declaration:

using PriceActionSwingPro.Utility;

Then changed references for PriceActionSwingPro.Utility.SwingTypes.Standard by removing "PriceActionSwingPro.Utility."
Since it appears your main stumbling point is getting this into a coded strategy perhaps it will be more help to you than it was for me.

Here is the initial request with the code:


Here is the corrected code but it has the same name so plan on that when trying to download both. I used word compare to see where the changes were. AND there were many mainly due to a huge deletion of the region below:

#region Wizard settings, neither change nor remove


If you figure this out it would be a huge help to non-coders trying to use PAS with Strategy Wizard.

P.S. when you add a smile simply find it and click on it. The appropriate text will be placed in the post:



This one is :Xcrazy_pilotX: without the "X's" in between the colons ": - :" Or similarly ": crazy_pilot :" without the spaces.

Click quote on this post if you want to see how it is posted here.

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