Gamestudio Links
Zorro Links
Newest Posts
Deeplearning Script
by wolfi. 02/26/24 12:46
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/22/24 16:22
AssetAdd() vs. modern asset list?
by jcl. 02/21/24 15:01
How many still using A8
by Aku_Aku. 02/20/24 12:18
Zorro Trader GPT
by TipmyPip. 02/16/24 06:53
Support PEEK for time and calendar functions
by AndrewAMD. 02/14/24 22:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (aliswee, Quad), 624 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Zorro Trader GPT #487923
11/19/23 11:26
11/19/23 11:26
Joined: Sep 2017
Posts: 72
T
TipmyPip Online OP
Junior Member
TipmyPip  Online OP
Junior Member
T

Joined: Sep 2017
Posts: 72
Hi, Friends, We are happy to announce the First version of ZorroTrader GPT.

https://bit.ly/3Gbsm4S

May all traders enjoy.

Last edited by TipmyPip; 11/24/23 04:53.

ZorroTraderGPT - https://bit.ly/3Gbsm4S
Re: Zorro Trader GPT [Re: TipmyPip] #487926
11/21/23 15:14
11/21/23 15:14
Joined: Apr 2023
Posts: 3
T
thumper14 Offline
Guest
thumper14  Offline
Guest
T

Joined: Apr 2023
Posts: 3
Thank you for sharing!

Very interested in this capability. I'm familiar with the concept of ChatGPT and its applications for coding; however, I have never personally used it before. Are you able to provide some examples of it being used in a Zorro specific application?

Re: Zorro Trader GPT [Re: TipmyPip] #487927
11/22/23 05:08
11/22/23 05:08
Joined: Sep 2017
Posts: 72
T
TipmyPip Online OP
Junior Member
TipmyPip  Online OP
Junior Member
T

Joined: Sep 2017
Posts: 72
Here is one Idea : I Wish Zorro Trader (lite-C) could manage better dynamic memory. Trying to code the below program in dynamic memory, doesn't work out properly. (Error 111 in main())

Code
#include <stdio.h>

#define INT_BITS 32
#define MAX_NODES 1024 

// Trie node structure
typedef struct TrieNode {
    struct TrieNode* bit[2];
} TrieNode;

TrieNode trieNodes[MAX_NODES]; 
int trieNodeCount = 0; 


TrieNode* newTrieNode() {
    if (trieNodeCount >= MAX_NODES) {
        printf("Exceeded maximum trie nodes\n");
        return NULL;
    }
    TrieNode* newNode = &trieNodes[trieNodeCount++];
    newNode->bit[0] = NULL;
    newNode->bit[1] = NULL;
    return newNode;
}


void insert(TrieNode* root, int number) {
    TrieNode* current = root;
    int i, bit;
    for (i = INT_BITS - 1; i >= 0; i--) {
        bit = (number >> i) & 1;
        if (!current->bit[bit]) {
            current->bit[bit] = newTrieNode();
            if (!current->bit[bit]) return; 
        }
        current = current->bit[bit];
    }
}


int findMaxXOR(TrieNode* root, int number) {
    TrieNode* current = root;
    int maxXOR = 0;
    int i, bit;
    for (i = INT_BITS - 1; i >= 0; i--) {
        bit = (number >> i) & 1;
        if (current->bit[1 - bit]) {
            maxXOR |= (1 << i);
            current = current->bit[1 - bit];
        } else {
            current = current->bit[bit];
        }
    }
    return maxXOR;
}


int getMaxXOR(int* arr, int size) {
    TrieNode* root = newTrieNode();
    if (!root) return 0; 
    int maxXOR = 0;
    int i, currentXOR;
    for (i = 0; i < size; i++) {
        insert(root, arr[i]);
        currentXOR = findMaxXOR(root, arr[i]);
        if (currentXOR > maxXOR) {
            maxXOR = currentXOR;
        }
    }
    return maxXOR;
}

void main() {
    int arr[10] = {3, 10, 5, 25, 2, 8};
    int size = 6;
    int result = getMaxXOR(arr, size);
    printf("Maximum XOR: %d\n", result);
}


Last edited by TipmyPip; 11/27/23 00:33.

ZorroTraderGPT - https://bit.ly/3Gbsm4S
Re: Zorro Trader GPT [Re: TipmyPip] #487928
11/22/23 12:25
11/22/23 12:25
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,718
Chicago
You could just write a C++ Zorro script and use std::vector instead.

Re: Zorro Trader GPT [Re: TipmyPip] #487929
11/22/23 14:11
11/22/23 14:11
Joined: Sep 2017
Posts: 72
T
TipmyPip Online OP
Junior Member
TipmyPip  Online OP
Junior Member
T

Joined: Sep 2017
Posts: 72
Yes, Thank you very much for the idea, and it is a very good solution, But it is going beyond the scope of the platform and requires external resources, that depend on other languages.
This is very easy to do, but our focus currently is only on Zorro Trader, not going beyond the scope of the platform. While we can always find external resources to solve any problem
which can't be solved by Zorro Trader's internal resources.


ZorroTraderGPT - https://bit.ly/3Gbsm4S
Re: Zorro Trader GPT [Re: TipmyPip] #487930
11/22/23 15:24
11/22/23 15:24
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,718
Chicago
Originally Posted by TipmyPip
But it is going beyond the scope of the platform and requires external resources, that depend on other languages.
Zorro supports C++ out-of-the-box directly by invoking the VS compiler. It really is superior to Lite-C in every way.

Re: Zorro Trader GPT [Re: AndrewAMD] #487931
11/22/23 16:53
11/22/23 16:53
Joined: Sep 2017
Posts: 72
T
TipmyPip Online OP
Junior Member
TipmyPip  Online OP
Junior Member
T

Joined: Sep 2017
Posts: 72
I do understand, But being dependent on another language or compiler, is mostly what you can do with any language or compiler, the question is can you solve a problem with only the limited tools that lite-C offers you?
I have already solved the problem with C, I don't need C++ to solve the problem, I am asking if can anyone solve the problem without being dependent on other external tools, but lite-C only.


ZorroTraderGPT - https://bit.ly/3Gbsm4S
Re: Zorro Trader GPT [Re: TipmyPip] #487959
12/02/23 02:15
12/02/23 02:15
Joined: Mar 2021
Posts: 35
Ocean county, Florida
NewtraderX Offline
Newbie
NewtraderX  Offline
Newbie

Joined: Mar 2021
Posts: 35
Ocean county, Florida
Originally Posted by TipmyPip
Hi, Friends, We are happy to announce the First version of ZorroTrader GPT.

https://bit.ly/3Gbsm4S

May all traders enjoy.



Hello TipmyPip, I will try to utilize the ZorroTrader GPT, bard ai by Google is also pretty good. What do you think about it? since its free, can we use bard to spit out lite c code?

Re: Zorro Trader GPT [Re: NewtraderX] #487960
12/02/23 06:10
12/02/23 06:10
Joined: Sep 2017
Posts: 72
T
TipmyPip Online OP
Junior Member
TipmyPip  Online OP
Junior Member
T

Joined: Sep 2017
Posts: 72
I have not tried Bard, And I don't know if Bard can analyze a long instruction manual.

Thank you for your interest.


ZorroTraderGPT - https://bit.ly/3Gbsm4S
Re: Zorro Trader GPT [Re: TipmyPip] #487966
12/04/23 09:16
12/04/23 09:16
Joined: Dec 2023
Posts: 8
F
fairtrader Offline
Newbie
fairtrader  Offline
Newbie
F

Joined: Dec 2023
Posts: 8
This is super cool thank you. All my newbies questions answered in a jiffy and now have GPT as coding assistant and reducing the learning curve massively. All the best

Page 1 of 2 1 2

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1