2 different ATR in the same Window?

Posted By: Calli

2 different ATR in the same Window? - 08/14/16 13:59

Hi
I just started to experiment with Zorro.
I started with IndicatorTest and created IndicatorTest2 where I added one line. Instead of only:
Code:
plot("ATR (PIP)",ATR(6)/PIP,NEW,RED);


I tried:
Code:
plot("ATR (PIP)",ATR(6)/PIP,NEW,RED);
plot("ATR (PIP)",ATR(48)/PIP,NEW,BLUE);


because I wanted to see a fast and a slow ATR in the same window - how can I achieve that?

In the Editor's right side window I see the tab "Code Template" - is there a trade-template (do they have a special extension?) or do you have a trade-code example?

Calli


PS: What is the meaning or the difference of the asset-field in Zorro's window and the order like asset("EUR/USD"); - what if they differ?
Posted By: Grat

Re: 2 different ATR in the same Window? - 08/14/16 20:15

Hi,

it is simple:

Code:
plot("ATR (PIP)",ATR(6)/PIP,NEW,RED);
plot("48 ATR (PIP)",ATR(48)/PIP,0,BLUE);

© 2024 lite-C Forums