This tutorial demonstrates how to configure an AI-powered trading strategy using NinjaTrader 8 that combines LSTM neural networks for probabilistic price forecasting with real-time news classification via Gemini API. The system uses walk-forward validation and gradient boosting models to generate trading signals, while the PQ News Checker monitors market-moving news events (economic data, media coverage, social media posts) to provide context-aware gating that prevents false breakout signals. Key configuration parameters include AI training desired profit and risk per trade, time zone synchronization between VPS and NinjaTrader, session profit/loss limits, and tactical scaling for multi-leg position management. The system requires proper API key setup, signal caching for efficient backtesting, and careful time window configuration for RTH and ETH trading sessions.
Deep Dive
Prerequisite Knowledge
- No data available.
Where to go next
- No data available.
Deep Dive
Best NinjaTrader Strategy? Tutorial: ML + News vs Technical IndicatorsAdded:
Hello and welcome. My name is Rafi Soikian. I'm a licensed and registered commodity trading adviser. I'm a member of the NFA. I'm an algorithmic systems developer and I'm a registered vendor with the Ninja Trader ecosystem where I'm on a short list of programming consultants over there. I'm also the sole developer of Price Action Pivot V5 AI now in build 105. This is by far the most advanced machine learning and now news-based automated trading system with integrated money management ever built for the Ninja Trader platform. Now, I've had many releases since the inception of V5 AI until now version 101 until version 105.
This particular version took a lot longer than the previous versions. In fact, it took several more months than I had initially anticipated until it was 100% ready for production. And it is currently available for all Mach 15 and Mach 16 clients. Now, with respect to the clients, I've been blessed to be able to serve clients from all walks of life. I have fund managers here that are also trading their own personal accounts, their own retail accounts using Price Action Pivot. I have doctors, lawyers, CPAs, executives, retired executives, business owners, all walks of life. And everybody has one thing in common, which is how can we squeeze more from this market? Let's get into it.
Price Action Pivoter V5 AI build 10005 runs on the proprietary higher edge AI 2.0 real-time machine learning model.
Now that's an LSTM model that stands for long short-term memory. It's essentially a specialized recurrent neural network that is designed to learn, process, and classify sequential data. It's a perfect glove fit for the type of short-term probabilistic forecasting that I'm doing in this unique automated trading system.
It's designed to answer this specific question. Can I get to the AI training desired profit number sooner than I can get to the AI training risk for trade number based on past data with higher than 80% probability over the next 2 hours? Now, I'm going to cover all of the parameters in this video, but I wanted to start with the two most critical parameters first, and they are AI training desired profit and AI training risk per trade. Now, in this unique automated trading system, you can select your own numbers. You can select your own AI training desired profit and your own AI training risk- trade numbers, and the machine learning model in Higher Edge AI will get trained and will answer the question based on the numbers that you provided.
Alternatively, you can choose the use PQ range tracker AI training box. You select that box and you leave the AI training desire profit and AI training risk or trade numbers at zero and the system will automatically pick the optimal numbers that it finds based on the PQ range tracker or the pinnacle quant range tracker indicator that is tracking essentially ranges price ranges. It is tracking ranges for ETH electronic trading hours. It is tracking ranges for RTH regular trading hours and it is also tracking them at 2hour intervals. It's finding the max and the min of those intervals as well. Now, let me show you exactly what I mean. So, I've already populated Pinnacle Quant Range Tracker. We're in version two onto this chart. Now, I've loaded 5 days, which is the default, and that is the recommended number of training days for this automated trading system. And so, I've populated Pinnacle Quant Range Tracker version 2. And currently, we're May 11th. It is 8:28 Pacific Standard Time. And I have, as you can see, May 11th, 8th, 7th, 6th, and 5th already populated for both RTH as well as ETH sessions, regular trading hours, electronic trading hours. You can see that we have 12 ranges. We have max, min, and medium for both. And when you see NA, that's because this is tomorrow.
So May 12th, we're not in May 12th yet, but it's going to show NA because there is nothing available yet. However, by tomorrow, let's say uh 6:30 my time or 8:30 central time, 9:30 Eastern time when the market opens, you'll start to see these numbers populated. It too will have the P next to it. The P stands for processing. It is still processing that data. So, the ranges aren't complete yet. We're still in ETH and we will be in ETH until my time, 6:30 in the morning. So, starting from May 12th, 6:30 in the morning, you're going to see these numbers start to populate.
Now if you select use PQ range tracker for the AI training desired profit and II training risk for trade numbers, it will use these numbers to pick the optimal numbers for you. Again, you don't have to use that. You can use your own numbers if you prefer and the model in higher edge AI, the machine learning model will get trained on the numbers that you select. Now, as you can see, Pinnacle Quant Range Tracker version two is taking up significant amount of real estate on the chart. So, I do not force load it when you load the strategy. But you can independently load the Pinnacle Quant Range Tracker version two by simply right-clicking on the chart, left clicking indicators, and choosing Pinnacle Quant Range Tracker version two, and it will load it for you. It's pretty interesting information to have, and there are some clients who always have it enabled, and they're watching those ranges, and sometimes they decide what their stop and their price targets going to be based on the ranges that they've observed. So, in any event, let me go and show you what the strategy itself is going to look like. So, I'm going to leave this here. I'm not going to remove the indicator, but I'm going to also load the strategy for you, so you can see exactly what's happening in the parameters. Now, I want to say something that I've noticed is pretty much maybe the third or fourth most asked questions from my clients, and that is what to do with the time frames.
Okay, so the most important thing that you want to set up is to ensure that your time zones match. I have clients that mostly are on VPS's. Some are on dedicated servers. Some have powerful gaming desktop or laptops uh that they're using for their trading. And I I mean dedicated means that they're not using anything else. It's just for trading. Um you want to make sure that the time frames match, the time zones match. Okay? So if your VPS is in central time, then your Ninja Trader must also be in in central time. So Ninja Trader has its own time zone.
You'll find it under general settings or options. You're going to look for time zone and you're going to see exactly what the time zone is. If it shows central time, then you should have central time also on that VPS. Okay? If those two things don't match, it will not function correctly. Your most likely your historical data will be corrupted in Ninja Trader. So, it can be fixed.
Not a problem. But you don't want to have those problems. If you do, just send me an email and I will uh respond with a set of instructions that you can do to clear any type of historical data corruption within Ninja Trader.
When it comes to the time zones, I have clients that are most of them are in central standard time because most of them have VPS's that are either in Illinois or Texas. I have some that have their APS or dedicated servers in New York. I have some that are in Europe. I have some that are in Asia in various parts. Um, what you want to do is make sure that your uh time zone is exactly what you intended to be. Just remember that I'm using here for 6:30 and 12:30.
These are the default Pacific Standard Times. Okay? So, you want to change those. Let's say you're in Central Standard Time. Most of the clients are in Central Standard Time. You want to add two hours. I'm Pacific Standard Time 6:30. When does the market open? 8:30 Central Standard Time. So, you would add 2 hours. That becomes 8:30. This is in 24-hour time format. So, it's a military, it's in military time. So, 12:30 would become 14:30. Okay. You always want to make sure that you've selected the days that you want it to run. You want to make sure that you've selected enable. You want to make sure that you've selected the directions that you are interested in. If you're interested in both directions, long and short, then you select both of those boxes. Now, it gives you two separate time frames. So, let's say you wanted to trade normal RTH, let's say 8:30 until 2:30 or 14:30 military time. Let's say you wanted to trade almost from the open in ETH or any other time that you wanted to trade in TH, then you would essentially use these two numbers. Just one thing, don't forget that the largest number that you can have is 2359, no matter what time zone you're in. So for trade stop time 2 for example the largest number has got to be 2359. Same here you cannot have a bigger number than 2359. It cannot cross over. Okay? Or else the system will not function as intended. If you wanted to trade ETH or these particular times then you would also select those boxes as well. You don't have to select both. You can just choose one direction if you'd prefer. It's up to you. The next thing is the minimum measured move. Now, this is part of the midpivot points PHL indicator and that does get force-loaded onto the system. When I finally enable the strategy, you'll be able to see it.
And essentially, it is monitoring what most traders are looking at as far as price levels go. So, most traders are looking at things numbers like prior prior high, prior low, uh the pivots, whether it's R1, S1, etc. They're looking at Fibonacci pivots. So, traditional pivots as well as Fibonacci pivots. They're looking at the midpivot prices. So, they're essentially looking at various price levels that are pretty popular and everybody's looking for them or everybody that is trading should be looking for them. Should qualify that.
Um, so $50 means that from the close price, it's $50 away from that next resistance level. So, um, that you can change if you wanted to. You can leave this at whatever number you want. 200 would mean it's $200 away. Okay. So, the API key, the system doesn't run without an API key. You need to have your own API key. When you sign on for either Mach 15 or Mach 16, you will be asked to send in some information and you will I will reply back to you with your own custom API key. Your API key will be bound to the machine ID, which is a personalized machine ID that you would be providing me.
All of the instructions are in the download area. Uh you'll also find instructions in the 45page reference manual which is part of the control panel. So you would input your API key.
I already have mine in there. It's going to be all start out. So you won't be able to see it. But if you want to see you can just select that box and after you run it you'll it'll print it for you. So this is this is basically just a read only. It'll print the API key for you if you wanted to see it. Now, this is essentially setting up a a strategy to run live. So, you would not need a back test here. But if you wanted to have a back test data file name, that means that you're in the strategy analyzer within Ninja Trader because then you can feed it a TXT file, just paste the.txt file in there without the txt extension. So, just the file without the.txt and it will essentially be able to run a back test for you. So the next thing is this is also part of the strate strategy analyzer. So I'm going to say this and most people have never encountered anything like that unless you've used my systems before. So the calculations in price action pivoter are extremely heavy. Okay, they're not just heavy, they are extremely heavy. And so it takes to run 2.3 years of back tests without caching the signals, I kid you not, approximately 7 and 1/2 days. So you can take a small mini vacation and come back and the back test will load.
So to fix that problem, what I did is I added caching of the signal. So once you select that, once you cach it, you click on that box. This is if you're running a back test, not here. You wouldn't be caching it here. In fact, if you left this on, the caching on in an actual whether it's live sim or live cache environment, it'll give you a red warning on the chart that says you've cached this. Your signals have been cached. They're not running. They're not live. So, do it again. You would have to set it up again. But in a back test, if you select that box, then it's going to ren run the back test 2.3 2.4 years would run in about 40 minutes at the most 45 minutes. So that's a lot better than waiting seven and a half days for the back test to be done. Now this is the higher edge AI. Now you can schedule higher edge AI. Let's say you're getting ready for bet. It's really late and you don't believe you're going to be able to wake up in time to catch the open, the RTH open, but you certainly want your price action pivot strategy to be running at the RTH open. Well, you can schedule everything in advance. I already showed you the time frames earlier. You have the days. Now you can also schedule starting in version V5 AI build 105. You can schedule higher edge AI 2.0 in advance as well. So the Python terminal that is running the machine learning model within Higher Edge AI 2.0 will essentially run during the time that you schedule it. Now just bear in mind that it takes 3 minutes for the Higher Edge AI 2.0 0 model to index the data that was collected and written to a CSV those 60 variables that I mentioned in past videos to actually start processing them. Now, so if you were going to let's say start at 8:30 in the morning central time, that's when you want the model to run, the system to run. So you want to schedule that ahead of time. It takes 3 minutes from the time you schedule it for Higher Edge AI 2.0 0 to launch. So, I'm going to do that for you live in this video. After I launch it, it's still going to take 3 minutes. Meaning, after I enable it, it's going to take 3 minutes for it to launch. Okay? Then, it takes about 3 and 1/2 minutes to four minutes for it to index the signals, the initial group of signals from those last 5 days until the very last minute that in live mode it's getting that final minute bar. So, let's say it's going to take on average about 7 minutes. If you want it to start at 8:30, it's best to give it a couple of more minutes leeway as well. So, maybe schedule it at 8:21, 8:20, something like that in the morning so that by the time 8:30 comes around, it's already running and everything is live. Okay. Now, if you don't want to schedule it, you want it to run immediately. As you can see here, it shows higher edge AI 2.0 know schedule time zero equals now. So if you leave it zero, it's going to launch 3 minutes from the time that I click on the enabled box and the apply box, which is here. So first the enable and then the apply. And I'll show that to you now in this video.
So that's a nice feature. Of course, you want to make sure that you click that launch box or else nothing's going to happen. So even if you schedule but didn't click the launch box, it's not going to happen. Okay. Now, this is the newest feature in V5 AI 105 that I'm the most excited about. Okay, this is PQ News Checker. Now, it is an AI model is using Gemini's API. Okay, so you will need to have if you're going to use this model as well. It's optional, but if you want to use it, you're going to have to get the API from essentially Google.
Okay, they have their own fees that they charge. All right, it's a nom it's not much. It can be as little as 15 cents per instrument to as much as depending on how what you set the interval time to. I've set it by default at 15 minutes. So, it's going to essentially check every 15 minutes. What's it checking? It is checking every kind of news that I have seen move markets over the years. So, obviously we have the econ news. Okay, if it's a Fed Wednesday for example, that's obvious. We have all sorts of other economic news. But we also have various news that get published on various channels such as CNBC, Bloomberg, Reuters, Fox Business and others. Okay. You also have of course presidential social media posts which also moves markets. So all those things that I've seen that have moved markets are being now observed and monitored in real time. Now, I've seen traders have all sorts of news channels and news distribution that they've subscribed to and that news is running out of their strategy. Meaning, it's independent of their strategy. So, they would have to manually do something if they get some news that is either favorable or not favorable to their particular strategy. This is com part of the strategy. Okay, this is essentially a gate. So you have a very advanced machine learning model in higher edge AI 2.0. Okay, it is very good as far as the signals goes, but it's not perfect.
Moreover, I also have a bunch of filtration that I do to the signals themselves. So I'm not just looking at the final signal that's coming in, but I'm look looking at the mosaic of signals that have been coming in. Okay?
And based on that, if you get the right price action on the chart and you get the right signals, you have a marriage there. Okay? and it's going to potentially enter a trade. All right.
Now, there are times in the market where things were in sort of choppy environments. Price was moving sideways, but then something happens. News breaks out. You have breaking news. Whether it's a presidential social media post, something on CNBC, whatever it is that ended up on popular news channels that we know have in the past impacted price action, it now is contextaware.
Excuse me. That means it would know that there was some news that broke out and it rates the news. So in the system that I've built, it's thousands of lines of code to do this. It's not just a simple prompt to Gemini, Gemini, give me the news. Gemini, you know, here's a very detailed prompt. Give me this. No, no, no. That's that's not enough. So instead of waiting for the mosaic of signals to basically check the boxes that I'm looking for, it will be aggressive and take the trade if the machine learning model had also provided a proper signal. So that last signal is important. Price action is important.
And now with Gemini telling us that there is news that has broken out and it rates the news 6.5 or more that means the system is now going to take further action. So the gating essentially is working in a way where we're taking advantage of those moves. So where we were previously in a sideways market and we're looking at the previous signals and the system is not seeing anything interesting based on those previous signals and the price action. It's basically saying, well, we have a lot of price action, but it hasn't proven itself. If it all of a sudden bursts out, we don't just follow every breakout. That's how you fall into traps. That's the most common way to do it. Every time price breaks out, you have a bunch of traders run in and try to capture that. And half of those, maybe even more, will fall into the trap. Okay, that's that's a setup. So, instead of falling into that trap, we want to know that there is something that caused that price to shoot higher.
We don't want to just say there's a price breakout. Why was there a price breakout? So now we have a contextaware live news system that is essentially searching the internet specifically Google live. Okay. And it's doing so every 15 minutes. You can set it to a smaller interval. You can say for example 2 minutes but that will be essentially more AP API calls to Google's Gemini and they're going to charge you more for that. Okay. I get no credits, no commissions or anything like that from the API calls that are being made to Gemini. Okay. So you can also set it at 60 minutes for example and it's going to make a lot less calls in that way. So it's only going to make like six calls or so every RTA session to to Gemini. That's going to be pennies. Okay. So it's not a lot of money and you don't have to use it. But I have seen tremendous value in having PQ news available because now we have contextaware news that is telling us for example the choppy price action that we saw has just now gone by the wayside. We don't have to worry about that because we know now that there's news and if price has moved and there's confirmation of news by Gemini, Gemini has confirmed that there is that news that we were looking for.
one of the many types of news that we're looking for then we have that the scoring system will be there and that scoring system will tell this model instantly in real time that hey take advantage of that okay strike while the iron side okay so let's move on besides PQ news we have net session profit limit now these two fields here net session loss limit were in previous versions as well so these two however are new so net session profit that is actually the the precise dollar amount because these two numbers would be calculated upon exit of the trade. Okay, these two numbers net session profit limit and net session loss limit would be calculated right at that number. So if you put for example I want to be done for today and a lot of people you know have particular goals that they set. For example, they'll say if I make $3,000, I make $2,000, I make $5,000. So it depends on each trader's risk and reward objectives. But let's say you just for the sake of this example, let's say you wanted to stop trading if you made $1,000. Then what the system will do if you put $1,000 there, it's going to exit you at $1,000.
That's exactly the number it's going to exit uh that particular trade at.
Conversely, the opposite is also true.
Net session loss limit. Let's say you put $400, you're down $400, even though you might have a stop that's $1,000, whatever, it's going to exit that trade at $400. Okay? And it's going to stop looking for further trades during that session. Okay? Max number of trades, it's pretty obvious. That's per session.
Consecutive loss switch. If you have consecutive losses, it's going to look for the opposite direction. The default is 10. You can change that to whatever number you want. Okay? All of every field here in this self-directed system is editable. So, you can change any one of them. Okay? So, peak, high, low, trailing stop. You have your trailing stop, that's a hard dollar amount. You have your trailing stop that is hard dollar amount plus an adverse AI signal for initial trade trailing percent long trades. That's 20% away from the unrealized peak high for the scale in longs. And same same rules as before, but except this is a combined number now. Okay, so 1,200 for all legs combined, and there's up to three of them. And that's the hard money. The $1,000 is hard money plus adverse AI signal for all three of them. You can have customization there. You can say, I want it to be 20% away from the unrealized peak eye. You can say, I want it to be 80% away from the unrealized peak eye, giving it more room to breathe. Totally up to you. This next field is also new in uh B5AI build 105.
Essentially, it's going to arm the stop if the price gets to close to the mid pivot points, PHL price levels. So, one of any one of those price levels such as two days ago high, two days ago low, prior high, prior low, any one of the pivots, whether it's tra traditional or Fibonacci or one of the mid pivots. Now, of course, you have the same thing on the short side. So, that's just a a mirror reflection of the long side. Then you have the early windfall. That's also new in this version. So, let's say you in five minutes you had an unrealized profit of $1,000 and then you can opt to say for example lock in 90% of that. Okay, so it would lock it would attempt to lock in $900 of that. So you can certainly put that in as well. Enable MATR. This is the modified ATR. It's really self-explanatory and this is not new.
This is part of the previous versions as well. 104 for example had this and so that's available for MATR you can enforce profit because sometimes if you put a really low number like a 0.1 of ATR by the way this is using ATR5 not ATR14 so it's a modified uh ATR that essentially you can require that it has a profit before it moves the stop so it's a trailing stop but just remember it only applies to initial trades so either interong 222 or enter short 222 it does not apply to the scaling trades meaning MATR does not apply to the additional legs. Okay. So, next you have your profit target. This is an important thing where essentially the profit target is a limit order but it is sitting on your broker servers the moment you enter the trade. In fact, so is the stop. So the my risk per trade number which is your stop that's a market order but it's also sitting on your broker servers the moment that nancond that you enter the trade. So the system protects you in that regard. Now in V5AI build 105 there are a couple of new things as well. So you have early windfall where it's also a limit order.
So there's a lot of customization. You have granular control over your profit targets, your stops, your trailing stops. You can control every element of your trade. Okay. So essentially I've done it a couple of different ways. You can say for example, you don't know what the price, you don't know what your price target is, you know, should be.
You don't know cuz that day could be a very aggressive day and if you put $500, that's not a lot. It could be a not aggressive day, you put $500, that might be too much. So, it all depends. It's all relative. So, you can have an ATR uh option in there. So you can say for example if price moves from the entry let's say three ATRs okay this is ATR5 then go ahead and if it that happens within um let's say you know it happens early let's say it happens within five bars then go ahead and make the profit target exactly that the 3 ATR number so ATR5 multiplied by three would be your profit target right off the bat okay so the same thing is being reflected on the stop side. So on defense, this would be offense. That's your profit target. This is your defense. Same thing except as I said the market, this is a market order.
So your my risk per trade is a market order, meaning we want to be out. If we want to be out, we want to be out. We don't want to have a limit order and have that be missed. Okay. So that is your stop. It has the same exact exact setup as the uh the version before it.
So, um, next, that's that's right there.
Next, you have, of course, the quantity.
For Mach 15, you get up to 15 contracts.
With Mach 16, you get up to 30 contracts. And then, this is a critical time right here, pre-market start time.
This is your ETH time. Okay? So, for me, for the Pacific Standard Time, that's going to the the market opens at 3 p.m.
So, that's 1500 hours. If you had your VPS and your Ninja Trader time zone in central time, you would change this 1500 to 1700 and you would change this 6:30 to 8:30 because that's when it ends. Now at 8:30, it's going to start the the RTA session for you if you're in central time. So this is new tactical scaling.
I love this feature in V5i build 105 because if you want to be aggressive in this system, you certainly can. Uh so with tactical scaling it can add up to three legs as you can see here. And you can even control between the legs how many bars it should wait before it enters. You can control if you're up in the trade in unrealized in an unrealized fashion. Meaning if you're up you have an unrealized profit of at least $450 to as much as $2,000 then it is going to essentially potentially enter additional trades if the signal is there. Okay? If the signal is there. Conversely you can do the opposite side. If you're down in the unrealized profit, you're down $125.
Remember, a lot of the trades when you first enter the trade, you could initially be down a little bit. That's pretty normal when it comes to trading.
And then it goes hopefully, God willing, in the direction that you want it to go to. Um, but you can essentially control the minimum, the maximum as well. Same rules as the other one. Again, these are optional if you want to use them. You certainly can. Uh, you don't have to if you don't want to. Now this is the additional thing that is also available in the tactical scaling where you can enable price action. So for tactical scaling you have the signal coming in from higher edi 2.0 that has to be there. Then you have these dollar amounts. So either we're up in the trade unrealized profit or we're down in the trade unrealized loss for that uh at that moment in time and you have the signal then it can potentially enter trades. You can also make it even more conservative of requiring price action as well. So if you wanted to do that, you can just select that box and it'll be there. Uh it'll check the price action. So that'll be an additional filter. Now you again there's a lot of granular control when it comes to risk and reward in this system. So you can have your own profit targets for each one of these legs separate from the main profit target, the default profit target which was 3250. So, if you don't have these selected, you leave them at zero, it automatically defaults to 3250. Okay?
Whatever you put here, I mean, say it's going to default to 3250. If you don't put 3250 there, I have 3250 in this example, so it would default to 3250.
So, whatever you put for your my profit target, that's where it will default to.
But you can also have granular control and have it in time. So, you can say, for example, within uh let's say uh 8 minutes. Okay? So, you have the risk on that side, you have the profit on this side. So let's say let's talk about the profit target worse. Let's say in 8 minutes if I have my profit target for the initial leg at $500, for the second leg L2 at $800, and the third leg at $1,000. I'm just throwing out numbers here, okay? These are just examples.
That means it's going to put a profit target, a limit of $500, $800, $1,000.
If that happens within 8 minutes, after 8 minutes passes, it defaults back to 3250 again, whatever number you have for my profit target. In this example, I have 3250. Okay? Same is true on the stop side. Okay? Uh so you can, for example, say, but the stop would apply to all three. So any of the legs. All right? So if you have, for example, uh a market order of $500, and if it's down with uh within two bars, $500 on the scalance, it's going to take it out. So the stop would be applied for all three.
Okay, so we're always, you know, trying to be more conservative when it comes with the stop. Okay, that's obvious. So finally or almost uh there before I enable the strategy for you so you can see it live. And we have the exit open positions. Generally speaking, you want this to happen. Very few traders that I know of that are clients of mine that leave it so that it potentially could go overnight. Very, very few. Majority of them want to be out that day. And the majority of them want to be out uh in the uh RT8 session. Now, I do have some traders. I have, for example, one medical doctor that essentially he doesn't he doesn't really want to watch this thing. He has a little bit of money that he's putting onto this system. He's essentially trading five uh micros concurrently and he just puts RTH and ETH sessions throughout Monday through Friday and he just sort of lets it do its thing. So, he's not risking a lot of money. he knows how much he's going to risk. He has full control over that obviously as I explained in the system each day and he just lets it do its thing.
Um so for him he doesn't exit open the positions. He's just basically exiting when um the stop hits or the profit target hits or the trailing stop hits.
So it all depends. All right. But a majority of the clients want to be out uh before that RTA session ends. Now majority of the clients are with Ninja Linda Trader Brokerage. That's, you know, not a recommendation by me or anything like that, but it's just majority of them are on Ninja Trader Brokerage. Some of them are with, for example, with Interactive Brokers. Okay?
Whoever you're with, uh, just remember each broker is going to have their own margin requirement rules, their initial margin, their overnight margin, their day margin, all of that stuff. You have to speak with the brokerage or and view it online. They each have their own PDFs. You can check it out, see exactly uh, what it is. But for Ninja Trader, to the best of my knowledge, as of making of this video, I believe it's 12:45 my time is their cutoff time. After that, they considered overnight. So, you might want to change that. All right? So, you might want to instead of 12:59 here, for example, uh if you're in Pacific uh time, you would change that to 12:44.
Okay? Something like that. So that you get out 1 minute before the RTH cutoff time. All right? So, um this final one's also new. It is basically saying if you have let's say you're getting close to the end of RTH session usually you experience some volatility there. Okay, either you have a break out higher or you know a breakdown of price. In this example here I have 32 32 minutes away from what time it's going off of this time. So it's very important that if you're in for example central time let's assume just to make it easy you wanted to leave it at 12:59 but convert it to central time. So you're going to put 1459. So that 32-minute countdown is going off of that 1459 number. Okay. So per leg profit. So that means it's $10.
So if you put $10 in this example, that's why I said it's $10. In this example, I have 10 in there. So if it's at least $10, then it's going to try to lock the profit. So towards the end of the day, if RTH day, you know, you're having some volatility, it's trying to be conservative and lock it in. You don't have to use it if you don't want to. By just unchecking it, it doesn't get used. So now what I'm going to do is I'm just going to enable it. Don't these are obviously guys not a recommendation.
You guys know I'm a registered and licensed commodity trading advisor. So I cannot give you particular advice. I can just tell you how this software works.
And so I'm just going to essentially whatever I've got here, I'm going to change it to my times here. Okay, let's just say. But I'm also going to leave that enabled so I can get it live because it's pretty late right now as I'm making this video for you guys. So I have my API key in there. You always want to check it. So you always want to double check your work before you enable the final box and apply it. Okay? So because if you don't, you're likely going to have to do it again. So you're going to have to just go through the not the end of the rule. It takes another minute, but you're going to have to do it again. So you want to make sure. So I'm not going to schedule it because then what's the point? I can just leave zero and you can see it 3 minutes from now. Okay? So we're going to have to wait until that loads three minutes. But if I check this, that box, the Python terminal for the Gemini API will appear immediately. Okay, so PQ news Python terminal will appear immediately. Okay, so I'm going to leave these the same, but again, you can customize all of this according to your own risk and reward objectives.
And I'm just going to hit this is the enabled boss I was talking about. I'm going to hit enabled. I'm going to hit apply. Okay, we're gonna see a Python terminal. Okay, first we say okay. Okay, say okay. So we get rid of that. That there it is right there. Just went away.
Let me maximize it again. There it is.
Okay, so this is the actual Python terminal and this is 4 PQ news. And what do we see here? Look at the trade window. We see a trade window of 630 12:30. This is exactly what I had selected and I also selected 1501 to 2330. Okay. So, so far it says ecom calendar, no high impact uh events found. So, it looked it up to see if there's anything that's high impact.
So, if you were, for example, on Forex Factory or if you were on investing.com, you know, I'm sure you visited it before. You see those three bulls, right? That means it's something that can move markets. So, it looked for that and it found um found essentially um nothing. So we do have however some other news it just found. It found that FOMC Williams member Williams is speaking. There's the ADP employment change weekly. It's not aggressive but it's still there. The CPI month over month not aggressive news. It usually doesn't move markets at least not much.
Uh but it's still capturing it and it's saying it. So it's it has a a very unique waiting system. It's going to start waiting them. So if it gets to 6.5 or more, sometimes it'll hit 7.5, 8.5, etc. the highest is 10. If it gets there, then the model can be more aggressive essentially because it is now context aware. It knows if there is a price breakout, why there is a price breakout. This is something we never had before. And it was honestly the Achilles heel not just of my machine uh learning system, but any machine learning system because machine learning is going off of past data. it doesn't it's not news aware it doesn't have that kind of awareness now it does so it's a huge advantage guys it's essentially I've given you every tool possible at this point this is not just top-of-the-line tool it's every possible tool okay so in any case now remember I said it's going to take three minutes right so now we're essentially waiting while we're waiting I wanted to share a personal message from me to you guys that I think will help you now you guys know I've dealt with thousands of traders right I've had the opportunity and really the blessing to be able to deal with a lot of people and I've personally when I for example go to there it is there's the higher edge AI model that just popped up so I'm just going to move this over here and I'm going to move this a little bit down and so this is now we're going to see it live it's going to essentially it's still processing you're going to see a bunch of signals start coming down because remember it happens 3 minutes after there it is it's coming in so it happens 3 minutes after if you were to schedule this. Just remember 3 minutes after your schedule time and this is going to take about 3 and 1/2 minutes to 4 minutes to complete depending on your processing power. Okay? So depending on your VPS, your computer, laptop, etc. Now going back to the story that I wanted to share, the reason I'm saying all of this is because I wanted to share a message that I've shared before of gratitude.
Whether it's if you win in a trade, you're supposed to say and you should say for your benefit, thank God for the win. All right? If you lose, say, "Thank God for the opportunity." That gratitude, guys, goes a very long way.
Gratitude goes a very long way. Now, you have two options. You can have gratitude. You can have grumbling. You have two options. I've seen a lot of traders grumble. I've seen traders flip tables, break monitors, put holes in walls. I've seen all of that. Okay? Um, you don't want to go through any of that. Instead, you want to have peace.
You want to have peace in every single thing that you do, not just in trading.
You want to have peace in your general life. Okay? And in order for that to happen, you must have gratitude.
Connected to gratitude, in fact, gratitude is a simple branching of it, is love. You must have love. You have to have love in everything that you do. And you have to have love inside of you in everything that you do. So you have to look for opportunities to do good things, to be kind, to show love because that's going to come right back to you.
Never forget that. When I was a teenager, I was about 18, 18 and a half years old, something like that. My friends invited me to a movie. Went to a movie.
I'm almost 51 now, guys. And I remember this story. Movie finished. We're all hanging out outside. And ultimately I went back to the parking lot where my garage was with my my car was excuse me and there was like a four a fourfloor um parking lot and most of the cars were gone. I was one of the final ones. I essentially turn on the car battery's dead. Back in the day I had a pager, no cell phone. Okay. So I'm like what am I going to do? This thing the parking lot will close at 2 am. They they shut and they start to cars out of there. Okay. I I don't know how to like get out of this mess in a, you know, I have to find a pay phone, right? Everything's closed.
Everything's closed there. The only thing that was open was the movie theater.
By chance, God had it that the guy next to me also showed up right as I'm having trouble. He sees that I'm having trouble, knocks on my window, goes, "Ask me to roll it down." He goes, "Hey, you want me to jump it for you?" I said, "You got to be kidding me. You have cables?" He goes, "Yeah, I have cables."
He does it for me. And I was like, "Thank you so much for doing that." He goes, "No problem." He goes, "One day somebody will do it for me." And I never forgot that. Now years have passed as I'm almost 51. Anytime somebody asks me for help with their car, I have AAA. I immediately call AAA for them. Anytime for free. I don't even know like I I don't have to know them at all. I just immediately call AAA. I give them my information. I describe their car and I say, "This is who it is. You guys are going to tow this guy." That's it. And I do that. Why? Because somebody did it for me. That's love, guys. It doesn't end. It just goes in a chain forever and ever. Okay? Somebody reme was kind to me. They didn't have to be. And I'm going to be kind to other people just because of that. So, if you operate in that realm where you're operating in love and in gratitude, everything will ultimately go your way and you didn't have to suffer stress.
Okay? You can have joy. That's all I have to share. You see the higher edge AI model completed. Now, it's essentially waiting. It's going to keep going as you see it here. So, there it is. It's coming in. And that is live time. You see it? It's 2250. That is right. It is 10:50 right now, my time, Pacific Standard Time. This is pretty much the only time that I have to shoot a video. In fact, I've been wanting to shoot a video for a very long time. I haven't had even this time. Been working on developing everything that I've got here. This stuff, guys, is tens of thousands of lines of code. and it is uh a lot of work that I enjoy doing because I love this stuff. In any event, that's all I have to share. Take care of yourselves. Until next time, God bless.
Related Videos
OpenHuman VS Hermes AI: Who Wins?
JulianGoldieSEO
285 views•2026-05-29
Long-Running Agents — Build an Agent That Never Forgets with Google ADK
suryakunju
142 views•2026-05-30
This computer is made from real human brain cells. And you can buy it.
Talktmsmedia
3K views•2026-05-28
BREAKING: Microsoft’s New Image Generating Model Beat Out GPT 1.5 and Nano Banana 2
aimmediahouse
122 views•2026-06-03
I Made the Same Anime Fight Scene in Every AI Video Generator
NobleGooseAnime
295 views•2026-05-30
Nvidia Bets Big On AI PCs | New Chip To Power Windows Laptops | Technology | AI Updates | N18S
cnnnews18
3K views•2026-06-01
I Tested NEW Opus 4.8 on Four Projects (Updated LLM Leaderboard)
AICodingDaily
298 views•2026-05-29
3D Platformer Update - NO CAPES
SolarLune
294 views•2026-05-30











