My take on the typical Macd BB indicator with influence from FatTails' version. Note that the dot colors are hard-coded. This can easily be changed to be an input selection, but I don't need it.
It could be much better, but this is really all I needed for what I use it for.
Neal
Macd BB Indicator
Re: Macd BB Indicator
I really liked this, very helpful. But then I installed MC Net64 8.1 Beta 1 and it no longer compiles.
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Macd BB Indicator
In MultiCharts .Net 8.1 part of simple functions was moved into VariableSeries – a series variable that keeps all of its previous values. it as an improvement and a way to simplify the work with types and calculations.
Modified code is attached.
Modified code is attached.
- Attachments
-
- nfsMacdBB_MC_8.1.pln
- (1.74 KiB) Downloaded 1212 times
Re: Macd BB Indicator
Hello Henry,In MultiCharts .Net 8.1 part of simple functions was moved into VariableSeries – a series variable that keeps all of its previous values. it as an improvement and a way to simplify the work with types and calculations.
Modified code is attached.
Below is the error message with the modified code, when it is imported through PowerLanguage NET editor "'PowerLanguage.VariableSeries<double>' does not contain a definition for 'Average' and no extension method 'Average' accepting a first argument of type 'PowerLanguage.VariableSeries<double>' could be found (are you missing a using directive or an assembly reference?) "nfsMacdBB" [Indicator] Ln 69
"
Can u kindly correct the code in this indicator?
Thanks & Regards,
Mohi
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Macd BB Indicator
Code from post #1 works with MC .Net 8.0 onlyHello Henry,
Below is the error message with the modified code, when it is imported through PowerLanguage NET editor "'PowerLanguage.VariableSeries<double>' does not contain a definition for 'Average' and no extension method 'Average' accepting a first argument of type 'PowerLanguage.VariableSeries<double>' could be found (are you missing a using directive or an assembly reference?) "nfsMacdBB" [Indicator] Ln 69
"
Can u kindly correct the code in this indicator?
Thanks & Regards,
Mohi
Code from post #3 works with MC .Net 8.1 only
According to your error message - you are trying to import the code for MC .Net 8.1 into MC .Net 8.0
Re: Macd BB Indicator
Code from post #1 works with MC .Net 8.0 only
Code from post #3 works with MC .Net 8.1 only
Thanks Henry for the update.
I have 2 questions and would appreciate your answers.
1- If the indicator's script for MC Net 8.0 and MC Net 8.1 is different, then in that scenario, if I have my own custom MC Net 8.0 indicator, is there any manual or PDF file, to help me determine, what are the modifications I need to do to the custom MC Net 8.0 indicator script, to make it compatible for the MC Net 8.1 version?
2- How can I find the difference in the reversed words and programming syntax changes from the earlier MC versions, to the latest MC version (if there exists any)?
Thanks & Regards,
Mohi
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Macd BB Indicator
Hello Mohi,Thanks Henry for the update.
I have 2 questions and would appreciate your answers.
1- If the indicator's script for MC Net 8.0 and MC Net 8.1 is different, then in that scenario, if I have my own custom MC Net 8.0 indicator, is there any manual or PDF file, to help me determine, what are the modifications I need to do to the custom MC Net 8.0 indicator script, to make it compatible for the MC Net 8.1 version?
2- How can I find the difference in the reversed words and programming syntax changes from the earlier MC versions, to the latest MC version (if there exists any)?
Thanks & Regards,
Mohi
1) There is no such manual.
2) If the code cannot be compiled with one of the functions then (most probably) this function was replaced with Variable Object.
-
- Posts: 1
- Joined: 26 Aug 2019