Re: Something interesting from Chatgpt/AI please post here

511
Pelle wrote: Fri Jun 19, 2026 2:24 am Updated version to Smart Wedge Pattern

Caused by disappearing wedges
Hmm nothing appears on my MT5 (for wedges and DMI)
it often happens when using series. You should not fight the current and try to use series on MT5
but the dumb LLMs think it's like MT4. it's not. MT5 works well better without series and it's the default mode now
I know MT5 mixes function with series and some without so it's a bit of a mess
These users thanked the author ionone for the post:
Pelle
Scalping the Century TimeFrame since 1999

Re: Something interesting from Chatgpt/AI please post here

512
Pelle wrote: Sun Jun 21, 2026 5:33 am However, I translated one more tradingview pinescript .mq5 code during Midsummer.

https://www.tradingview.com/script/BjtT ... Syndicate/

I added a little something new to the code, for example weekly and month to the first dropdown menu.

The owner of the code says this: IMPORTANT INFO: For best results run indicator on M5 TF so it builds HQ SD zones.


Strong SD Magnet.mq5
Dear Pelle, do you have a MT4 version for this indicator? thanks soo much in advance.

Re: Something interesting from Chatgpt/AI please post here

513
cladi53 wrote: Fri Jun 26, 2026 2:02 am Dear Pelle, do you have a MT4 version for this indicator? thanks soo much in advance.
Try that, I didn't watch it in action for long, but it looked good, star values ​​are different than in MT5.

The code is made from start to finish with AI, claude code +some gemini models, including 3.5 Flash.
These users thanked the author Pelle for the post (total 8):
Tsar, cladi53, RodrigoRT7, kvak, JohnL33, lukgoku, crazyfly, hariusa72

Re: Something interesting from Chatgpt/AI please post here

514
ionone wrote: Wed Jun 24, 2026 9:47 pm Hmm nothing appears on my MT5 (for wedges and DMI)
it often happens when using series. You should not fight the current and try to use series on MT5
but the dumb LLMs think it's like MT4. it's not. MT5 works well better without series and it's the default mode now
I know MT5 mixes function with series and some without so it's a bit of a mess
Thanks ionone for your post. Now the text has been changed so that AI says:

When I analyzed your original code, it was indeed utilizing series indexing. Specifically:
1. It was explicitly setting its own indicator arrays to series in `OnInit()` (e.g., `ArraySetAsSeries(g_atrFast, true)`).
2. The main calculation loop in `OnCalculate()` was running backwards (`for(int bar = startBar; bar >= 0; bar--)`), which treats `0` as the newest bar (emulating PineScript's history referencing).
3. It used `ToAbs()` and `ToOff()` helper functions to translate back and forth between "series" indices and absolute indices.

I took that original file, entirely stripped out all of that series-based logic, and rewrote the loops and data access to use MT5's native, forward-facing array structure without changing the core wedge-finding rules.
These users thanked the author Pelle for the post:
ionone

Re: Something interesting from Chatgpt/AI please post here

515
ionone wrote: Wed Jun 24, 2026 9:47 pm Hmm nothing appears on my MT5 (for wedges and DMI)
it often happens when using series. You should not fight the current and try to use series on MT5
but the dumb LLMs think it's like MT4. it's not. MT5 works well better without series and it's the default mode now
I know MT5 mixes function with series and some without so it's a bit of a mess
DMi in the indicator
No Series Arrays: Right at the top of its OnCalculate block, it explicitly enforces MT5's native behavior:

there are these lines that should block ArraySetAsSeries

ArraySetAsSeries(time, false);
ArraySetAsSeries(high, false);
ArraySetAsSeries(low, false);
ArraySetAsSeries(close, false);

Re: Something interesting from Chatgpt/AI please post here

519
I watched that video today and wondered if Gemini 3.5 flash would make a code out of it. And it did and now I want to share it with you. First watch the video about the basics of the code.
These users thanked the author Pelle for the post (total 5):
forexjoe85, JimKuba, mazibee, JohnL33, crazyfly