Thank you for your attention.
In the code: TestRsi=new RSI(Bars,NumRsi,Color.Red); The Bars is meaning the close of TestA,or close of APPL,is that correct?
There are some other question I can not find answer by myself or I am not sure about it:
a,Should every code or strategy have OnBar event,or should a strategy only have Onstrategy Strat Event?
b, Can I use indicator like this: SMA sma1; SMA sma2; SMA sma3; sma1=new SMA(....); sma2=new SMA(...); sma3=sma1-sma2;
The question is :can I calculate the indicator?
c,defined the instrument Instrument instrument1=Instruments["AAPL"]; Instrument Instrument2=Instruments["QQQQ"]; How can I get RSI of AAPL and QQQQ respectively? Beacuse I don't know how to get instrument's barseries.
RSI(instrument1); RSI(instrument2); Is that wrong,right?
instrument1.bar is just one bar.AM I right?
If these questions are too easier,I feel sorry about it . I just start to learn it and try to use it.
|