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)
adfra posed this in april 2021 the post was moved to Strategy builder, now it is locked and closed
I also used the assistant to produce the relevant PAS code for me and ran into the 'method' not valid this context error. I stared at this post for a while until I picked up on the difference, so just to make it explicit in the hopes it saves someone else a few hours of head-scratching:
a) Add the 'using PriceActionSwing.Base' reference at the very top
b) Remove all occurrences of 'PriceActionSwing.Base.' from the parameters when defining the Indi.
So e.g. from 'PriceActionSwing.Base.SwingStyle.Ticks' to just 'SwingStyle.Ticks'
Once that was done the PAS indi compiled fine for me...
Thanks again for such a wonderful indicator!
********************************* i would llke to know if anyone has solved this
I get the same issues, but when I searched to remove the PriceActionSwing.Base (after adding using reference)
I never found the code PriceActionSwing.Base other than the "namespace" AND I DID NOT THINK WISE TO REMOVE THE NAMESPACE without further instruction or confirmation
when compiling the error probably is created on any number of lines depending on what conditions were used in the strategy, I tested with 1 line of code and my error was found on my line 145
below are lines 143-146
private SimpleFont textFont = new SimpleFont("Courier", 15);
/// <summary>
/// Represents the text offset in pixel for the swing length for the swings.
/// </summary>
NOTHING HERE
THANKS FOR ANY ANSWERS
Can you help answer these questions from other members on NexusFi?
Hi . After trying to figure out why in the world you made a post about PriceActionSwing in the thread titled "How to post," I realized that you really wanted to post in a now-closed thread and didn't know how to (which you can't -- it was closed because it duplicates the PAS topic), so you hit on the idea of using the "how to post" thread. I do see the point, but I hope you understand how this just makes it hard for anyone to understand what you mean.
I've moved your post here to the PAS thread, so someone may be able to help you.
Please, make any posts about PriceActionSwing only in this thread, which is devoted to PriceActionSwing. If you run into a situation in the future where you just don't know what to do in order to post something so it will be noticed and hopefully responded to, always look for something directly related to the topic. It will help everyone.
Now, let me ask the community to help with his issue.
To straighten things out:
posted a solution to a PAS issue involving compiling it in Strategy Builder, using a thread which has subsequently been closed to prevent having a lot of duplications of the PriceActionSwing topic running around, and readers were advised to only use this thread for PAS.
I also used the assistant to produce the relevant PAS code for me and ran into the 'method' not valid this context error. I stared at this post for a while until I picked up on the difference, so just to make it explicit in the hopes …
has run into issues trying to implement this solution, as detailed in his post.
So if someone can address this compile issue when PAS is used with Strategy Builder, it has come up before and it would be helpful if there is a solution here in this thread, so it can be more easily found in the future if someone is looking for it.
Thanks to all.
Bob.
When one door closes, another opens.
-- Cervantes, Don Quixote
Anyone else use PAS Pro with Market Analyzer? Recently my signals have stopped in M.A. , the signals were true if > 0, example Higher Low was true if plot > 0.
Also is it possible to have exportable plots for the regular and hidden divergence signals added to PAS Pro?
Thanks again for a PHENOMENAL indicator. Is there a way to created VOLUME ALERTS when a SWING is created/finalized? I have not found such as option in the indicator - nor was I able to set it in alerts (tried a few options)
Tried to install the indicator but got an error message (screenshot) and had a lot of work/trouble to get NT working again. In the end I needed to delete the NT directory completely, then installed the latest version anew and imported my last backup so I was back at the beginning.
Do a search on your Ninjatrader directory for PriceActionSwingV2. If you don't find it, you shouldn't have gotten that error. If you do, that's why - it already exists.
I too have Poncho's version installed and I wouldn't get anywhere if I had duplicate names installed.
If you're any good with Windows directories and copying files, you could also manually move PriceActionSwingV2.cs into the Indicators directory and try to build it. The error you get there will tell you what exactly is the problem.