that's right guys can an AI run a back test the same as Trading View can why is this interesting well because if an AI can do that right if you can give it the code okay of the strategy right and it can get to the same results the same strategy tester results like net profit max draw down total trades and all these things profit factor and so on then we have a huge opportunity right because then we can tell the AI okay you came to the same results now improve the strategy by yourself just make it happen right so there are agentic AIs which can run for hours and can go and improve the strategy but first we need to make sure that the AI has everything it needs so that it can actually produce the same back test as trading view because otherwise it can calculate as long as it wants but it will end up with some code that it doesn't even know if it's better than before right and in this video I'm going to show you all the results I gotten from my two tests test one and test two test two is the most important one obviously so stick around and find out if an AI can run a back test because if that's the case and you don't want to miss right if that's the case this is a huge gamecher all right so let's find out together and as always this is not financial advice you can lose all of your money in crypto this is why you subscribe to this channel you watch all the videos in the playlist that I have here algo trading knowledge playlist it's actually a course really a free course because every video you watch from this channel increases your chances of success let's get started guys and first of all let me show you how I did the test and which strategy I used cuz I wanted to make it easy for the AI right cuz I want to make sure it works in the first place so I took the whole suit strategy which you can find in Signnum when you go to strategies you scroll down this is the strategy you just click on open strategy and then you click on add to favorites right then you go back here to your trading view and then here you find it in your favorites hall suit strategy where is it here and then you click on it right and once you clicked on it you have it here on the chart right and then you can click on the brackets here to get to the code and I took the code right just copy the whole thing and I created a prompt this is the prompt maybe zooming in a bit helps you and the prompt contains the whole code of the strategy right on the bottom and on the top it contains what I want the AI to do with this strategy so I said "Hey I want you to run a back test so that basically we get these results right and these are the parameters because this is important right we need to make it the same as in Trading View because otherwise it's not fair. " No so in the settings I have 2018 as the starting date 2030 or something in the future right that's fine everything else is the same right didn't change anything else and then also we needed to give it 0. 1% commission and a slippage of one tick and 100% equity and so on all this stuff I have to tell him because otherwise it would potentially run it in a different way right so when I go here you can see it says commission 0.
1% slippage one tick order size 100% no shorting long only and so on and so on right so all of that right i just copy the whole prompt okay and I go to each and every AI and paste it in there and tell it to actually run this back test and I did this for all of these AIS right i did this for Gemini for the free one for the paid version Grock Deepseek Claude 3. 7 Chipdin High and Manos AI because that one is very interesting and I learned a lot right and I want to share with you that knowledge and also tell you well if it works and if it works how it works to have the AI do the right thing okay and actually run a back test improve a strategy with all of that in mind this is the test setup now let's dig into these results and if you want access to the prompt that I showed you before the link is down below let's reveal this curtain and what happened there i pasted of course the whole prompt right and sadly the AI said it cannot run such a back test for some reason it cannot execute code so Gemini wouldn't be very helpful especially not the free version the paid version though has the same problem oops right so it's a bit sad but okay fine we have more AIs to go through i tested Grock as well with again with the same exact prompt all the time just copy paste in there and so what happened with Grock let's see so with Grock we got some results right finally and we got these results here 2,200% profit with 35% max draw down and it said something strange it said something slippage is $1 which is very weird because in the prompt I actually said it's one tick and this pretty clear what that means right so okay whatever but to be honest the numbers are not even close to the numbers of the strategy in Trading View because we are at 591% profit and also 71% max draw down and not 35 so it's not close at all okay so sadly didn't work out with Grock i tried multiple times i I tried with all of the versions they have with the deep research deeper research none of that delivers me any number that is close all right let's go to Deepseek because Deepseek right i mean it's pretty good still let's reveal that what happened over there so Deepseek is very interesting so it actually said that the final answer contains a lack of explicit exit conditions for the long position well not really okay because if you actually go to the code and you check it out then you will see that it does here it says strategy entry short but that automatically closes the long because this strategy has this line here which says strategy risk allow entry in and this is long basically so it's long only it allows long only so any short command will automatically trigger closing all the positions going flat so this is how trading view works okay pine script works okay so sadly this AI doesn't understand that and it basically says hey oops it actually never really exits the long and because of that it has only one trade that it ever opened okay and because of that it arrives at these numbers which are funny enough close right because here we are again remember 500 uh almost 600% and 71% draw down and here we are at well close right not exactly but this is still wrong because it has only one trade and it totally misinterpreted the code so this is not awesome either let's go to claw 3. 7 set paid version right because I wanted it to have enough context and you will see why this actually important so let's reveal this curtain and see what it came up with so it came up with basically a net profit of 22,682% wow okay mate awesome i would love that but of course that's not realistic 13.
63% max draw down this strategy would be like the best strategy on this planet for this asset for the time frame that we're talking about so of course yeah it would be great but it's not exactly accurate whatsoever so that also is not really close at all to the numbers that I'm searching for which are these here right so ah it's still not there right so let's go to CHP 03 mini high which is supposedly the best one for coding right paid version so again it has enough time to calculate and doesn't run out of tokens and all of this stuff and here we end up with a humble 212% and profit right and 35% max draw down it's again not even close right to these numbers so um I'm still I was very upset right let no AI can run a very simple strategy like this but what about Manosai can it run a proper back test let's check it out manosai is interesting because it can actually run for a long time it can definitely write Python code and execute it and then read the results because it did that here right so that is very interesting so let's see what it was able to come up with and this is the result the result here is a net profit of 352% profit and 52% max draw down again remember the numbers right they are not even close to what we have here from Trading View so that's not awesome so I thought let's ask the AI which data it actually was using for back testing because you have to have the Bitcoin data right the chart information of the open and close price on every day of the of the chart right so I was asking it hey show me the historical data for Bitcoin that you were using right and then it gave me this data and I tested it and it actually comes out to be correct so it does have the right data but it still arrives at the wrong conclusion that's not awesome Awesome what else can we do about this and this also shows another thing it shows that even if I give Manusai a CSV file of the Bitcoin chart it already has the data right so it will still mess up so sadly that's not working so I ran another set of tests because the idea came to my mind wait a minute what if the other AIS they don't have the proper data and they're using some fictitious numbers if I provide the data maybe they can do better so I actually went ahead and I say okay what if I go to trading view here right and by the way you have to zoom out properly to have all the data in the chart visible that you care about you click here and then you click on export chart data and then you click on export and what you're getting is the whole data of the chart right and the data looks like this right you have the time stamp right and then you have open high low close of the Bitcoin asset but then you also have these two which you can ignore this is basically just from the strategy itself these are the indicators that it's also exporting with so if you have volume here activated it will also export volume okay so what if I give this data to the AIS and I run another set of tests but this time with the CSV file of the Bitcoin chart to make sure that they are all on the same page whereas minus already knew the data so that's fine but what about the others right maybe they managed to do better and that is why I have another round of tests which we're going to go into right now all right let's start with Gemini again and on the Gemini side the well the problem that I had is that it does not accept uploading a CSV file which is right so I'm not happy with that um so I have to go forward with other AIS and of course the paid one had the same issue so Gemini is really useless for this case the next one is Grock with the think mode on right so it has actually more time to calculate and to reflect on its own answers it came to a conclusion of 250% with 55% max draw down but then I was asking it hey but which data did you really use because I gave you the CSV file but it doesn't mean that you're actually using it so I wanted to actually know what is the price of Bitcoin on 1st January 2024 and it gave me the wrong answer right even if I actually gave it the CSV file and it could just look it up okay and I think the problem there is that the CSV file has too much data and it cannot read all of it so it took only the first part and then it cut off at some date and 2024 was not there okay so this is my thinking why this happened but this is very much it makes me very much unhappy because I had big hopes on Grock but it doesn't even use the right data so of course it cannot run a proper back test okay what about DeepSeek with the CSV file uploaded okay so let's check it out deepseek came to a conclusion that is actually losing money but yeah it's completely wrong and I found out why it is wrong and it says that the data is cut off in May 25th 2018 and that seems to be the same issue as Gro has right because it gets the data the file but then it cannot read all of it and that's not great and so yeah of course the file itself contains the latest information until well 15th of April when I'm making this video um it's just that Deepc cannot read it for some reason so that is not great so the next one is claw 3. 7 let's see what it was doing so the problem that it has is that it calculates for a long time and then it stops right it just says hit max length for the message and then you have to click continue to keep it going but the problem is that even if you click continue or type continue it has to do a lot of the logic it did above again right so you lose a lot of the context and you lose a lot of time and it might never actually come to a conclusion and in fact it actually never came to a conclusion because every time I tried it again it always says hey I ran out of of max length okay and it's a paid version right so it's not like I can do more than that right and then I said okay but at least at least tell me what is the price of Bitcoin of 1 of January 24 and it was correct so okay fine at least it can read the data right that's awesome But it cannot continue for long enough and I believe it's my personal feeling after testing this that claw 3.