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 973,619 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

  #1351 (permalink)
 poncho 
Littleton, CO
 
Experience: Intermediate
Platform: Jigsaw (on NT8)
Broker: IB, IQFeed
Trading: CL
Posts: 12 since Oct 2015
Thanks Given: 13
Thanks Received: 14


skfutures View Post
I was trying to import it and I get error message saying it can not be imported.
I had PAS from poncho earlier but I deleted that and still it won't let me import because something about duplication.
Can someone help?

If you have the version I converted, you'll need to delete all the "PriceActionSwing*" files in Indicators->Poncho directory and the AddOns directory. NT won't let you import if there are compiled files with the same class names, enums, etc.

You should delete files from the NT editor, I wouldn't do it directly from the file system, that could cause errors. Right click on the file and Remove and then try to import again.

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Exit Strategy
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Diary of a simple price action trader
26 thanks
Just another trading journal: PA, Wyckoff & Trends
23 thanks
Tao te Trade: way of the WLD
20 thanks
My NQ Trading Journal
19 thanks
HumbleTraders next chapter
9 thanks
  #1352 (permalink)
 poncho 
Littleton, CO
 
Experience: Intermediate
Platform: Jigsaw (on NT8)
Broker: IB, IQFeed
Trading: CL
Posts: 12 since Oct 2015
Thanks Given: 13
Thanks Received: 14


master trader View Post
Hi everyone.

I am not a programmer unfortunately...

This question is about PriceActionSwingPro for NT7. I wanted to use it in a strategy to enter a trade but it could not compile.

What is wrong with this code? Attempts to compile my strategy returns error CS0119 at the line of this code


if (PriceActionSwingPro(20, 5, PriceActionSwing.Base.SwingStyle.Standard, false).AbcSignals[0] == 2)
{
EnterLong();
}


Many thanks in advance.

The error you are getting is telling you that the compiler doesn't understand PriceActionSwing.Base.SwingStyle.Standard. You should add a using declaration to your using section:
 
Code
using PriceActionSwing.Base;
And then change PriceActionSwing.Base.SwingStyle.Standard to SwingStyle.Standard.

Note: You are going to run into more issues if you are using NT8 as there's no PriceActionSwingPro method that takes 4 arguments, the method declaration takes a lot more than that.

My personal preference is to declare an object at the beginning of the class:
 
Code
private NinjaTrader.NinjaScript.Indicators.PriceActionSwing.PriceActionSwingPro _pasPro;
And then in State.Configure (or Initialize if you are using NT7) you can instantiate your object:
 
Code
_pasPro = PriceActionSwingPro(....
And then in your code you can use:
 
Code
if (_pasPro.AbcSignals[0] == 2)

Reply With Quote
Thanked by:
  #1353 (permalink)
 skfutures 
North vancouver
 
Experience: Beginner
Platform: Ninjatrader, Firetip
Trading: ES YM
Posts: 131 since Oct 2016
Thanks Given: 108
Thanks Received: 42


I did that and still i cant import it

Sent using the NexusFi mobile app

Reply With Quote
  #1354 (permalink)
 skfutures 
North vancouver
 
Experience: Beginner
Platform: Ninjatrader, Firetip
Trading: ES YM
Posts: 131 since Oct 2016
Thanks Given: 108
Thanks Received: 42

Perhaps delete the message folder from directory?

Sent using the NexusFi mobile app

Reply With Quote
Thanked by:
  #1355 (permalink)
 poncho 
Littleton, CO
 
Experience: Intermediate
Platform: Jigsaw (on NT8)
Broker: IB, IQFeed
Trading: CL
Posts: 12 since Oct 2015
Thanks Given: 13
Thanks Received: 14


skfutures View Post
I did that and still i cant import it

Sent using the NexusFi mobile app

Forgot to mention that after you remove the files, you need to recompile, NT will still have the old files complied in the NinjaTrader.Custom.dll until you recompile.

Reply With Quote
Thanked by:
  #1356 (permalink)
 skfutures 
North vancouver
 
Experience: Beginner
Platform: Ninjatrader, Firetip
Trading: ES YM
Posts: 131 since Oct 2016
Thanks Given: 108
Thanks Received: 42

Oh thank you!

Sent using the NexusFi mobile app

Reply With Quote
  #1357 (permalink)
 skfutures 
North vancouver
 
Experience: Beginner
Platform: Ninjatrader, Firetip
Trading: ES YM
Posts: 131 since Oct 2016
Thanks Given: 108
Thanks Received: 42

Sorry but how do i recompile ? I delete the indicator from editor and i no longer have your indicator. How can recompile when it has been deleted? Can you please tell me in steps? Thank you

Sent using the NexusFi mobile app

Reply With Quote
  #1358 (permalink)
 poncho 
Littleton, CO
 
Experience: Intermediate
Platform: Jigsaw (on NT8)
Broker: IB, IQFeed
Trading: CL
Posts: 12 since Oct 2015
Thanks Given: 13
Thanks Received: 14


skfutures View Post
Sorry but how do i recompile ? I delete the indicator from editor and i no longer have your indicator. How can recompile when it has been deleted? Can you please tell me in steps? Thank you

Sent using the NexusFi mobile app

In the NinjaScript editor there's a box with an arrow pointing right. If you hover over it with your mouse, it'll show 'Compile'. Just click that after you've deleted the files. You'll hear a tone after the compile is completed, it should only take a second or two.

Reply With Quote
Thanked by:
  #1359 (permalink)
 skfutures 
North vancouver
 
Experience: Beginner
Platform: Ninjatrader, Firetip
Trading: ES YM
Posts: 131 since Oct 2016
Thanks Given: 108
Thanks Received: 42

So it has been deleted. And at this point nothing is clicked and i have empty script window. Now do i just click compile with nothing on script window?

Sent using the NexusFi mobile app

Reply With Quote
  #1360 (permalink)
 skfutures 
North vancouver
 
Experience: Beginner
Platform: Ninjatrader, Firetip
Trading: ES YM
Posts: 131 since Oct 2016
Thanks Given: 108
Thanks Received: 42


Doesnt work. I tried

Sent using the NexusFi mobile app

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