how to convert trade script into python

itsram90
Hi,

how i can convert logic of
LOW>REF(LOW,1)

in python ?
Thanks
Ram
Tagged:
  • itsram90
    also one more question, if i have i want to auto trade NFO and MCX both then do it need to combine my code into one script or both will be separate and will be running using same api, secret key and token?
  • AnkitDoshi
    Hi,

    how i can convert logic of
    LOW>REF(LOW,1)

    in python ?
    Thanks
    Ram
    REF(LOW,1) is it previous low?

    In pandas we have an option of
    df['low']> df['low'].shift()

    in pure python you can simply use (i-1) while looping
  • itsram90
    thanks Anikit,

    i used pandas shift fn to do this. works fine.

    Thanks
    Ram
This discussion has been closed.