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 974,018 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

  #1411 (permalink)
 TheWiz 
Copenhagen/Denmark
 
Experience: Beginner
Platform: NinjaTrader
Trading: futures
Posts: 3 since Aug 2016
Thanks Given: 1
Thanks Received: 1

Hi

First of all I'm new to programming so I might have some questions which are obvious for even the average programmer.
But I'm trying to make a strategy where I would like to see whether we are in a uptrend or downtrend. As far as can see PriceActionSwingOscillator iterates the variable swingTrend which is either -1, 0 or 1. I have tried to extract the value of swingTrend without any luck. So I hope some of you guys migt be able to help.

So far I've added

private NinjaTrader.NinjaScript.Indicators.PriceActionSwing.PriceActionSwingOscillator _pasOsc;

and under State.Configure is have added

swingTrend = new Series<int>(this);
_pasOsc = PriceActionSwingOscillator(swingType, swingSize, dtbStrength, false, showOscillator, useOldTrend, true, true);

base.AddChartIndicator(_pasOsc);

Under OnBarUpdate() I've added the following, just to test what the value of swingTrend is

if (base.CurrentBar < 1)
return;

Print(_pasOsc.SwingTrend[0]);
Print(_pasOsc.SwingTrend[1]);

But I get an error CS1061 that 'NinjaTrader.NinjaScript.Indicators.PriceActionSwing.PriceActionSwingOscillator' doesn't contain a definition for SwingTrend

Hope someone can help me.

Thanks

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Exit Strategy
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Diary of a simple price action trader
26 thanks
Just another trading journal: PA, Wyckoff & Trends
24 thanks
Tao te Trade: way of the WLD
21 thanks
My NQ Trading Journal
16 thanks
HumbleTraders next chapter
9 thanks
  #1412 (permalink)
 mercyj 
Ellicott City
 
Experience: Intermediate
Platform: ninja trader
Trading: es treasuries
Posts: 14 since Jan 2017
Thanks Given: 1
Thanks Received: 0

anybody know why I wouldn't be getting TICK labels for only the downswings? see chart attched. any help would be greatly appreciated.


Reply With Quote
  #1413 (permalink)
 mercyj 
Ellicott City
 
Experience: Intermediate
Platform: ninja trader
Trading: es treasuries
Posts: 14 since Jan 2017
Thanks Given: 1
Thanks Received: 0


Thank you Sylvester


Silvester17 View Post
make sure the text color is not the same as the background color:

 
Code
private Color textColorLowerHigh = Color.Black;

 
Code
private Color textColorLowerLow = Color.Black;


Reply With Quote
  #1414 (permalink)
 FTR1 
Copenhagen/Denmark
 
Experience: Beginner
Platform: NinjaTrader
Trading: YM
Posts: 4 since Sep 2016
Thanks Given: 3
Thanks Received: 0

Maybe a stupid question, but what are the ATR, MACD, MAX, MIN, SMA and Stochastics cs files doing in the folder for this indicator (NT8)? When I try to install the indicator via import NinjaScript Add-on, NT8 says "File bin\custom\indicators\@stochastics already exists on your PC. Would you like to replace the existing file?".

Reply With Quote
  #1415 (permalink)
 TheWiz 
Copenhagen/Denmark
 
Experience: Beginner
Platform: NinjaTrader
Trading: futures
Posts: 3 since Aug 2016
Thanks Given: 1
Thanks Received: 1

I can't say why they are included, but I just ignored them and the indicator works just fine

Reply With Quote
Thanked by:
  #1416 (permalink)
 FTR1 
Copenhagen/Denmark
 
Experience: Beginner
Platform: NinjaTrader
Trading: YM
Posts: 4 since Sep 2016
Thanks Given: 3
Thanks Received: 0

Cool, thanks, I'll go ahead and delete those

Reply With Quote
  #1417 (permalink)
 
ratfink's Avatar
 ratfink 
Birmingham UK
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: TST/Rithmic
Trading: YM/Gold
Posts: 3,633 since Dec 2012
Thanks Given: 17,423
Thanks Received: 8,425


FTR1 View Post
Maybe a stupid question, but what are the ATR, MACD, MAX, MIN, SMA and Stochastics cs files doing in the folder for this indicator (NT8)? When I try to install the indicator via import NinjaScript Add-on, NT8 says "File bin\custom\indicators\@stochastics already exists on your PC. Would you like to replace the existing file?".

Because they are used by the indicator and detected as dependencies when Ninja runs it's compile and export. Same in NT7. Agreeing to replace them is usually fine, or choosing not to replace them is also usually fine so long as valid up to date versions already exist on your machine.

Travel Well
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #1418 (permalink)
 pepbosch 
Madrid - Spain
 
Experience: Intermediate
Platform: NinjaTrader
Broker: CONTINUUM
Trading: ES, Currency Futures, Forex, oil, gold, EUR/USD, Stocks
Posts: 315 since Jun 2014
Thanks Given: 412
Thanks Received: 132


FTR1 View Post
Maybe a stupid question, but what are the ATR, MACD, MAX, MIN, SMA and Stochastics cs files doing in the folder for this indicator (NT8)? When I try to install the indicator via import NinjaScript Add-on, NT8 says "File bin\custom\indicators\@stochastics already exists on your PC. Would you like to replace the existing file?".

I may be wrong as I am not expert. When you export an indicator to share , you have to add all the scripts (indicators) that the indicator that you are exporting is using for all its calculations. If you installed this indicator without them , it woudn`t work.
When you install it you can get the message that you allready have this indicators so you can skip it or not , no matter . But sometimes you get a different message warning that you are trying to install an older version than the one you already have installed in your platform, so then you should skip and not install the older version of this additional indicators.
Sorry for my english , I hope you understand what I am trying to explain.

pep

If a wise coder thinks I am wrong , I would appreciate a corretion.

Follow me on Twitter Reply With Quote
Thanked by:
  #1419 (permalink)
pavanb15589
Bangalore+India
 
Posts: 40 since Aug 2015
Thanks Given: 5
Thanks Received: 26

Okay..!! So I have been trading Price Action for a really long time. 3 years may be and I may still be called a beginner.
I am trying to use a very quantitative approach towards my entire Price Action Plan and trying to remove all the subjectivity that might loosen that statistical results.
One thing I haven't been able to properly come up with is Rules for Corrective and Impulsive nature of the Swings.

I already have a couple of rules in place.

Impulsive: 1. The first candle that initiates should have the color in the direction of the swing (Green for Up, Red for Down)
2. The second candle should close above the high of the first candle.

This defines the impulsive nature of the swing.

Corrective: 1. The first candle initiating is of the opposite color of the swing direction. (Green for Down, Red for Up)
2. The second candle closes below the high of the first candle.

This defines the corrective nature. I guess I am strict on impulsive nature because I want both the rules to be satisfied. Corrective, I am alright because even if one rule appears, it's corrective for me which supports my strictness on Impulsive Rules.

So, I use second degree Pivots to identify a Swing. That is I need two candle higher high or lower lows (not have to be consecutive) to initiate the swing.


I was just wondering, if anybody else has better rules for Impulsive and Corrective nature of the swings depending on the candles and Price Action.

Happy Trading...
Pavan

Reply With Quote
Thanked by:
  #1420 (permalink)
 shienri 
Singapore + Malaysia
 
Experience: Beginner
Platform: NinjaTrader
Trading: Currency Futures
Posts: 6 since Oct 2016
Thanks Given: 4
Thanks Received: 1


Hi Pavan,

I tried something similar, maybe you can give it a try.

use a 2 range chart, you see 3 green go long, 3 red go short (following the trend)

for reversal at S/R see something like a red green red (go short) or green red green(go long),
then can go for the reverse of trend.

hope it helps



pavanb15589 View Post
Okay..!! So I have been trading Price Action for a really long time. 3 years may be and I may still be called a beginner.
I am trying to use a very quantitative approach towards my entire Price Action Plan and trying to remove all the subjectivity that might loosen that statistical results.
One thing I haven't been able to properly come up with is Rules for Corrective and Impulsive nature of the Swings.

I already have a couple of rules in place.

Impulsive: 1. The first candle that initiates should have the color in the direction of the swing (Green for Up, Red for Down)
2. The second candle should close above the high of the first candle.

This defines the impulsive nature of the swing.

Corrective: 1. The first candle initiating is of the opposite color of the swing direction. (Green for Down, Red for Up)
2. The second candle closes below the high of the first candle.

This defines the corrective nature. I guess I am strict on impulsive nature because I want both the rules to be satisfied. Corrective, I am alright because even if one rule appears, it's corrective for me which supports my strictness on Impulsive Rules.

So, I use second degree Pivots to identify a Swing. That is I need two candle higher high or lower lows (not have to be consecutive) to initiate the swing.


I was just wondering, if anybody else has better rules for Impulsive and Corrective nature of the swings depending on the candles and Price Action.

Happy Trading...
Pavan


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