Babaji Ka Thullu
Member
Hi,
I am trying to write a conditional plot statement which I need help with.
Here is what I am trying to do......
There is an input if you want to use a MACD: input UseMACDfilter = yes;
Then I do a MACD calc in the study and come with a variable: def MACD_bull = if Value_one > 0 and Diff_two > 0 then yes else no;
This is where I am getting stuck.
What I need to do is if I want to use the MACD filter and MACD_Bull = yes, then I want to plot a line do nothing if not.
Would appreciate your help with this
Thanks in advance for your help.
/Baba
I am trying to write a conditional plot statement which I need help with.
Here is what I am trying to do......
There is an input if you want to use a MACD: input UseMACDfilter = yes;
Then I do a MACD calc in the study and come with a variable: def MACD_bull = if Value_one > 0 and Diff_two > 0 then yes else no;
This is where I am getting stuck.
What I need to do is if I want to use the MACD filter and MACD_Bull = yes, then I want to plot a line do nothing if not.
Would appreciate your help with this
Thanks in advance for your help.
/Baba