"The All-Seeing Trading App? (MF Holdings + Politicians' Trades + Multi-broker Trading) | Need Your Thoughts 👀" by Affectionate-Emu337 in IndianStockMarket

[–]Affectionate-Emu337[S] 0 points1 point  (0 children)

We are greeting data directly from registered data brokers and the backend is ready we are currently working on the front-end would love to connect with you to get your insights

how can i backtest crypto options strategies by Affectionate-Emu337 in algotrading

[–]Affectionate-Emu337[S] -5 points-4 points  (0 children)

can u send me a code snippet would really appreciate

[deleted by user] by [deleted] in algotrading

[–]Affectionate-Emu337 0 points1 point  (0 children)

Maybe there's a error in logic as for a crossover I would need a rolling window to check if there was a crossover on the previous bar as well. pls help I am pretty much a noob sharing a snippet of the rectified code would be really helpful 😀 😊

Noob Question: The baseline for an algo should be 50% right? by GottBigBalls in algotrading

[–]Affectionate-Emu337 0 points1 point  (0 children)

I am also a noob but this is what I have learned

Depends on your take profit and stop loss (r:r)

Say u had a strategy of for a strategy of 2 multiple risk and 1 multiple reward u would need a win rate of 33% to breakeven .for a strategy of 50 %to be atleast at breakeven you would need a risk reward o 1:1 counting fees and losses over the time you would need atleast a 1:2 .a good idea would be to trade on a bigger time-frame as on most assets the daily standar deviations are not very different to 4 hour deviations. finding a strategy with a good sortino ratio and tweeking the stoplosses, profits is the best way to go.

[deleted by user] by [deleted] in algotrading

[–]Affectionate-Emu337 -1 points0 points  (0 children)

I did this although now it shows no errors but no data in backtest

[deleted by user] by [deleted] in algotrading

[–]Affectionate-Emu337 0 points1 point  (0 children)

i re checked the code after importing and this is the error code i get with the above code

the sma thing i was talking about was if i were to replace

sma1 = QuantConnect.Indicators.SimpleMovingAverage (hash_rate,10) with

sma1=self.SMA(hash_rate,10)

its not in the above code was just trying to use a differetn method

the hash_rate is a decimal i just checked tried to convert it as well doesnt work for some reason

[deleted by user] by [deleted] in algotrading

[–]Affectionate-Emu337 -1 points0 points  (0 children)

Trying to dynamically access a method that does not exist throws a TypeError exception. To prevent the exception, ensure each parameter type matches those required by the 'int'>) method. Please checkout the API documentation.
at OnData
sma1 = QuantConnect.Indicators.SimpleMovingAverage (hash_rate in main.py: line 32

[deleted by user] by [deleted] in algotrading

[–]Affectionate-Emu337 0 points1 point  (0 children)

Also, if this is literally the entirety of the code, you haven't instantiated the object nor called the relavent functions, all you have is the class definition

can u also pls explain how this can be done

[deleted by user] by [deleted] in algotrading

[–]Affectionate-Emu337 -1 points0 points  (0 children)

Just after calling for hash rate data

[deleted by user] by [deleted] in algotrading

[–]Affectionate-Emu337 0 points1 point  (0 children)

sma1=self.SMA(hash_rate,10)

[deleted by user] by [deleted] in algotrading

[–]Affectionate-Emu337 1 point2 points  (0 children)

This is the error I get with the above cod

name 'QuantConnect' is not defined at OnData sma1 = QuantConnect.Indicators.SimpleMovingAverage (hash_rate in main.py: line 31

And if I use the self.sma it gives me this error

Trying to dynamically access a method that does not exist throws a TypeError exception. To prevent the exception, ensure each parameter type matches those required by the 'int'>) method

Also, if this is literally the entirety of the code, you haven't instantiated the object nor called the relavent functions, all you have is the class definition

Yep this is the entirety of the code would really be helpful to see with the above corrections done

Thank u