PriceActionSwing discussion (Page 9) - NinjaTrader | futures.io
futures.io futures trading
 

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader


PriceActionSwing discussion
Started:November 23rd, 2009 (11:23 AM) by dorschden Views / Replies:392,095 / 1,345
Last Reply:22 Hours Ago (10:10 PM) Attachments:423

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.


You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike
     

Reply
 423  
 
Thread Tools Search this Thread

PriceActionSwing discussion

Old June 5th, 2010, 08:57 PM   #81 (permalink)
 Vendor: www.ezcolortrading.com 
Cambridge, Ontario
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Zen-Fire
Favorite Futures: 6E
 
Posts: 1,773 since Dec 2009
Thanks: 1,258 given, 1,194 received

Hi Dorschden

I followed Post #7 and tried to add your PA indicator to my strategy as Exit. Got an error message "No overload for method 'PriceActionSwing' takes '3' arguments" when I tried to compile. Appreciate your kind suggestion on how to fix my code (as follows) and what I did wrong. Thank you.

Beth

 
Code
 
//Exit Condition based on PA Swing
if (PriceActionSwing(pAS_SwingMode, pAS_DtbStrength, pAS_Span).PriceSwingRelation[0] == -1
&& CrossBelow(SMA(3), SMA(7), 1))
{
ExitLong();
}

if (PriceActionSwing(pAS_SwingMode, pAS_DtbStrength, pAS_Span).PriceSwingRelation[0] == 1
&& CrossAbove(SMA(3), SMA(7),1))
{
ExitShort();
}

Reply With Quote
     

Old June 6th, 2010, 11:06 AM   #82 (permalink)
Elite Member
Germany (Meck-Pomm)
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 107 since Jun 2009
Thanks: 50 given, 934 received


alex5000 View Post
Just a suggestion, is it possible to have on "Swing Length" price/ticks/and bar count.

Hello Alex,

I upload a new version and add your suggestion. Download the new version (here).

I also displaced the statistic from the chart to a text box panel. This works only in NT7. In NT6.5 the statistic is still on the chart.

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


dorschden

Reply With Quote
     
The following 5 users say Thank You to dorschden for this post:
     

Old June 6th, 2010, 11:14 AM   #83 (permalink)
Elite Member
Sydney
 
Futures Experience: Intermediate
Platform: Ninja Trader
 
Posts: 85 since Nov 2009
Thanks: 26 given, 48 received


thank you so much dorschden

Alex

Reply With Quote
     

Old June 6th, 2010, 11:25 AM   #84 (permalink)
Elite Member
Germany (Meck-Pomm)
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 107 since Jun 2009
Thanks: 50 given, 934 received


wgreenie View Post
I will try to automate the PriceActionSwingRelation indicator .. seems do-able. Will knock at your door if I encounter any technical issues.


wgreenie View Post
Got an error message "No overload for method 'PriceActionSwing' takes '3' arguments" when I tried to compile.

Hello Beth,

the old code snippet isn't fully correct because I change the parameter number.

Try the following code (NT7 only). I didn't test it, but it should work. Don't hesitate to ask if you encounter some issues. I'll try to help if I can.

For you automatization you can also use the new UpFlip[0] series to get the information when the swing is change from low to high (DownFlip vice versa). For access use the same code and replace PriceSwingRelation with UpFlip.


 
Code
			
#region Using declarations

using PriceActionSwing.Utility;
#endregion

#region Variables
private SwingMode calcMode SwingMode.Standard;
private 
int calcSize 8;
private 
int dtbStrength 15;
private 
double psarAcceleration    0.02;
private 
double psarAccelerationMax 0.2;
private 
double psarAccelerationStep0.02;

private 
IDataSeries     priceSwingRel;
#endregion


protected override void OnStartUp()
{
  
// Set the PriceActionSwingRelation value to to the priceSwingRel series
  
priceSwingRel PriceActionSwing(InputcalcModecalcSizedtbStrength,
    
psarAccelerationpsarAccelerationMaxpsarAccelerationStep).PriceSwingRelation;
}

protected 
override void OnBarUpdate()
{
  
//Exit Condition based on PA Swing
  
if (priceSwingRel[0] == -&& CrossBelow(SMA(3), SMA(7), 1))
  {
    
ExitLong();
  }

dorschden


Last edited by dorschden; June 6th, 2010 at 05:03 PM. Reason: Change code
Reply With Quote
     
The following user says Thank You to dorschden for this post:
     

Old June 6th, 2010, 03:05 PM   #85 (permalink)
 Vendor: www.ezcolortrading.com 
Cambridge, Ontario
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Zen-Fire
Favorite Futures: 6E
 
Posts: 1,773 since Dec 2009
Thanks: 1,258 given, 1,194 received

Futures Edge on FIO

dorschden View Post
Don't hesitate to ask if you encounter some issues. I'll try to help if I can.

Hi Dorschden

Your prompt response has made my weekend. Thank you!

I tried the suggested code and did compile the strategy successfully. Unfortunately the revised strategy does not trigger any trades. FYI: Without the PA Swing code, the strategy does trigger trades. Well, I must have done something wrong ..

I will do some investigation first before bothering you again. For sure, you will hear from me if I have a big head after hours of getting no-where ...

Beth

Reply With Quote
     

Old June 6th, 2010, 05:03 PM   #86 (permalink)
Elite Member
Germany (Meck-Pomm)
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 107 since Jun 2009
Thanks: 50 given, 934 received


wgreenie View Post

I tried the suggested code and did compile the strategy successfully. Unfortunately the revised strategy does not trigger any trades. FYI: Without the PA Swing code, the strategy does trigger trades.

Hey Beth,

if you use NT7 then you can use the edited code above. You have to use the OnStartUp() method to initialize the priceSwingRel series. If you use NT6.5 then the following code works. It's not the best performance solution but it works.

 
Code
			
if (PriceActionSwing(calcModecalcSizedtbStrengthpsarAccelerationpsarAccelerationMax,

    
psarAccelerationStep).PriceSwingRelation[0] == -&& CrossBelow(SMA(3), SMA(7), 1))
{
  
ExitLong();


Reply With Quote
     
The following user says Thank You to dorschden for this post:
     

Old June 6th, 2010, 05:57 PM   #87 (permalink)
 Vendor: www.ezcolortrading.com 
Cambridge, Ontario
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Zen-Fire
Favorite Futures: 6E
 
Posts: 1,773 since Dec 2009
Thanks: 1,258 given, 1,194 received

Hi Dorschden

I used your latest suggestion to create a PA Swing strategy. Compiled successfully and it generated trades too. Thank you! Hey, You Rock!!

Now I will go through the trades and see how can I improve the strategy so that it will be profitable.

Beth (grateful)

Reply With Quote
     

Old June 7th, 2010, 12:14 PM   #88 (permalink)
 Vendor: www.ezcolortrading.com 
Cambridge, Ontario
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Zen-Fire
Favorite Futures: 6E
 
Posts: 1,773 since Dec 2009
Thanks: 1,258 given, 1,194 received

Hi Dorschden

Need to pick your brains please. How can I add text label (HH/HL/LL/LH/DB/DT) in addition to the dots? Is it easy to learn how to code it? Appreciate your guidance. Thank you.

FYI: I succeeded in adding an Exit condition (PA Swing Rel = 1 or -1 and SMA crossover) to an existing strategy that I have been sim-trading. It really helps! My heartfelt thanks again for your sharing and assistance.

Have a Successful week.

Beth

Reply With Quote
     

Old June 7th, 2010, 05:20 PM   #89 (permalink)
Elite Member
Germany (Meck-Pomm)
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 107 since Jun 2009
Thanks: 50 given, 934 received


wgreenie View Post
How can I add text label (HH/HL/LL/LH/DB/DT) in addition to the dots?

Hey Beth,

I upload a new version and add swing labels (Download here). I thought the dot colors were enough, but the swing labels make it more visible.

Good to hear that the indicator help you with your exit conditions in the strategy.

dorschden

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
     
The following 3 users say Thank You to dorschden for this post:
     

Old June 7th, 2010, 05:36 PM   #90 (permalink)
 Vendor: www.ezcolortrading.com 
Cambridge, Ontario
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Zen-Fire
Favorite Futures: 6E
 
Posts: 1,773 since Dec 2009
Thanks: 1,258 given, 1,194 received



dorschden View Post
I upload a new version and add swing labels (Download here). I thought the dot colors were enough, but the swing labels make it more visible.

Hi Dorschden

You're a "peach"!! I learned from my Western peers that it's a good compliment for one who's extraordinarily Nice - YOU!! Thank you.

For a PA newbie (me), the swing labels help a lot LOL!

Beth (grateful)

Reply With Quote
     

Reply



futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > PriceActionSwing discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)
 

NinjaTrader 8: Features and Enhancements, Tips and Tricks

Dec 6
 

Al Brooks: Stop Losing when a Good Trade goes Bad, Correcting Mistakes

Elite only
 

Trading Technologies: Algo Design Lab hands-on

Dec 13
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Murray Math Discussion? jwhtrades Traders Hideout 5 July 27th, 2011 10:06 PM
Looking for general discussion thread. jctrader Traders Hideout 2 May 2nd, 2011 03:23 PM
PriceActionSwing jeff92887 NinjaTrader 2 March 1st, 2011 07:15 AM


All times are GMT -4. The time now is 08:50 PM.

Copyright © 2016 by futures.io. 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.
 
no new posts

Page generated 2016-12-05 in 0.08 seconds with 19 queries on phoenix via your IP 54.158.83.210