[Btw, I had never heard the expression 'come a cropper' ... that was something new I had to lookup, lol.]
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Compiling PriceActionSwingPro
Collapse
X
-
Originally posted by koganam View Post
Originally posted by koganam View Post
[Btw, I had never heard the expression 'come a cropper' ... that was something new I had to lookup, lol.]
-
Originally posted by bltdavid View PostBut, if all files are added to the exported .zip file correctly at the time of export, then I contend this problem won't occur. Why? Because the file(s) containing the custom namespace, if added to the export, means accessing said public property in that custom namespace should now succeed during the silent compile.
I mean, if PASPro has one or more auxiliary files with additional namespaces used by the main indicator file, then just click the arrow button in the export dialog to manually add those auxiliary files to the export.
If NT does not detect and add all needed auxiliary files to the export automatically, then the undetected files must be added manually. There are add/delete "arrow" buttons in the export dialog specifically for this.
After you do the necessary and come a cropper, we can continue this discussion.
Part of the problem is that NT recompiles your exported, and then imported code again into its gumball. The namespace may be exported: its reference is a different kettle fish during a recompilation.Last edited by koganam; 06-05-2016, 01:49 PM.
Leave a comment:
-
Originally posted by koganam View PostAn inability to access the public property in the custom namespace, when calling the instance constructor.
I mean, if PASPro has one or more auxiliary files with additional namespaces used by the main indicator file, then just click the arrow button in the export dialog to manually add those auxiliary files to the export.
If NT does not detect and add all needed auxiliary files to the export automatically, then the undetected files must be added manually. There are add/delete "arrow" buttons in the export dialog specifically for this.
Leave a comment:
-
It is not an impediment to exporting the class: it is an impediment to importing the exported class on another system.
Leave a comment:
-
Originally posted by NinjaTrader_CodyB View PostDo to having to add in the using statement you would not be able to export this indicator and have it import.
Whaaaa? You sure about that?
For someone who only uses the indicator on their charts, and not in NinjaScript, this is simply not true. But, for all others, it's not true either: the use of "using" is no impediment to exporting.
The developer of this indicator would need to make a change to it or have some other work around for calling this indicator within NinjaScript.
The same statement could be said about using MessageBox() -- which requires the NinjaScript writer to specify,
Code:using System.Windows.Forms;
Leave a comment:
-
Hello,
Due to the nature of the PriceActionSwingPro indicator you will need to add in a using declaration for PriceActionSwing.Base. Once that is added in you can call the SwingStyle by using SwingStyle.Ticks.
I have provided an example below:Code:#region Using Declarations //Below The other Declarations using PriceActionSwing.Base; #endregion protected override void OnBarUpdate() { if(PriceActionSwingPro(35, 7, SwingStyle.Ticks , false).DoubleTop[0] > CurrentDayOHL().CurrentOpen[0]) //DoSomething }
Leave a comment:
-
Compiling PriceActionSwingPro
Hello,
Anyone using PriceActionSwingPro have issues compiling?
I'm getting this error:
NinjaTrader.Strategy.Strategy.PriceActionSwing(int , double, PriceActionSwing.Base.SwingStyle, bool)' is a 'method', which is not valid in the given context
When attempting to compile this:
if(PriceActionSwingPro(35, 7, PriceActionSwing.Base.SwingStyle.Ticks, false).DoubleTop[0] > CurrentDayOHL().CurrentOpen[0])
Thanks in Advance
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Shansen, 08-30-2019, 10:18 PM
|
25 responses
949 views
0 likes
|
Last Post Today, 07:01 AM | ||
Started by JonesJoker, 04-22-2024, 12:23 PM
|
8 responses
41 views
0 likes
|
Last Post
by JonesJoker
Today, 06:47 AM
|
||
Started by timko, Today, 06:45 AM
|
0 responses
3 views
0 likes
|
Last Post
by timko
Today, 06:45 AM
|
||
Started by Waxavi, 04-19-2024, 02:10 AM
|
2 responses
39 views
0 likes
|
Last Post
by poeds
Today, 06:37 AM
|
||
Started by chbruno, Yesterday, 04:10 PM
|
1 response
44 views
0 likes
|
Last Post Today, 06:36 AM |
Leave a comment: