Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How get clean data and how get last candle? #12

Closed
DiMiTriFrog opened this issue Nov 19, 2023 · 1 comment
Closed

How get clean data and how get last candle? #12

DiMiTriFrog opened this issue Nov 19, 2023 · 1 comment

Comments

@DiMiTriFrog
Copy link

DiMiTriFrog commented Nov 19, 2023

After long work, i compiled on windows VPS and now is working but i'm some questions.

Could I receive clean data without loading bar ? I mean.. when i'm getting the candles avoid to print the loading bar.
Screenshot 2023-11-20 at 00 26 15

How could get only the last candle? I tried to:

    symbol = "EURUSD"
    timeframe = "M15"
    fromDate =  2

    history = api.history(symbol,timeframe,fromDate)

[]
But getting :
Screenshot 2023-11-20 at 00 30 11

And any alternative to mt5.symbol_info(symbol) ???

@traderpedroso
Copy link
Member

traderpedroso commented Nov 22, 2023

the last row is the atual price -

last_row = history.iloc[-1]
print(last_row)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants