The situational awareness feature in pjsProfileBars uses an OpenAI-compatible API endpoint, which can be provided by a local installation of Ollama. These are the simple steps we recommend. Note – We cannot support Ollama. It is not our product. This is what works well for us. To discuss issues, Discord is likely your best bet for advice.
Get and install Ollama from https://ollama.com/
Find and install a suitable model of your choice. It must be multimodal. For a modest host, we recommend https://ollama.com/library/gemma3:4b-it-qat (ollama pull gemma3:4b-it-qat), which will run quite nicely even on very modest hardware. You can, however, use whatever model you like. Note: Different models can react in different ways. We cannot guarantee compatibility with everything, though if you have an issue, let us know. The model here is the model we have tested (amongst others) and found works well for us.
On the ollama website, log in to your account and create a cloud api access key. You need to make a careful note of this and follow their instructions to add this to your local system path.
To set up an Ollama API key on Windows using environment variables:
- Open System Properties → Advanced → Environment Variables.
- Under User variables, click New.
- Set variable name: OLLAMA_API_KEY
- Set variable value: your actual API key (from Ollama’s API keys page).
- Click OK to save.
- Restart Ollama:
Go to the ollama gui, make sure you have the downloaded model selected, and ask it something simple. If it works, the Ollama side should be configured. Go into the Ollama settings. Make sure you have the exposure to network on. Your SA settings in pjsprofilebars MUST point to this model, so make sure you have set the API url correctly, and the model name EXACTLY matches the model you are using in Ollama.
In pjsProfilebars, go to the settings, trade aids, situational awareness and check your settings. It must be enabled, and the correct model/api url listed. The defaults are for a local install with the gemma QAT model. Tabs also need to be enabled (info is should in a tab). That’s it! It may take a bar or 2 to update. Once updated, you should have bleeding-edge AI at your trading fingertips! It should look something like this
