Hi again, just learning easy language in tradestation and starting with some basic paintbar studies
I have set up the following to paint the bars when the aroon down line is above 80
which seems to work
If aroon (20,-1) >80 then
begin
plotpb(high, low,"dntrend");
end;
However when i try to copy the above code to highlight bars when the aroon up value is above I get this error
Error 1; Description: This plot has been defined using a different name.; Location: #aroon paint 2; Line: 9.
If i make both the same name it verifies but paints all the bars the same colour any ideas ??
I would also like to reference it to my data2 source which is a different timeframe
If aroon (20,-1) >80 then
begin
plotpb(high, low,"dntrend");
end;
If aroon (20,1) >80 then
begin
plotpb(high, low,"uptrend");
end;