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)
wow you did a great job in making the code structured and accessible.
I have a general question:
Is there a (free) small editor for c# available that i can run on my standalone laptop (no ninjatrader installed)
Want to study the code while i am traveling.
Before i was copying the code into a word document but the open and closing of regions is not possible then.
Could be a simple answer just want to make sure - based on the strength of the swing - IE - 5 to plot a HH, does the indicator need to have a prior 5 bar's high lower then the current bar AND the next 5 bars after to have a lower high ?
so the plot is there after the initial 5 bars and it waits for 5 bars after the HH to confirm that its going to be the HH , if anywhere after the HH there is a higher bar then the HH will move and recalculate?
in simple terms for my understanding we need 5 bars before and 5 bars after to confirm a HH ?
I am having a similar problem accessing values from the indicator and wondered if someone could provide some guidance.
In my declarations I use:
I then declare the variable:
and define it as:
from which I am able to access the HH/HL/LH/LL values by using:
This all works fine and the local variables (hh/hl/lh/ll) all return the values I would expect.
My problem arises when attempting to access the properties of PriceActionSwing.Base. In particular, I would like to access the values of the boolean variable New and the integer variable Counter of the Swings class and the integer variable NewSwing of the SwingCurrent class. I have created an instance of the 2 relevant classes using:
and sought to retrieve the variable values using:
I do get values for the variables, but in every case, the values are False, 0, 0. This is not what I would expect as it is clear from the chart that new swings are occurring at various points. The swings are confirmed by both the hh/hl/lh/ll variable values and the labels placed on the chart by indicator.
Can someone please advise how I may properly access the values from PriceActionSwing.Base in order to retrieve the variable values I expect?
Thank you for the great suggestions. Your approach will certainly remedy my issue. I wonder if you could take a moment to explain why I unable to get proper values for:
The New and Counter methods of the Swings class
The NewSwing method of the SwingsCurrent class
Am I referencing the methods improperly? Or perhaps I am misunderstanding what these methods are intended to do?
I just want to get a thorough understanding of what PriceActionPro.Base is able to do.
Actually I am also new for this Indicator and try to understand the code. And the swing calculations are done in the PriceActionSwing.Base Indicator.
When will I know that I will tell you.
May i know if the PA swing oscillator repaints?, is it possible to build a strategy to enter and exit on the color change ? ( i am not sure if it repaints , thats why i wanted some advise) and also if anyone can build a strategy for me