Hi!

I'm trying to import data from a .CSV which I can easily modify in Excel to use it as a IDE to perform a simple strategy.

The strategy consists in having a list of instruments that I want to trade daily and I want to have simple rules for each one of them:

every instrument will have :

   1)quantity

   2)buy time

   3)sell time

   4) stop loss (for example 0.99 means 1% loss)

   5) take profit (for example 1.02 means 2% gain).

 

 

I've developed and backtested the strategy and it works as intended, but I can't scale in my code to make it work for an arbitrary number of instruments:

 

 

 

 

Author