How To Backtest A Trading Strategy in Python

  Рет қаралды 63,414

CodeTrading

CodeTrading

Күн бұрын

Пікірлер: 136
@fisal-oe2ze
@fisal-oe2ze 3 жыл бұрын
Thanks again, i completely forgot about u r channel, spent the weekend trying to test a strategy, watch a lot of video's and read a lot articles, but no success, but now i watched your video , i am very confidant that i can test the strategy, Thank you so much
@CodeTradingCafe
@CodeTradingCafe 3 жыл бұрын
I am happy it's been of help, good luck with your strategy
@stanyu5506
@stanyu5506 2 жыл бұрын
It's a great work. However, some bug in support/resistance calculation leads to high return ratio. Try to locate this: for subrow in range(row-backCandles+n1, row+1) when create list ss/rr for a row and calculate the signal, it should be : for subrow in range(row-backCandles+n1, row+1-n2). Because when use {row+1}, support/resistance function will calculate n2 row after current row, which is already in a GOD mode. In real trading, we would never know next 2 bars when placing an order.
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Nicely explained thank you for sharing. Did you try it? Let us know if it makes a difference in the results.
@stanyu5506
@stanyu5506 2 жыл бұрын
@@CodeTradingCafe Yep, and return ratio goes back to around 1~2%. It looks normal compared with up to 15% in return :D, it's still a very competitive strategy, and could work nicely after minor modification~~thanks for sharing
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Thank you for the results... I have to revisit this strategy and see if it can be improved
@prabhattiwari5089
@prabhattiwari5089 2 жыл бұрын
Amazing video as always.
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Thank you for your support 😊
@ndumisolushaba2403
@ndumisolushaba2403 3 жыл бұрын
Hey man, this is a brilliant video!
@CodeTradingCafe
@CodeTradingCafe 3 жыл бұрын
Thank you, I am happy you like it
@MrSamyWageh
@MrSamyWageh 3 жыл бұрын
Great video as usual. Backtesting topic is always essential for Algo traders. I have reviewed many videos but I admit at least for me this is the first to connect between the two worlds my own algo code flexibility and the backtesting ratios results. May be we can extend it later to Optimisation final step to get best results from varied indicators parameters since we rely here on our script logic not Backtesting optimisation functionality. Finally, thanks a lot for your efforts and the ease to transfer the knowledge. Looking forward to your next videos.
@CodeTradingCafe
@CodeTradingCafe 3 жыл бұрын
Thank you for your nice support, yes I am intending to investigate more indicators, and mainly try to apply this at the 4hours charts I need to get more signals and higher number of trades, still not convinced with the statistics, but with time I think we will find something nicer.
@miguelangeldiazoviedo9523
@miguelangeldiazoviedo9523 2 жыл бұрын
very good friend. The best explanation on the web abou backtesting library
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Thank you for your support 😊
@starvlingk5122
@starvlingk5122 2 жыл бұрын
In my case I found a way to add some randomness to my backtesting to make sure successful trading strategies are not a fluke. I also compare my backtesting strategies to a control system like buying and selling decisions based on coin flips.
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Interesting Yes it is good to compare strategies to coin flips but also using the same SL TP methods so this doesn't affect the comparison.
@tradercrypto_lad8929
@tradercrypto_lad8929 2 жыл бұрын
To be honest, this is the best video on this topic… I was struggeling the last days to find a video like this. Thank you so much! I have one question: My strategy works just with buys and sells. So if my strategy gives me a signal of 0 I want you sell, else it‘s 1 and I want you buy… how can I code this in the take profits and stoploss parameters? How can I set my stoploss to signal(0) for buys and the stoploss to signal(1) for my sells? Thank you :)
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
thank you for your nice and supportive comment, for this you will have to open trades without TP or SL values, and use trade close() function when the signal is inverted, of course you need to add a condition when signal goes from 0 to 1 or from 1 to 0 you close the corresponding trade. I hope you'll make it, check the backtesting py website it's a lot of information there.
@tradercrypto_lad8929
@tradercrypto_lad8929 2 жыл бұрын
@@CodeTradingCafe thanks! I completely forgot that there is a close function lol.. I will try it tomorrow :)
@Learn_gbt
@Learn_gbt 3 жыл бұрын
Awesome video!
@CodeTradingCafe
@CodeTradingCafe 3 жыл бұрын
Thank you!
@randomdude79404
@randomdude79404 3 жыл бұрын
Thank you brother I had requested this , great video as always
@CodeTradingCafe
@CodeTradingCafe 3 жыл бұрын
Backtesting worked somehow, enjoy it!
@pobchubbington6759
@pobchubbington6759 10 ай бұрын
A way of incorporating higher rewards and losses is leverage. That how you will get a strategy with a high return, although has risks.
@CodeTradingCafe
@CodeTradingCafe 10 ай бұрын
Yes but drawdown also increases with leverage, which I am trying to avoid. I don't like to be in the negative for long.
@pobchubbington6759
@pobchubbington6759 9 ай бұрын
@@CodeTradingCafe Certainly. Im currently working on an algorithm involving conditional probability.
@CodeTradingCafe
@CodeTradingCafe 9 ай бұрын
That's interesting. Keep us informed.
@juanbatista6075
@juanbatista6075 2 жыл бұрын
Wow, very nice Thank you. God Bless you
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Thanks a lot for your support 😊
@letsjohnnylp5533
@letsjohnnylp5533 7 ай бұрын
Very nice Video! Is there a possibility to get the data aswell? And where do you get these giant datasets from? Thanks!
@CodeTradingCafe
@CodeTradingCafe 7 ай бұрын
Hi, thank you, this video has been out for a while I don't think I can retrieve the data, but you can check the recent videos I always publish csv files as well. I usually get my data from yfinance, my broker or dukascopy. Good luck!
@ndumisolushaba2403
@ndumisolushaba2403 3 жыл бұрын
Hey man why is your take profit smaller than you stop loss ? @10:45
@CodeTradingCafe
@CodeTradingCafe 3 жыл бұрын
Hi, trial and error and for this data it seemed to slightly improve the results, these are not optimised it was just a quick demonstration. That being said, I noticed sometimes putting SL further improved returns because it avoids frequent SL triggering. (SL TP is a topic that needs development... a video :) )
@ndumisolushaba2403
@ndumisolushaba2403 3 жыл бұрын
@@CodeTradingCafe Could you be able to backtest the results if I only risk 1-1.5% per trade taken
@CodeTradingCafe
@CodeTradingCafe 3 жыл бұрын
Well I haven't tried to change the trade lot yet but it must be doable, I think once we do this and maybe add a few rules for SL TP values we would have a complete and ready trading strategy!
@vns9bepositivemindset82
@vns9bepositivemindset82 3 жыл бұрын
First thanks for new video for learning... 🙏🙏 after complete watching i ask questions if i have thanks sir..
@CodeTradingCafe
@CodeTradingCafe 3 жыл бұрын
Thank you for your comment, Good luck trading.
@LrdKGB
@LrdKGB 3 ай бұрын
Hi CodeTrading, how confident are you to deploy a strategy after backtesting it? As in is there a strategy that is as profitable as/reflects the backtest without too many discrepancies? If not till what extent can we trust the backtest stats?
@CodeTradingCafe
@CodeTradingCafe 2 ай бұрын
You need a simple backtest to start, this is what I show on the channel, and you need to test robustness which is more advanced (different assets, out of sample and monte-carlo) I have a book that will be out soon that describes this briefly, but it's too many info to show in a video. Google those keywords to know a bit more about.
@LrdKGB
@LrdKGB 2 ай бұрын
@@CodeTradingCafe it's reasonable to assume that a profitable "good" backtest will lead to profits on a live account and that the signal is solid in terms of win rate. I'm good even if the strategy produces at least a 1/3 of the results. Thanks, you're a lifesaver.
@CodeTradingCafe
@CodeTradingCafe 2 ай бұрын
Definitely backtesting will give you an advantage over the market, will it be enough to win ? this is confirmed by robustness.
@matteomaga9466
@matteomaga9466 Жыл бұрын
Thank you for the video! Where do you get the historical data to run the backtesting?
@CodeTradingCafe
@CodeTradingCafe Жыл бұрын
Thank you for your support, you can get data from yfinance or dukascopy both are free.
@CristianoLanni
@CristianoLanni 2 жыл бұрын
Hi! Thanks again for your video! I was wandering if you code your strategy to trade only one operation at time in the backtest stage. What happen if you had a new signal when a past operation was still at market (no TP or SL reachef)? in backtesting is it better trade all the signals or the good idea is to open a new position only after the previous was closed? thank you for providing your point of wiew!
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Hi thank you for your support, I usually test one trade opened at a time and no other trade is opened until first one is closed. Unless you have a signal on different currencies then maybe yes you can allow simultaneous trades. Good luck!
@thinketh2408
@thinketh2408 2 жыл бұрын
sir how to optimize strategy using bactestin.py when signals are calculated outside the strategy class ...
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
It's better I show this in a video with the details
@thinketh2408
@thinketh2408 2 жыл бұрын
@@CodeTradingCafe god bless you...
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
@@thinketh2408 but it will be a while since the list is getting long
@realty_co
@realty_co Жыл бұрын
Question: After I programmed in Python for backtesting a strategy, how can I incorporate that on the charts? Can I pull data on a website? Usually, I trade cryptocurrency, is there a website to pull data in cryptocurrency?
@CodeTradingCafe
@CodeTradingCafe Жыл бұрын
Hi, yes you will need the data, you can either download it for the backtesting or stream for live testing.
@ajarias256
@ajarias256 6 ай бұрын
Hello, how do you assign the data to the Strategy class? I mean, when you use, self.data, how do you connect that variable, with the dataframe you have been processing until now ?
@CodeTradingCafe
@CodeTradingCafe 6 ай бұрын
Hi, self.data will bring in the dataframe that you provided when you call the backtest function afterwards, notice I am passing a df parameter somewhere to launch the backtest.
@ajarias256
@ajarias256 6 ай бұрын
Thanks a lot. I have one more question. But I'll ask it in some other video comments section, because the doubt is related to some other matter not dealt with, in this video
@alicanakkus1328
@alicanakkus1328 Жыл бұрын
Cool video thank you again. You are a best teacher. I have a question about the BTC-USD pair. when i want to use it ,i use it bt = Backtest(df, MyCandlesStrat, cash=1000000, commission=0) but that is not the solution. could you help me ? UserWarning: Some prices are larger than initial cash value. Note that fractional trading is not supported. If you want to trade Bitcoin, increase initial cash, or trade μBTC or satoshis instead (GH-134).
@CodeTradingCafe
@CodeTradingCafe Жыл бұрын
Hi yes if the asset which bitcoin is expensive you need to have enough cash in your account to buy, or you can also use some leverage, for example add margin=1/10 in your function arguments (bt = Backtest(..., margin=1/10, ...)).
@simonkhan536
@simonkhan536 3 жыл бұрын
Thanks mate for share this detailed video> shall be grateful if you please share the link for the coding.
@CodeTradingCafe
@CodeTradingCafe 3 жыл бұрын
yes sorry I completely forgot!
@CodeTradingCafe
@CodeTradingCafe 3 жыл бұрын
Done, let me know if it works
@wingsoftechnology5302
@wingsoftechnology5302 2 жыл бұрын
Can you Please make a video on...How to deploy these Scripts on Cloud ??
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Hi, sorry not my field of expertise, I am more focused on backtesting potential strategies, one day if we find THE strategy then cloud is worth it 🙂
@raphaelarguello5020
@raphaelarguello5020 8 ай бұрын
Great content, thanks for your work! I am struggling with the size of the position for the backtesting. I am trying to risk 1% of the available cash per position so I enter the sl and size = 0.01. However, the risk is completely off and it only risk 0.014% And in your code, you don't enter any size, do you know how much is risked per trade? Would you maybe have a solution please? Thanks for your help!
@CodeTradingCafe
@CodeTradingCafe 8 ай бұрын
Hi, in Backtesting if you enter size below 1, it will trade with a percentage from the total equity, so 0.1 is 10% of your total equity. If you want more details and you are not in a rush I am preparing a video about lot sizing but it might be a month before I can upload it, it takes too much preparation.
@raphaelarguello5020
@raphaelarguello5020 8 ай бұрын
@@CodeTradingCafe Thank you for your answer. When I enter below 1, it weirdly does not risk a percentage from the equity but I'll wait for your video, I might find where the problem come from. Thank you, keep doing your great work!
@tokusukeutsugi4239
@tokusukeutsugi4239 Жыл бұрын
I think the way which invoke self.init(SIGNAL) is very cool. BTW, how I could add multi signal?
@CodeTradingCafe
@CodeTradingCafe Жыл бұрын
I usually combine multisignals in the dataframe then generate a final signal. Now if you want to execute a trade at ANY signal you can use "OR" logic between different signals to generate your final one. I am not sure my answer is the clearest lol.
@tokusukeutsugi4239
@tokusukeutsugi4239 Жыл бұрын
@@CodeTradingCafe Thank you for your help. Multisignal in self.init.I(sing1, sig2) did not work ( It must be one series). After I tried your proposed method, it actually work well. I convined multisignal into one pandas series (integer 1,2,3...). Again, thank you very much!
@CodeTradingCafe
@CodeTradingCafe Жыл бұрын
I am glad it worked, Good luck!
@aliparchami4524
@aliparchami4524 4 ай бұрын
Hi, The functions that find the support and resistance also get the information of the next candles, so how can we use this for the live market?
@CodeTradingCafe
@CodeTradingCafe 4 ай бұрын
Hi, true, you can call the function providing previous candles not the current one, so basically you run the function on past candles to detect support and resistance, if you use parameter n2=5 for example you will have to stop at currentcandleindex-5. I have more recent videos on this where the code is improved: kzbin.info/www/bejne/rpzcZI2feNh4etU kzbin.info/www/bejne/g5zIlJeYe7WgfLs
@pobchubbington6759
@pobchubbington6759 9 ай бұрын
Sell signal as in shorting the stock?
@CodeTradingCafe
@CodeTradingCafe 9 ай бұрын
Hi, yes selling/shorting
@pobchubbington6759
@pobchubbington6759 9 ай бұрын
Amazing stuff, also do you know how to take profits not by a specific value but by time. I want to take profits after the next candlestick - in my case the next hour- my algorithm has a reduction for the next hour, I want to buy at the beginning of the hour and sell when the hour is over no matter the fluctuation. Any tips on this?@@CodeTradingCafe
@CodeTradingCafe
@CodeTradingCafe 9 ай бұрын
to close trades after one candle you can create a loop over trades (that executes at each candle open) and closes any opened trades if any. that's for one candle duration. If you want more custom duration 2, 3 candles ... you can make the difference between current index and index at which the trade was opened and close the trade accordingly.
@pobchubbington6759
@pobchubbington6759 9 ай бұрын
@@CodeTradingCafe Do you know how I could do that? So buy at the open price of the current hour candlestick and sell at the close? How would I do that for loop or any other efficient way. I also want to levarge my positions based on confidence of my prediction at any given time. Is it me or does the documentation not give very much information 😂. But Thank you very much for your video I've learnt alot.
@hshafaei
@hshafaei 2 жыл бұрын
perfect 👌
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Thank you for your support 😊
@dicloniusN35
@dicloniusN35 Жыл бұрын
Setting Bokeh output to notebook. This may not work in Jupyter clients without JavaScript support (e.g. PyCharm, Spyder IDE). Reset with `backtesting.set_bokeh_output(notebook=False)
@CodeTradingCafe
@CodeTradingCafe Жыл бұрын
Ah yes I had this problem one time in PyCharm, thank you for the heads up!
@priyankamore1458
@priyankamore1458 Жыл бұрын
Bro actually i watched the whole video but, I wanted to see how can i backtest my strategy with Lot Size and Leverage which we used in forex differently compared to other markets. if you can help me please make some content on this topic...bcz all the backtesting library are only showing examples of stock or crypto market...thats why i didn't get ans for my question...
@CodeTradingCafe
@CodeTradingCafe Жыл бұрын
Hi check my recent videos I do backtesting with leverage, kzbin.info/www/bejne/iJO0knSIraqKb9E
@ZerinCustomisation
@ZerinCustomisation 6 ай бұрын
Thank you for your video and the explanations. hi, refer to the video with the timestamp 16.04, the sharps ratio is only 0.155133. this is extremely low. Is this a good strategy?
@CodeTradingCafe
@CodeTradingCafe 6 ай бұрын
Hi, no if sharpe ratio is below 0.8 or so I don't think it's a good strategy, but a good indicator yes, then you need to manage the trades manually to improve the risk reward... so the sharpe as well will improve.
@ROSE-bk6kt
@ROSE-bk6kt 5 ай бұрын
what was the interval ?
@CodeTradingCafe
@CodeTradingCafe 5 ай бұрын
Hi, can you be more specific, is the interval meaning the timeframe?
@ROSE-bk6kt
@ROSE-bk6kt 5 ай бұрын
@@CodeTradingCafe yes sir
@CodeTradingCafe
@CodeTradingCafe 5 ай бұрын
Well usually higher timeframes are easier to deal with like daily timeframe, if you apply to lower timeframes it's more difficult especially if you include commissions.
@swashk2594
@swashk2594 3 жыл бұрын
can we look for edges in python backtest?
@CodeTradingCafe
@CodeTradingCafe 3 жыл бұрын
Hi depends what you mean by edges if these are price movement edges then yes we can
@swashk2594
@swashk2594 3 жыл бұрын
@@CodeTradingCafe not the price on the edge, but the other edge. or people use this just to find out how likely the indicator is. I'm sorry because I'm learning to find out about edge
@CodeTradingCafe
@CodeTradingCafe 3 жыл бұрын
@@swashk2594 ok is it for example the RSI edge? Like the limits up and down?
@swashk2594
@swashk2594 3 жыл бұрын
@@CodeTradingCafe almost close but that's pretty much what it says many successful traders get the edge through backtesting. thank you
@kodzuvu
@kodzuvu 2 жыл бұрын
signal[row+2] is true. if you using signal[row] backtest is wrong
@盧緯宸-h2u
@盧緯宸-h2u Жыл бұрын
Could you tell me where I can get the csv file
@CodeTradingCafe
@CodeTradingCafe Жыл бұрын
Hi, data can be downloaded from yfinance, dukascopy or some of my other videos I also included data files.
@beforeithappensl
@beforeithappensl Жыл бұрын
I need to know past years what day mostly make weekly high and low.eg-: Monday 60% Tuesday 20% ....like,but i dont know how to code. Please help ❤
@CodeTradingCafe
@CodeTradingCafe Жыл бұрын
that's relatively simple to code using Pandas, however if you have no coding experience at all it might be a bit hard. Now my opinion is that statistically there will be no special day for high and special day for low prices, I guess it's a uniform distribution.
@Jamil.francis
@Jamil.francis 3 жыл бұрын
This shouldn't be on the net for free 😅
@CodeTradingCafe
@CodeTradingCafe 3 жыл бұрын
Lol thank you well some are kept on a side
@Jamil.francis
@Jamil.francis 3 жыл бұрын
@@CodeTradingCafe you've got some serious potential. Keep it up
@zameermohammed8324
@zameermohammed8324 5 ай бұрын
how can i download this software
@CodeTradingCafe
@CodeTradingCafe 5 ай бұрын
It's python coding, if you are not familiar with the python language it's better to just watch the videos here and focus on the results, so I do the backtesting and you can get if a strategy is good or not. Meanwhile if you are really motivated you can learn coding in python (you will need 6 months to master for trading).
@kodzuvu
@kodzuvu 2 жыл бұрын
Make a bot backtesting breakout support and resistance with limit order. I think it high winrate
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Nice idea, classic approach but yes I think it's good!
@kodzuvu
@kodzuvu 2 жыл бұрын
@@CodeTradingCafe coding now sir!
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
@@kodzuvu good luck!
@jayveesantos9717
@jayveesantos9717 3 жыл бұрын
how to use your code?
@CodeTradingCafe
@CodeTradingCafe 3 жыл бұрын
You need to run it in Jupyter notebook, if you are new to python I suggest you start learning through the previous videos, I have a playlist for learning Python Good luck
@jayveesantos9717
@jayveesantos9717 3 жыл бұрын
Thank you.
@cansaruhann
@cansaruhann 2 жыл бұрын
if you make your date column index result start and end date will be dates
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Yes, did you try it?
@cansaruhann
@cansaruhann 2 жыл бұрын
@@CodeTradingCafe yes. Love your videos great work.
@DeMadrid_
@DeMadrid_ 2 жыл бұрын
Does this strategy work on lower timeframe?
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Hi I don't think so, lower time frames are usually more challenging.
@rogerinhoramos
@rogerinhoramos 3 жыл бұрын
Que legal, parabéns pelo conteúdo! Tem ajudado muito! Uma pergunta, se fosse pra fazer com Criptomoedas, como ficaria? Obrigado! How cool, congratulations on the content! It has helped a lot! One question, if it was to do with Cryptocurrencies, what would it look like? Thanks!
@CodeTradingCafe
@CodeTradingCafe 3 жыл бұрын
Muito tempo atras, eu falo portogues ainda entendo ler 🙂 I think with crypto it works the same however there is not much data since crypto is relatively new so you can test on small dataset
@rogerinhoramos
@rogerinhoramos 3 жыл бұрын
@@CodeTradingCafe obrigado, vou tentar salvar os dados e carregar pra teste
@CodeTradingCafe
@CodeTradingCafe 3 жыл бұрын
@@rogerinhoramos good luck and best for this year
@rogerinhoramos
@rogerinhoramos 3 жыл бұрын
@@CodeTradingCafe amém, a você também feliz e abençoado 2022
@9959
@9959 2 жыл бұрын
Moral of the story. If want to use algo, use robot to trade.
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Yes but i still can trust a machine over my money I prefer to remain in control, algo is just here as an indicator
@murrmack
@murrmack 2 жыл бұрын
Your timeframe is far too large per trade. You need to add in Rollover into your calculation. In forex trading you will generally only trade intraday. Holding a position for greater than a day will incur rollover interest which will eat into your profits.
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
True in other strategies I try to limit my trades to 2 days max, hopefully it will improve the results.
@Aram-SEMO
@Aram-SEMO 2 жыл бұрын
#كوابيس_سليمان
@alexeyabakumov9497
@alexeyabakumov9497 Жыл бұрын
А можно нормально говорить? На мойве непонятно ничего
@CodeTradingCafe
@CodeTradingCafe Жыл бұрын
Sorry I don't read/understand russian, good luck anyway :)
@fisal-oe2ze
@fisal-oe2ze 3 жыл бұрын
so in my strategy , i put the signal , target, and stop each in separate columns , and call there values liek this "sl1 = self.data.Stop[-1] tp1 = self.data.Target[-1], but i get ValueError: Long orders require: SL (15835.125) < LIMIT (15877.4415) < TP (15850.48125),what i am doing wrong ?
@CodeTradingCafe
@CodeTradingCafe 3 жыл бұрын
From your messages looks like the SL and TP are not correct. Try checking the values first in your columns and verify if sl is lower than price for buying positions and higher than price for sell positions, one hint is that the SL should be equal to the price value minus (or plus depending on your trade if it's long or short) the SL distance... Let me know if it works
@CodeTradingCafe
@CodeTradingCafe 3 жыл бұрын
Also your TP should be greater than the price for long positions, and the error message is pointing to this as an error your TP seems lower than limit value
@fisal-oe2ze
@fisal-oe2ze 3 жыл бұрын
@@CodeTradingCafe thx a lot for u r response , now i cant test anymore , i change so much in teh code ,i think i need to redo teh code and start from scratch again :P , then will test and see , again , Thank you so much for u r help
@CodeTradingCafe
@CodeTradingCafe 3 жыл бұрын
@@fisal-oe2ze yes I know I have been there many times :) patience is the key
@fisal-oe2ze
@fisal-oe2ze 3 жыл бұрын
@@CodeTradingCafe the signal triggered on price 15844 that is where the signal column == 1( long), so stop is 15835 and target is 15850, i have no idea where is the 15877 came from. still stuck for now, but I will get back at it tomorrow. Thanks
Automated Price Action Trading Strategy In Python
32:48
CodeTrading
Рет қаралды 50 М.
Rayner Teo Bollinger Bands Strategy Backtest In Python High Return
23:29
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Backtesting.py - Full course in python
1:09:34
Chad Thackray
Рет қаралды 203 М.
Technical Indicators Comparison Using Machine Learning In Python
14:42
Trading with Python: Simple Scalping Strategy
13:47
CodeTrading
Рет қаралды 105 М.
ChatGPT o1: Turtle Strategy in Python Makes 319%
19:17
Algo-trading with Saleh
Рет қаралды 116 М.
Backtesting Stock Trading Strategies in Python
17:48
NeuralNine
Рет қаралды 39 М.
Automated Price Break Out Detection: Algorithmic Trading In Python
16:34