- Is there a reason why PriceTypeSupported is set to "false"? (In DoubleMA.cs line 59 and MAV.cs line 65). Enabling it to true gives some extra options to 'shift' the averages as you can use Open and Close as input ... but you may have had a specific reason to put it on false.
- I first thought the selection of MA was handled in MAType.cs, but apparently it is in the MAV.cs. Is that MAType.cs still needed?
- Looking at MAV.cs I get confused (looking at the parts commented out I think this has been some work in progress).
I am no programmer
) but trying to learn via analyzing the code of others. As I read it this file first started with a public enum MAType (line29-59). I thought the numbers after the MAType refered to the cases in 78-92 via the command 'switch'... however the numbers do not correspond to the ordering of the cases. And the section with cases is also commented out.In line 105-147 under OnBarUpdate a new range of options is given via if .. else if ..statements.And that list is replicated under properties (194-261).
As I wanted to add TEMA I added this in both lists. Is it important that the order in these lists is the same?
After the compiler complained I also added 'TEMA=16' under public enum.
Apparently it works, but what does this =16 do when it does not refer to anything in a list?
Anyway, thanks to the programmers ... it sure helps to get smoothing.

Comment