Can PSAR be put into the watchlist?


Category:
0
0

Hello Peter, I tried to do it myself but was not able to.  Is there a way you can quickly code the PSAR onto the watchlist (similar to how you did it with the TTM)?  Thanks!

Marked as spam
Posted by (Questions: 3, Answers: 1)
Asked on March 15, 2017 9:48 am
123 views
1
Private answer

Piece of cake. I’ll not post the source code to save space. You would just need to copy/paste the source code from the built in study named ParabolicSAR. and add the following two lines:

parSAR.SetDefaultColor(Color.BLACK);
AssignBackGroundColor(if state == state.long then Color.GREEN else Color.RED);

Screenshot below shows the result. Be sure to up-vote any answers that best solve your question!

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on March 15, 2017 10:28 am