TulipCharts / tulipindicators

Technical Analysis Indicator Function Library in C
https://tulipindicators.org/
GNU Lesser General Public License v3.0
846 stars 157 forks source link

Parabolic SAR start value #19

Open MaticConradi opened 6 years ago

MaticConradi commented 6 years ago

I’m a long time user of TulipIndicators. I haven’t had any issues with it when porting strategies from TradingView. Today though, I noticed that the Parabolic SAR doesn’t have a start parameter, only the acceleration step and maximum. Is there a way to implement this with only those two parameters or is this not available in the library? Thanks

codeplea commented 6 years ago

Sorry, but Tulip Indicators uses the acceleration factor as the starting value. I guess if there was enough demand I could change it, but I think most people want to use the acceleration factor = start. Also that is the way it's described in Wilder, J. Welles (1978) New Concepts in Technical Trading Systems.

Does not being able to do this affect your trading strategy?

MaticConradi commented 6 years ago

This actually effects my strategies quite a lot. Changing the start parameter from a custom value to start = acceleration makes a win/lose difference for me in my case. I actually checked the code if I could change it myself but I’m not very familiar with the code base. An optional parameter would be the best way to go here in my opinion.

MaticConradi commented 6 years ago

img_8718

TA-Lib does that well. Maybe something in this direction would be nice. I don't mind using two libraries for my strategy but it's certainly convenient and I think it's a nice suggestion.

codeplea commented 6 years ago

That makes sense. I'll add it when I have the time or find a sponsor. Email me if you would be interested in sponsoring it.