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,124 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 965,025 views
    2. thumb_up 2,947 thanks given
    3. group 613 followers
    1. forum 2,093 posts
    2. attach_file 615 attachments




 
Search this Thread

PriceActionSwing discussion

  #1191 (permalink)
 
sudhirc's Avatar
 sudhirc 
detroit,mi
sc
 
Experience: Intermediate
Platform: NT
Broker: NT
Trading: ES
Frequency: Every few months
Duration: Hours
Posts: 417 since Sep 2011
Thanks Given: 1,709
Thanks Received: 471

Hi,

I made slight modification to PriceActionSwingOscillator and renamed it as PASO, can someone help me where swing lows as negative and print below the Zero line.

Thank you,

i tried to do it unsuccessfully

Sudhir

Attached Files
Elite Membership required to download: PASO.cs
Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Deepmoney LLM
Elite Quantitative GenAI/LLM
Exit Strategy
NinjaTrader
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
Battlestations: Show us your trading desks!
26 thanks
The Program
18 thanks
  #1192 (permalink)
 
sudhirc's Avatar
 sudhirc 
detroit,mi
sc
 
Experience: Intermediate
Platform: NT
Broker: NT
Trading: ES
Frequency: Every few months
Duration: Hours
Posts: 417 since Sep 2011
Thanks Given: 1,709
Thanks Received: 471

@Silvester17, @cory, @dorschden

If time permits can you see my request in the above post, #1191 and see whether you can help me.

Thank you,
Sudhir

Reply With Quote
  #1193 (permalink)
 
Silvester17's Avatar
 Silvester17 
Columbus, OH
Market Wizard
 
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,603 since Aug 2009
Thanks Given: 5,139
Thanks Received: 11,527



sudhirc View Post
@Silvester17, @cory, @dorschden

If time permits can you see my request in the above post, #1191 and see whether you can help me.

Thank you,
Sudhir

@sudhirc,

I think the following changes should work:

 
Code
else if (swingLow.New == true)
                    {
                        if (swingLow.Update == false)
                        {
                            double swingVolume = 0.0;
                            for (int i = CurrentBar - swingHigh.CurBar - 1; i > -1; i--)
                            {
                                swingVolume = swingVolume - Volume[i];
                                volumeLowSeries.Set(i, swingVolume);
                                volumeHighSeries.Set(i, 0);

                                VHigh.Reset(i);
                                VLowCurrent.Reset(i);
                                VLow.Set(i, swingVolume);
                            }
                            swingVolume = 0.0;
                            for (int i = CurrentBar - swingLow.CurBar - 1; i > -1; i--)
                            {
                                swingVolume = swingVolume - Volume[i];
                                volumeHighSeries.Set(i, swingVolume);
                                VHighCurrent.Set(i, swingVolume);
                            }
                        }
                        else
                        {
                            double tmp = volumeLowSeries[1] - Volume[0];
                            volumeLowSeries.Set(tmp);
                            for (int i = CurrentBar - swingHigh.CurBar - 1; i > -1; i--)
                            {
                                VHighCurrent.Reset(i);
                                volumeHighSeries.Set(i, 0);
                            }
                            VLow.Set(tmp);
                        }
                    }
                    else
                    {
                        double tmpH = volumeHighSeries[1] + Volume[0];
                        double tmpL = volumeLowSeries[1] - Volume[0];
                        volumeHighSeries.Set(tmpH);
                        volumeLowSeries.Set(tmpL);

                        if (swingCurrent.SwingSlope == -1)
                        {
                            VLow.Set(tmpL);
                            VHighCurrent.Set(tmpH);
                        }
                        else
                        {
                            VHigh.Set(tmpH);
                            VLowCurrent.Set(tmpL);
                        }

                    }
did not test it!!!

Reply With Quote
  #1194 (permalink)
 
sudhirc's Avatar
 sudhirc 
detroit,mi
sc
 
Experience: Intermediate
Platform: NT
Broker: NT
Trading: ES
Frequency: Every few months
Duration: Hours
Posts: 417 since Sep 2011
Thanks Given: 1,709
Thanks Received: 471

Hi @Silvester17,
thank you very much for your help.
Please see the attached chart with the modified script, some thing else need to be changed.



thanks again for your time.
Sudhir


EDIT: @Silvester17
Sorry, it is working as intended.


Reply With Quote
Thanked by:
  #1195 (permalink)
 
sudhirc's Avatar
 sudhirc 
detroit,mi
sc
 
Experience: Intermediate
Platform: NT
Broker: NT
Trading: ES
Frequency: Every few months
Duration: Hours
Posts: 417 since Sep 2011
Thanks Given: 1,709
Thanks Received: 471

Hi @Elite Trader, with help from @Silvester17 i was able to get divergences from price to volume oscillator.

Please download the attached scripts in the order mentioned and compile. However, some times the divergences are not what they should be as highlighted in red circle in the attached chart and i don't know why it is causing.









To get divergences select PASO, in PriceActionSwingProV2 and select Divergence Parameter 1 and Divergence Parameter 2 and you are good to go.


Attached Files
Elite Membership required to download: PASO.cs
Elite Membership required to download: PriceActionSwingBase.cs
Elite Membership required to download: PriceActionSwingProV2.cs
Reply With Quote
  #1196 (permalink)
 
Elite Trader's Avatar
 Elite Trader 
Pune India
 
Experience: Beginner
Platform: NinjaTrader
Trading: Stocks
Posts: 28 since Apr 2015
Thanks Given: 56
Thanks Received: 15

Hi Sudhir,

Thank you very much, you have done great job........... Please can you attach another pictures, the following pictures are not visible.

Thanks
Elite Trader.

Reply With Quote
  #1197 (permalink)
 
Elite Trader's Avatar
 Elite Trader 
Pune India
 
Experience: Beginner
Platform: NinjaTrader
Trading: Stocks
Posts: 28 since Apr 2015
Thanks Given: 56
Thanks Received: 15

Hi @sudhirc, @Silvester17, @dorschden


I would like to access the PriceActionSwingPro Indicator values in Strategies, like series of swing highs and swing lows values and the series of the Absolute volume in the Strategies, Actually I want to capture Swing high and Swing low values (Prices). I see the Indicators coding but I am not able to understand. So Would you please be kind and show me an example of the public variables to access in Strategies. I have attached the picture for understanding what I am try to telling.

I am using these variables for understanding....


e.g : if (SwingLow[0] < SwingLow[1] && SwingVol[0] > SwingVol[1])
EnterLong();

if (SwingHigh[0] > SwingHigh[1] && SwingVol[0] < SwingVol[1])
EnterShort();


Thanks
Elite Trader.

Attached Thumbnails
Click image for larger version

Name:	Required.jpg
Views:	395
Size:	314.3 KB
ID:	182842  
Reply With Quote
Thanked by:
  #1198 (permalink)
 vinod 
Chennai/TamilNadu/India
 
Posts: 21 since Dec 2014


Elite Trader View Post
Hi @sudhirc, @Silvester17, @dorschden


I would like to access the PriceActionSwingPro Indicator values in Strategies, like series of swing highs and swing lows values and the series of the Absolute volume in the Strategies, Actually I want to capture Swing high and Swing low values (Prices). I see the Indicators coding but I am not able to understand. So Would you please be kind and show me an example of the public variables to access in Strategies. I have attached the picture for understanding what I am try to telling.

I am using these variables for understanding....


e.g : if (SwingLow[0] < SwingLow[1] && SwingVol[0] > SwingVol[1])
EnterLong();

if (SwingHigh[0] > SwingHigh[1] && SwingVol[0] < SwingVol[1])
EnterShort();


Thanks
Elite Trader.

After a long time of search..found a Member from India..Elite Trader..wanna know more about datafeed Part for NT7 for Indian Markets?

Thanks & Regards,
VINOD. RPS

Reply With Quote
  #1199 (permalink)
 
Elite Trader's Avatar
 Elite Trader 
Pune India
 
Experience: Beginner
Platform: NinjaTrader
Trading: Stocks
Posts: 28 since Apr 2015
Thanks Given: 56
Thanks Received: 15


vinod View Post
After a long time of search..found a Member from India..Elite Trader..wanna know more about datafeed Part for NT7 for Indian Markets?

Thanks & Regards,
VINOD. RPS

Hi Vinod,

Esignal provides Real time data for NSE cash and future segments( Stock Charting Software & Free Stock Market Data - eSignal). And one more is Global data feeds which provides only Real time data of entire NSE Futures & Options Segment ( Authorised real time data provider of NSE Currency (NSE CDS), MCX (Multi Commodities Exchange) and NSE F&O (Futures and Options) in AmiBroker, MetaStock, Advanced Get, Ensign, [AUTOLINK]NinjaTrader[/AUTOLINK], Elwave, [AUTOLINK]Bulls[/AUTOLINK] Eye Broker 5 and Sierra Chart). And both are supports only NT7 32 bit system.

Thanks
Elite Trader.

Reply With Quote
Thanked by:
  #1200 (permalink)
 vinod 
Chennai/TamilNadu/India
 
Posts: 21 since Dec 2014



Elite Trader View Post
Hi Vinod,

Esignal provides Real time data for NSE cash and future segments( Stock Charting Software & Free Stock Market Data - eSignal). And one more is Global data feeds which provides only Real time data of entire NSE Futures & Options Segment ( Authorised real time data provider of NSE Currency (NSE CDS), MCX (Multi Commodities Exchange) and NSE F&O (Futures and Options) in AmiBroker, MetaStock, Advanced Get, Ensign, [AUTOLINK]NinjaTrader[/AUTOLINK], Elwave, [AUTOLINK]Bulls[/AUTOLINK] Eye Broker 5 and Sierra Chart). And both are supports only NT7 32 bit system.

Thanks
Elite Trader.

Thaks a lot. Elite Trader..

VINOD. RPS

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