srikar-kodakandla / algo-trading-using-fyers-broker-api

This program trades in stock market using fyers api . It buys when supertrend gives buy signal and sells if supertrend gives sell signal , if adx is below 30 it won't trade. it selects supertrend values by bruteforcing all the possible combinations with past data of given stock . It selects stock day before the market opens.It selects the stocks to trade by checking list of stocks in chartink script , then it bruteforces best combination of supertrend combinations and trades with that supertrend combinations on the next day , it also messages you live alerts in telegram.
MIT License
32 stars 15 forks source link

Throws Error m is not defined #1

Open sapare542 opened 2 years ago

srikar-kodakandla commented 2 years ago

If you run ipython3 fyers/strategy.py , it should not throw that error , in line 32 , it says "from common import message as m". I have imported m there , that "m" is used to send messages to telegram , you can modify where to send message by modifying code in common/message.py.It won't throw if you don't change that too because the code is kept in try.. exception block .

sibaps80 commented 1 year ago

Hi Srikar,

I am using python3 not ipython3.will it work? I am also getting the below error

rm: intimate.txt: No such file or directory rm: ticks.db: No such file or directory Traceback (most recent call last): File "/Users/sprasad/Documents/dhApp/algo-trading-using-fyers-broker-api/fyers/strategy.py", line 29, in from fyers.accounts_login import login_accounts ModuleNotFoundError: No module named 'fyers'