 
    
            Bollinger Bands alternative TimeFrame
            
                 16 Feb 2018, 10:55
            
                    
Normally I would programm like this:
"...
        [Parameter("Source")]
        public DataSeries Source { get; set; }
....
BB = Indicators.BollingerBands(Source, Periods, Deviations, MAType);
...
"
Now I want to use a custom timeframe.
"
        [Parameter("Custom Time Frame", DefaultValue = "Minute15")]
        public TimeFrame CustomTimeFrame { get; set; }
"
I cannot find out how to apply that timeframe to Bollinger Bands,
Regards
Alexander
Replies
                     alexander.n.fedorov
                     16 Feb 2018, 11:18
                                    
BB timeframe
Thank you. It seems to be working, at list build was "OK"
Now I will have to test it. How do I test it if there is now visualisation?
To wait before the price go out of frame may take a long time ... :)
@alexander.n.fedorov
                     PanagiotisCharalampous
                     16 Feb 2018, 11:23
                                    
Hi Alexander,
If you want to visualize you can consider creating a custom Indicator.
Best Regards,
Panagiotis
@PanagiotisCharalampous
                     alexander.n.fedorov
                     16 Feb 2018, 11:28
                                    
Dear Panagiiotis!
I thank you very much, you are very kind. But I am very new to c#, especially to cAlgo. It must take a lot of explanation on your side how to that (It would have been for me much easier to do a complete SQL development)
So, if could explain in more details , it would be very usefull not only for me.
Otherwise let me get some more experience.
Best regards,
Alexander
@alexander.n.fedorov
                     PanagiotisCharalampous
                     16 Feb 2018, 11:41
                                    
Hi Alexander,
You can find a nice guide on how create a custom indicator here. I can provide answers to specific questions, however I cannot guide you step by step on how to create your indicator or teach you C#. If you need professional assistance, you can contact a professional Consultant or post a Job. My role in the community is to help developers with API specific questions.
Best Regards,
Panagiotis
@PanagiotisCharalampous
                     alexander.n.fedorov
                     16 Feb 2018, 11:48
                                    
I happened to find a pair for testing on Demo, and ...it works!
@alexander.n.fedorov
                     alexander.n.fedorov
                     16 Feb 2018, 11:52
                                    
1 derivative
By the way, is there any indicator or property which will show the first and maybe the second derivative on moving average?
@alexander.n.fedorov

PanagiotisCharalampous
16 Feb 2018, 11:12
Hi Alexander,
Try something like this
var source = MarketData.GetSeries(TimeFrame.Minute15).High; var _bb = Indicators.BollingerBands(source, 20, 2, MovingAverageType.Exponential);Best Regards,
Panagiotis
@PanagiotisCharalampous