reunionman
New member
I am trying to get Green and Red Dots for my indicator.
Dots Script-1-A are lines 1-27 of Script. No Problems here.
Dots Script-1-B are lines 28-53 of Script. Lines 44-51 are the problem.
Am I doing something wrong with the Nested IF statements (see below for script)?
Dots Script-1-D are lines 28-53 of Script with Line 45 being the end and lines 46-51 being "#" out.
This will work and give me a Chart which is Dots Script-1-D Chart. The Yellow Dots show up.
I have attached the complete Script in a Text File UBot_Dots Script-3.txt
Basically it is an indicator for when the Candles change from Red to Green or from Green to Red.
This happens based on the Script in Lines 1-37.
3 things can happen:
1) the candle stays the same color as the previous candle. This happens the most and so it is the First IF / THEN
2) Candle changes from Previous Red Candle to Current Green Candle
3) Candle changes from Previous Green Candle to Current Red Candle
Here is the Script I am having a Problem with:
row1.AssignValueColor
(if buy == 0 and sell == 0 then color.current )
else
(if buy == 1 then color.GREEN)
else
(if sell == 1 then color.RED )
else
(color.current) ;
Dots Script-1-A are lines 1-27 of Script. No Problems here.
Dots Script-1-B are lines 28-53 of Script. Lines 44-51 are the problem.
Am I doing something wrong with the Nested IF statements (see below for script)?
Dots Script-1-D are lines 28-53 of Script with Line 45 being the end and lines 46-51 being "#" out.
This will work and give me a Chart which is Dots Script-1-D Chart. The Yellow Dots show up.
I have attached the complete Script in a Text File UBot_Dots Script-3.txt
Basically it is an indicator for when the Candles change from Red to Green or from Green to Red.
This happens based on the Script in Lines 1-37.
3 things can happen:
1) the candle stays the same color as the previous candle. This happens the most and so it is the First IF / THEN
2) Candle changes from Previous Red Candle to Current Green Candle
3) Candle changes from Previous Green Candle to Current Red Candle
Here is the Script I am having a Problem with:
row1.AssignValueColor
(if buy == 0 and sell == 0 then color.current )
else
(if buy == 1 then color.GREEN)
else
(if sell == 1 then color.RED )
else
(color.current) ;