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 977,461 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

  #201 (permalink)
 
djkiwi's Avatar
 djkiwi 
Mercer Island WA
 
Experience: Advanced
Platform: Ninjatrader/Strategy Desk
Broker: Various
Trading: TF/NQ/ES/Stocks
Posts: 561 since May 2010
Thanks Given: 981
Thanks Received: 1,558

Thanks Dorschden. I will try that out.

There was one other issue I had some questions and will illustrate with the attached chart. The red down arrows at around 8 am on the 28th show short signals based on the price action lower low being valid and other signals. I am using the formula based on the older version:

priceSwingRel[0] ==-1

Now the swing continues downwards after hours where you see 3 red arrows at the swing low point (-30.5 point swing and 17 bars). Exhaustive testing suggests entering too late into the trend reduces the probabilities of a winning trade significantly. This charts shows entries at bars 14, 15 and 16 as per the 3 down arrows which is too late for this NQ instrument. We can see in the statistics at the bottom that the average swing length is 9 bars down. What I would like to do is have a filter that limits the signal based on the number of bars that have elapsed in the swing so in this case it would be something like:

if priceSwingRel[0] ==-1 && swing bars elapsed <9. Assuming you require 5 bars for a valid swing that leaves another 4 bars to play with. In the attached chart this would eliminate those 3 signals. Any ideas on how to achieve this would be appreciated.

Cheers
DJ





Attached Thumbnails
Click image for larger version

Name:	Swing Issue NQ 06-11 (10 BetterRenko)  3_29_2011.jpg
Views:	804
Size:	169.5 KB
ID:	35456  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - May 2024
Feedback and Announcements
Better Renko Gaps
The Elite Circle
MC PL editor upgrade
MultiCharts
Cheap historycal L1 data for stocks
Stocks and ETFs
Trade idea based off three indicators.
Traders Hideout
 
  #202 (permalink)
 dorschden 
Germany
 
Experience: Master
Platform: NinjaTrader
Posts: 112 since Jun 2009
Thanks Given: 59
Thanks Received: 1,144


djkiwi View Post
What I would like to do is have a filter that limits the signal based on the number of bars that have elapsed in the swing so in this case it would be something like:

if priceSwingRel[0] ==-1 && swing bars elapsed <9. Assuming you require 5 bars for a valid swing that leaves another 4 bars to play with. In the attached chart this would eliminate those 3 signals. Any ideas on how to achieve this would be appreciated.

There are no public swing values, so you can't access the bar number of the swing high/low outside of the indicator.

dorschden

Started this thread Reply With Quote
Thanked by:
  #203 (permalink)
 
Trafford's Avatar
 Trafford 
London, England
 
Experience: Intermediate
Platform: Ninja
Broker: Mirus Futures/Zen-Fire
Trading: EUR
Posts: 337 since Sep 2010
Thanks Given: 378
Thanks Received: 229


Dorschden,

Is it possible modify code to add an audio alert for say a Double Top or Double Bottom on Price action swing indicator?

Reply With Quote
  #204 (permalink)
 Felix trader 
California - USA/Rio grande do sul-Brasil.
 
Experience: Intermediate
Platform: tradestation, ninja trader
Trading: Futuros
Posts: 88 since Apr 2011
Thanks Given: 851
Thanks Received: 23

Hi Dorschden and guys,

I wanted to install the indicator for NT6.5 but wen I entry on NTs website to install the NT7 it said that I need Windows 7 but I have Windos Vista. Is there anyway to install it without having Windows 7?

Thank you Dorschden for such a good work.
Felix

Reply With Quote
  #205 (permalink)
 
LastShadowRider's Avatar
 LastShadowRider 
Las Vegas
 
Experience: Intermediate
Platform: NT7
Broker: Mirus/Zen-Fire
Trading: es tf
Posts: 13 since Apr 2010
Thanks Given: 18
Thanks Received: 2

It should work, no matter what version of windows you have. Windows 7 is windows Vista (upgraded).

Reply With Quote
Thanked by:
  #206 (permalink)
paulg
NY
 
Posts: 90 since Sep 2009
Thanks Given: 54
Thanks Received: 23


Felix trader View Post
Hi Dorschden and guys,

I wanted to install the indicator for NT6.5 but wen I entry on NTs website to install the NT7 it said that I need Windows 7 but I have Windos Vista. Is there anyway to install it without having Windows 7?

Thank you Dorschden for such a good work.
Felix


The main reason Vista is not suggested it's because it's not an high performance OS.

Reply With Quote
Thanked by:
  #207 (permalink)
 bomberone1 
London
 
Experience: Beginner
Platform: MultiCharts
Posts: 277 since Nov 2010
Thanks Given: 14
Thanks Received: 29

Do you have for Multicharts?

Reply With Quote
  #208 (permalink)
 Felix trader 
California - USA/Rio grande do sul-Brasil.
 
Experience: Intermediate
Platform: tradestation, ninja trader
Trading: Futuros
Posts: 88 since Apr 2011
Thanks Given: 851
Thanks Received: 23


bomberone1 View Post
Do you have for Multicharts?

no.

Reply With Quote
  #209 (permalink)
 
djkiwi's Avatar
 djkiwi 
Mercer Island WA
 
Experience: Advanced
Platform: Ninjatrader/Strategy Desk
Broker: Various
Trading: TF/NQ/ES/Stocks
Posts: 561 since May 2010
Thanks Given: 981
Thanks Received: 1,558

Hi Dorschden

Thanks again for posting the update. I had so many indicators linking to this one that the changeover from version 1 to 2 took so long to complete. Once installed I discovered a problem which not sure how to fix.

When I set the statistic to "bottom" or anything else, the statistics box is not showing up like it did with version 1. I am using the latest .4 version. I notice the priceactionswingrelation file is no longer used so not sure and has been updated with the new priceactionswingtrend indicator.

Any ideas would be appreciated

Cheers
DJ

Reply With Quote
  #210 (permalink)
 dorschden 
Germany
 
Experience: Master
Platform: NinjaTrader
Posts: 112 since Jun 2009
Thanks Given: 59
Thanks Received: 1,144



Trafford View Post
Is it possible modify code to add an audio alert for say a Double Top or Double Bottom on Price action swing indicator?

Trafford,

Yes this is possible. You can use the following code for this. Add the two variables in the variables region and the rest of this code in the end of the OnBarUpdate function (didn't test it, but something like this should do the trick):

 
Code
                            
private bool noDb true;

private 
bool noDt true;

// Search for new highs
if (trendDir == 1)
{
  
// Reset noDb to true, because in an up slope no DB can find
  
noDb true;
  
// Check if the sound file is already played in this up slope
  
if (noDt)
  {
    
// Check for DT
    
if (curHighRelation == Relation.Double)
    {
      
// Set a bool variable, to avoid sound file playing at every bar in the up slope
      
noDt false;
      
// Play the sound
      
PlaySound("Enter sound file name here");
    }
  }
}
// DB vice versa
else if (trendDir == -1)
{
  
noDt true;
  if (
noDb)
  {
    if (
curLowRelation == Relation.Double)
    {
      
noDb false;
      
PlaySound("Enter sound file name here");
    }
  }

dorschden

Started this thread 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