Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I am struggling with figuring out one of the parameters when attempting to use this with another indicator.
I am simply trying to code an indicator that will keep a running total of the Higher High, Lower High, & Double Tops. In the list of the parameters when referencing this indicator, it says "SwingStyle swingType".
As far as I can tell, I have inputted the other parameters correctly, but this one I can not figure out exactly what I am supposed to place there. I have tried placing "Standard", or "SwingStyle.Standard" or "swingType.Standard" and none of them are working. With all of them I get the compile error saying "XYZ does not exist in the current context."
Could somebody please let me know what I am supposed to put in this parameter if I wise to use Standard swing type?
Thank you very much for your help!!
"Most people overestimate what they can do in 1 year and underestimate what they can do in 10 years."
Can you help answer these questions from other members on NexusFi?
I have been using this great indicator for a few weeks now. Thanks to the creator and contributors.
I was wondering if a user defined minimum swing size in ticks/points could be set before drawing the fib retracement or extension. The fibs get a bit messy with smaller swings.
I am just wondering if anybody has an answer for Post #1091. Even if just a couple of words without any explanation would be really great to fulfill my needs.
Thank you very much!!!
"Most people overestimate what they can do in 1 year and underestimate what they can do in 10 years."
Thats as far as I've been able to get, I'm trying to extract info about the last swing to discover what it was, but after reviewing the code over and over I've not yet figured it out. I've been through about 10 or so pages of posts, I'll let you know if I find the post or discover the solution in code.
I'm not really sure what you guys are trying to do but this is how I'm accessing the revised swing indicator for other indicators. You can use the same concept for the pro version.
delcarations
using PriceActionSwing.Utility;
variables
private int dtbStrength = 15;
private int swingSize = 4;
private SwingTypes swingType = SwingTypes.Gann;
private IDataSeries swingRelation;
It looks like that I may be missing a file, when I compile the script posted on page 60 for the strategy base, I get the errors that "The namespace Utility does not exist in the NameSpace PriceActionSwing. I believe I may be missing a file possibly because SwingTypes can not be found either. Does any one have any information as to what file the Utility namespace is held so I can check if I have all of the correct files I need.
Any assistance on this would be greatly appreciated
What file is the SwingTypes enum is located in, there seems to be a missing reference related to this
#region Using declarations
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Xml.Serialization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Indicator;
using NinjaTrader.Gui.Chart;
using NinjaTrader.Strategy;
#endregion
using PriceActionSwing.Base;
// This namespace holds all strategies and is required. Do not change it.
namespace NinjaTrader.Strategy
{
/// <summary>
/// Enter the description of your strategy here
/// </summary>
[Description("Enter the description of your strategy here")]
public class Test : Strategy
{
private int swingSize = 7;
private SwingTypes swingType = SwingTypes.Standard;
private int dtbStrength = 15;
private DataSeries swingTrend;
I'm back attempting to add price action swing to a strategy I want to back test. Thank you for such a great indicator and all your help and hard work!
I don't know how to access when the indicator flips. I get an error about not being able to use this method with the following code. I asked a similar question awhile back and got this answer. According to this, I should be able to access the public bool series for the PpFlip and DnFlip functions.
, unfortunately this isn't possible. You have to change the code to accomplish this. There are several ways to do this. Because of your moderate coding skills I suggest that you create some variables to save the certain swing relations and make them public. E.g. create a variable called lastLowRelation2 in which you save the 3rd last swing low relation (swing low relation = LL, HL, DB) and in line 2582 you write "lastLowRelation2 = lastLowRelation;" Then you have in the variables curLowRelation, lastLowRelation, lastLowRelation2 the swing low relations. Now you have to make this variables accessible. In "Region Properties" in "Region Dataseries" you add following line for each variable (same for the long values). Now you should be able to access the values from within a strategy. I didn't test this, but it should work.
PriceActionSwingPro indicator
public BoolSeries DnFlip
{
get { return dnFlip; }
}
public BoolSeries UpFlip
{
get { return upFlip; }
}
my strategy
protected override void OnBarUpdate()
{
if (PriceActionSwingPro(20, 7, PriceActionSwing.Base.SwingStyle.Standard, false).UpFlip[0] == true)
{
// do something
}
else if (PriceActionSwingPro(20, 7, PriceActionSwing.Base.SwingStyle.Standard, false).DnFlip[0] == true)
{
// do something
}
}
Attached is the error I get when trying to compile my strategy. Anyone with C# experience know what's going on with this and how to get it to work?