I have no experience with this indicator but my first question would be - NT7 or NT8 version?
Then the most likely place the error like this would arise is in the generated wrapper and these are generated from the accessors so that's where I would look for fix. As a first try I would try to instead of using "using" try putting direct full path to every use of the enum, especially around get/set at the bottom (eg. "PriceActionSwingOscillator.Utility.SwingTypes swingType") This should help the wrapper to avoid confusion.
There are users of the indicator where the 'standard' way of coding works fine so it must have to do with the way my NT is organized on my computer or how the indicator has been imported? I did everything following the described examples but I can't get it to compile. I even tried to do it on a fresh istall of NT on another computer with the same result.
I had to delete and/or rename the PriceActionSwingOscillator file I had because it didn't have the .Utility file with it... I found an older one with the .Utility in it - not sure where it came from ... I think the Download version didn't have the Utility.
Anyway, after deleting the old one, downloading and trying it again, it compiles and loads onto the chart.
Thanks for your reply. The thing is that I have no older version of the indicator and imported the latest available package directly into NT. I have indeed the feeling that I miss a file but I'm not into C++ enough to understand what I miss.
Actually using the indicator directly in the chart is no problem, that works okay. It's only when I make a Strategy with this indicator that results in the compile error.
Can you look what files you have belonging to the PriceActionSwing indicator?
@Ducman, are you writing the strategy or trying to use Strategy Wizard? If using SWizard, click on the view code button. It will open the code for editing. Then compile it and the error should show up.
Careful since editing the SW code will stop SW from editing it. But at least you can find out what is causing the error.
I'm not a "coder" but was wondering if it had something to do with the Capitalization you have on the first letter after the = sign there in code in the line you have BOLDed, I've run into similar issues in the past,
You might try this line instead? [private SwingTypes swingType = swingTypes.Standard]
I am using pasosc as trend identifier i first check trend in 60 min and daily chart and suppose if both are down so down trend volume i receive I short the futures but and cover my short when next uptrend that is 1st green bar appears in volume but the problem is it reflect that green bar after 3-4 bars so my lot amnt of profit is been eaten up and i get very small amount of profit Please help me that it update bar in real time with each 5 min bar
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).
Change was at 1st bar where ideally I have to cover my short but it reflected at green bar marked as 2 and my profit was eaten up
The following user says Thank You to ishmeetchhabra for this post: