Hi everyone,

attached you find my latest Backtest. For this I have some questions.

At the moment I'm trying to get familiar with the syntax.

My aim is to calculate one or more indicators in the “pair” class, then I want to define to check if they are ready and to update them. After this I want to plot the values of the SMA, SMA of the SMA and RSI in one chart to check if the algorithm works fine.

Here are my questions:

 1. At the moment there are less values in the chart, so I think there must be any problem with the algorithm :) Do you know what's the problem?

165886_1633789541.jpg

 

2. I also want to be flexibel to use the closing price data and the hl2 data for this algorithm. How can I implement the hl2 data precisely for the SMA indicator and the closing price for the RSI Indicator? I think by default it is the closing price data, is this correct?  

3. Furthermore I want to ask if it makes sense to put all indicators into one class or if I should use an own class for each indicator (this should normaly be an easy question, but I am new algorithm trading and also to Python, so I hope you can help me :) )

 

Thanks and best regards

 

Marcel 

Author