Need help with editing crossover code

Need help editing the crossover code to restrict to take only certain stocks in my list -
how do I edit the code ?

Hi @vwhy

We would need to understand your code to help you with specifics.

Here is a generalized solution:

  • Crossover gets calculated for each stock
  • Based on the crossover value, you can restrict those particular stocks
  • Crossover values:
    • 1: Cut upwards
    • -1: Cut downwards
    • 0: No crossover

With the limited information in this query, this is the best possible resolution.

Hope this helps!
@Akhil_Jain

Thanks I want to restrict the stg to take trades only to this list of stocks
[“PNB”, “MOTHERSON”, “BHEL”, “IOC”, “GAIL”, “L_TFH”, “TATASTEEL”, “IBULHSGFIN”, “BEL”, “RECLTD”, “ASHOKLEYLAND”, “INDUSTOWERS”, “NTPC”, “BANKBARODA”, “PFC”, “ZEEL”]

Hi @vwhy ,

You can add your list in the Strategy Configuration Pane.
The pane can be accessed like this

Hope this helps.
@Akhil_Jain